When using Babylon React Native, you have two options for loading local resources:
- Embed resources in the app the same way you would if you weren’t using React Native, and load them with app:///. Embedding files is different on each platform.
- Base 64 encode the file into a json blob and reference it from some js/ts file in your project. This is not efficient, but easy to do. More details here: How to import a local .glb file in BabylonReactNative? - #9 by ryantrem
We hope to make loading files easier in Babylon React Native, but React Native itself creates some hurdles for this that we haven’t resolved yet.