I have a JSON file with some info and I’m using it in the app. But on first run of the app it doesn’t load and the app fails. Not in development environment or hosted Expo app. Only on Google Play Store app. Haven’t tested on Apple yet.
I have tried Import, and Require in App.js too to preload but doesn’t really work.
By the way, @adamjnav has just posted about how to Lazy Load JSON files. There are similarities to what you’re trying to do, so I though the example might be helpful:
…but after putting it into production and finding out it wouldn’t get into the Assets and be bundled with the app and working on first run I was playing arround with it and found another approach: