-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
fonts in NextJS - You may need an appropriate loader to handle this file type, #36
Comments
your next config isn’t a proper array. withFonts should go before withExpo’s array. |
Like this ? why? I'm getting the same error:
In the doc says :
|
No, the first one is still wrong. module.exports = withPlugins(
[withTM, withFonts, withImages, [withExpo, { projectRoot: __dirname }]],
{
// ...
}
) |
Ok, thanks. I've seen it's here! :) But it's still not working for me because the
Is it supposed that any folder behind |
useFonts is only meant to run on the native app, are you using it on Web? |
yeap, i'm trying to use for web (nextJS) (using the same code for both native and web) |
yeah, see the bottom of the dripsy instructions for Web. you should use |
This might help useFonts can actually work on the web 🎉 |
Hey guys, I added a full example for using custom fonts with Solito here. npx create-solito-app@latest my-solito-app -t with-custom-font |
I'm using dripsy following this guide to load fonts using
useFonts
.https://snack.expo.dev/@nandorojo/dripsy-custom-fonts
It works on React Native, but not in web
I'm getting this error:
I understand NextJs is not loading the fonts.
I've used this
next-fonts
package , but I cannot make it work.https://docs.expo.dev/guides/using-nextjs/#font-support
Is this the way to share fonts between React Native and NextJs? For images, is it the same process with
next- images
. thx!The text was updated successfully, but these errors were encountered: