Replies: 3 comments 5 replies
-
New architecture for Unistyles moves parsing logic to C++. There won't be any parsing on JS side. I was able to support all other features. In order to make plugins works I would need to parse styles one more time (in JS). From obvious reason it's not performant. Whatever is possible with plugins can be done with theme or using functions directly in the styles. What's your use case ? |
Beta Was this translation helpful? Give feedback.
-
Hey, bro, since 2.9.0, plugin feature has been deprecated, so something shoule be updated in doc at the begging such as: do not use this feature in version above 2.9.0. Hope the updates, thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
@jpudysz First of all, thanks for all of your hard work on this library! With the plugin system now deprecated, it would be great if you could point out in the docs best practices on how to handle some common scenarios without plugins. In my app I would like to override the default font that the app is using. Plugins seem like a perfect way to do that. It would be very error prone if I need to change that to theme function calls or have to rely on the other devs to supply the correct font styles everywhere. Perhaps for performance we could have a plugin system on the native side? I wouldn't mind adding a bit of native code to handle this if that makes it way way more performant. |
Beta Was this translation helpful? Give feedback.
-
How can I intercept and modify styles globally without Plugins functionality?
Beta Was this translation helpful? Give feedback.
All reactions