Replies: 4 comments 1 reply
-
Hello 👋, This is an incorrect method of handling variants. Variants should belong to variant groups (such as “brand”), and then have variants (like “true”) with valid RN styles. To select the variant you named “true,” you need to pass the string “true.” You cannot cast it to a Boolean. Variants cannot be selected using booleans. They must be selected by their names (strings). |
Beta Was this translation helpful? Give feedback.
-
In the future, will this be a feature that will be implemented? |
Beta Was this translation helpful? Give feedback.
-
I received another request for it, I'm willing to support it soon. Thanks for your feedback! |
Beta Was this translation helpful? Give feedback.
-
PR: #134 |
Beta Was this translation helpful? Give feedback.
-
Hi, how are you ?
I'm come back for another question 😀 (related to #115)
I try to set a variant as boolean
Base code
with this code, i have typescript error (normal behavior)
When i put
true
typescript detect as stringIs there currently a way to do this?
I suppose should change logic parsing and typescript type
Beta Was this translation helpful? Give feedback.
All reactions