[Question] How to inherit parent style? #203
-
Let's say we have a Text component and a Card component
The body variant has a What is the restyle way to do if we want to have a inverted card variant?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, this is unrelated to shopify/restyle, this is about how react-native works, see https://reactnative.dev/docs/text#limited-style-inheritance |
Beta Was this translation helpful? Give feedback.
-
Thx for your reply. So, that means I need to do a |
Beta Was this translation helpful? Give feedback.
-
Inheritance works for Nested ReactNative Text components, but not when using the component from createText from Restyle. Would be great to see it supported |
Beta Was this translation helpful? Give feedback.
Inheritance works for Nested ReactNative Text components, but not when using the component from createText from Restyle. Would be great to see it supported