I need to locate my .obj file in android/app/src/main/assets.
I’m using react-native-gl-model-view library to render 3d model.
It needs file to be located in that path.
So after the android folder generated with command “expo run:android”, I made assets folder in it and copied my .obj file.
In debug mode (expo run:android), works normally.
But after eas build (build type : apk), 3D model never show up.
I added obj file format in metro.config.js
defaultConfig.resolver.assetExts.push(“obj”);
I just need file to be located in android/app/src/main/assets
How can I do this?
no I don’t import it. I just want the file to be located in that path. the library use that path and import it self.
I tried to import but library don’t use file that i import. it returns error.
It says, locate file in assets folder or use uri(internet address)
It works with android studio.
After generate android folder($ expo run:android or $ expo eject), open it with android store.
And analyze that (I don’t know what that really is) to build then build apk.
That import 3d model perfectly.
I don’t know how to build with eas but android worked.
Let me know if anyone can build with eas thank you ^^