DEV Community

Discussion on: Global Styling in React Native

Collapse
 
mathisbarre profile image
MathisBarre

Great article ! I use to use dynamic stylesheets extracted from the main component file like you can see here : freecontent.manning.com/applying-a... (List 5). But this seems to not work with TypeScript. Create component should be a better solution i think

Collapse
 
mathisbarre profile image
MathisBarre

In fact, it works with typeScript if you add the correct type (TextStyle or ViewStyle)