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

React Native - Add fonts to `nativewind` and remove custom `Text` component #342

Closed lakardion closed 4 weeks ago

lakardion commented 4 weeks ago

What this does

Remove custom Text component which reason for existing was using custom fonts. Now fonts are loaded into NativeWind and we can use the built-in Text component from react-native

Closes #327

Checklist

How to test

Add user steps to achieve desired functionality for this feature.

lakardion commented 4 weeks ago

so this is doing two things 1. switching to expo fonts AND moving them to the tw config. I assume that means in order for the second to work the first had to be done as well?

No. We already were using expo fonts. So that's the same.

We're just remapping how we use the different font variants. Rather than doing it with a custom component we're embedding them into native wind class names