-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Official Way to Use Custom Font with Expo #1967
Comments
Found the following packages mentioned in the issue, but couldn't find version numbers for them:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. |
+1 to this, would love to use Google Fonts through Expo along with RNP. Is the above method the right way to go about it? |
Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue. |
Another way:
Docs (See the last eg.) |
What is the official way to use a custom font in an expo project, in terms of the theme?
I noticed that the rnp documentation and the xpo documentation have very different instructions on how to implement a custom font, and I'm just wondering what the best practices are.
I have found some success with the following code:
But something tells me that it's inefficient. I guess what I'm really curious about is how configureFonts() works and what a typical implementation looks like in an expo project. If anyone could enlighten me that'd be great
expo version: 37.0.3
react-native-paper version: 3.10.1
EDIT: Added expo and rnp version
The text was updated successfully, but these errors were encountered: