react-native-global-props icon indicating copy to clipboard operation
react-native-global-props copied to clipboard

0.70

Open mfbx9da4 opened this issue 3 years ago • 3 comments

0.70 implements functional components so this library no longer works

mfbx9da4 avatar Nov 10 '22 15:11 mfbx9da4

A solution for this right now is to have a custom component with your default styles

Recommended here: https://reactnative.dev/docs/text#limited-style-inheritance

nnabinh avatar Dec 05 '22 03:12 nnabinh

https://www.npmjs.com/package/react-native-simple-default-props it still work

dioi2000 avatar Dec 21 '22 03:12 dioi2000

Working and more customizable method: https://github.com/XantreGodlike/react-fast-hoc/blob/main/examples/react-native-default-styles.md

XantreDev avatar Jun 07 '23 07:06 XantreDev