I get the following yellowbox warning when my app runs:
Font not found
/data/user/0/host.exp.exponent/cache/ExperienceData/%40anonymous%2Flogindemo-1163fc3b-
4484-44a2-9076-b4b71df1e55c/ExponentAsset-300996394b166f5ee73c58bbf468913f.ttf
- node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:80:57 in <unknown>
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:400:4 in __invokeCallback
- ... 4 more stack frames from framework internals
and I’m just curious as to what it means because I can use all the fonts just fine, except 1 of the loaded font, which is the first on the cacheFonts array. Here’s how I loaded the font in my app.js:
Now I just avoided using RobotoBlack altogether at this point, but I’m just curious as to why this happened, I have double checked that the font is there in my assets. And I’m extra sure about this because if I changed the order of the array, it still is the first in cacheFonts array that’s not loading properly.
I’m using expo “sdkVersion”: “26.0.0” in case anyone need to know…
Not sure how is this any more helpful than the one I posted earlier tho…
But the thing is I simply followed this guide here plain and simple and then access it from my styles/theme.js like so:
that doesn’t really repro it, as mentioned in the mcve guide it should be minimal and include no code that’s unrelated to reproducing it. the best way to share it would be a github repo
Hi @notbrent, thanks so much for letting me know of that, sorry for the trouble!
Just curious, what did u use to preview fonts like that?
Just in case something like this happens in the future