Closed lakardion closed 4 weeks 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.
fonts.ts
Text
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
useFonts
loadAsync
thanks for prompting this rework @maudevnc
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 customText
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 theloadAsync
. However I'm not exactly sure whether that would be an improvement