[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? |
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 |
Thx for your reply. So, that means I need to do a |
|
Inheritance works for Nested ReactNative Text components, but not when using the component from createText from Restyle. Would be great to see it supported |
Inheritance works for Nested ReactNative Text components, but not when using the component from createText from Restyle. Would be great to see it supported