thinknimble / tn-spa-bootstrapper

A production-ready Django SPA app on Heroku in 20 minutes or less!
https://tn-spa-bootstrapper-staging.herokuapp.com/
MIT License
8 stars 9 forks source link

Clients - React Native - Remove custom `Text`component in favor of defining custom NativeWind fonts #327

Closed lakardion closed 4 weeks ago

lakardion commented 1 month ago

There seems to be a way to define custom fonts class names with nativewind so that we avoid having to do the mess that it is right now fonts.ts and needing the custom Text component.

https://github.com/nativewind/nativewind/issues/964#issuecomment-2224953451

https://github.com/nativewind/nativewind/issues/923#issuecomment-2136665869

We could probably also use the useFonts hook instead of the loadAsync. However I'm not exactly sure whether that would be an improvement

lakardion commented 1 month ago

thanks for prompting this rework @maudevnc