Closed alz10 closed 4 years ago
Please follow the README to add the files correctly.
Please follow the README to add the files correctly.
I read the whole instruction and followed it but the error still persist
<ModelView
model={require('../android/app/src/main/assets/Hamburger.obj')}
texture={require('../android/app/src/main/assets/Hamburger.png')}
....
/>
or
<ModelView
model={'Hamburger.obj'}
texture={'Hamburger.png'}
/>
I still got this error
Error while updating property 'model' of a view managed by: RNGLModelView java.lang.Double cannot be cast to com.facebook.react/bridge.ReadableMap
Error while updating property 'texture' of a view managed by: RNGLModelView java.lang.Double cannot be cast to com.facebook.react/bridge.ReadableMap
Copy & paste from the README:
<ModelView
model={{
uri: 'model.obj',
}}
texture={{
uri: 'texture.png',
}}
/>
I got an error saying
Error while updating property 'texture' of a view managed by: RNGLModelView java.lang.Double cannot be cast to com.facebook.react/bridge.ReadableMap