BonnierNews / react-native-3d-model-view

A React Native view for displaying 3D models
MIT License
215 stars 57 forks source link

.dae or .obj file could not be found #26

Open alz10 opened 4 years ago

alz10 commented 4 years ago

I dont know why everytime i use require it cant find the file of my obj or dae file. I also tried adding the code in rn-cli.config.js but still not working.

The require only works for zip files, it displays the 3D model perfectly in the app but everytime i use .obj or .dae, it cant find the app

Error: Unable to resolve module `./src/Ate.dae` from `C:\Local D\E-Commer App (BuyNa Phone)\buynapho
ne\App.js`: The module `./src/Ate.dae` could not be found from `C:\Local D\E-Commer App (BuyNa Phone
)\buynaphone\App.js`. Indeed, none of these files exist:
alz10 commented 4 years ago

Seriously? how can i fix this problem?

mydudechris commented 4 years ago

Same issue. I've tried using the rn-cli file, put the files in multiple places, nothing seems to work. I also tried running this to see if it helped: react-native start --config rn-cli.config.js