React native: texture load from assets

Hi, @bghgary @ryantrem

how to load new texture in babylonjs react native from assets on android?

groundMaterial.diffuseTexture = new BABYLON.Texture("/textures/ground.jpg", scene);

For glb import I use this: “app:///models/”

1 Like

Sorry for the delay, both @ryantrem and I were on vacation.

All urls used in Babylon Native use the same underlying protocols, so you should be able to use app:/// similar to the models.

1 Like