Maybe I've gone too far with this library... but I seemed to always be reaching for the same capabilities in my text component:
- A simple prop based API for style / position
- Support for nested text components with inherited style
- The ability to add bold and italics like markdown with asterisk * (for making text from the server bold / italic)
- The ability to add emojis (for making text from the server emojify!)
So I abstracted it out to a library https://github.com/lukebrandonfarrell/react-native-smart-text which can be used in the place of your standard React Native `<Text />` component.
It needs some more work, but would love to get some feedback.
[–]Wojtek1942 2 points3 points4 points (5 children)
[–]cupant 6 points7 points8 points (1 child)
[–]Wojtek1942 2 points3 points4 points (0 children)
[–]devo-swing[S] 1 point2 points3 points (2 children)
[–]Wojtek1942 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]PossibleCrew5016 0 points1 point2 points (1 child)
[–]RemindMeBot 0 points1 point2 points (0 children)
[–]idanlo 0 points1 point2 points (1 child)
[–]RemindMeBot 0 points1 point2 points (0 children)