Simplest way to cascade styles in react native

R01010010 picture R01010010 · Dec 23, 2016 · Viewed 12.4k times · Source

I see that in react native if I set a fontFamily in a, for example, a View, the inner elements do not inherit it the property. Is it there a cascade concept available in react native styling? How do I accomplish it?

Answer

R01010010 picture R01010010 · Dec 23, 2016

Apparently at this moment a component can only inherit a property of a parent only if the parent is of the same type or at least also support the property to inherit. I was setting fontFamily in the main View component and wasn't being inherited in the Text children.