Tutorial : How to globally add or embed custom fonts using expo-font and twrnc #320
tomihbk
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisite
Installation and configuration
Inside app.json
Inside tailwind.config.js
Create custom twrnc config file
Create
tw.config.js
at parent level and it should containBuilding the app through Expo EAS or Locally
Build your app using expo eas : https://docs.expo.dev/develop/development-builds/create-a-build/
If you have a mac or linux, you can also build locally by using
--local
, they don't support windows sadlyUsing the new font
First is to import your custom config file
import tw from 'twrnc'<-- Don't use the default importBeta Was this translation helpful? Give feedback.
All reactions