-
Notifications
You must be signed in to change notification settings - Fork 92
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
React Native? #2
Comments
I might be able to help here, but that would require .ttf fonts in the packages. I don't think you can use woff fonts in native apps. |
You could export a class that depends on Expo to load the font. This is how I load my fonts at the moment: async componentDidMount(): Promise<void> {
await Font.loadAsync({
"SFProText-Bold": SFProTextBold,
"SFProText-Semibold": SFProTextSemibold,
"SFProText-Regular": SFProTextRegular
});
await Promise.all([fonts, ...images, icons]);
// App is ready now
} Support for woff might be available via the
|
Any updates on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not working with React Native so am not super familiar with font loading there but if I'd love it if someone added a PR to make it easy to require fonts into react native projects.
The text was updated successfully, but these errors were encountered: