-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to useRestyle with custom variants in Restyle 2.0 #147
Comments
@HurrellT Could you create and share a repo with the code and instructions to reproduce the unexpected behaviour you describe? |
Hi @sbalay ! I made a repo with an example of what I'm expecting to do. |
Closing as stale. |
@fortmarek Is there any example in the documentation anywhere of how to achieve this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I'm building a component lib creating variants for my components.
I'm creating variants like this:
then using useRestyle to inject the styles in the corresponding section of my component like this
Now, with restyle update 2.0, useRestyle is not working with variants, even after being wrapped with
composeRestyleFunctions
and I'm not finding the way to make it work. Am I using it incorrectly?Thanks!
The text was updated successfully, but these errors were encountered: