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

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

When i locally store a model it doesn't work.. Can you please tell me a way to load models locally? The piece of code that you have provided isn't working.. Please help! #31

Open Muhamman78 opened 4 years ago

benndip commented 2 years ago

<ModelView style={styles.modelView} source={{ model: ./models/newEar/labeled/inner_ear.obj, texture: require("./models/newEar/textures/initialShadingGroup_baseColor.jpg") }} />

    Make sure in source, you use **model** and **texture** , and make sure that the texture file is available, if not the model 
    wont show. sometimes you might need to give you model an appropriate scale.