Don’t forget to share it with your network!
Dhaval Dhirubhai Vekariya
Sr Developer, Softices
Augmented Reality
21 December, 2022
Dhaval Dhirubhai Vekariya
Sr Developer, Softices
< ModelView
source={{
model: require('../obj/object_car.obj'),
texture: require('../obj/object_car_main_Base_Color_grey.png')
}}
onLoadModelStart={this.onLoadModelStart}
onLoadModelSuccess={this.onLoadModelSuccess}
onLoadModelError={this.onLoadModelError}
/>
Output :
import {ArViewerView} from 'react-native-ar-viewer';
<ArViewerView
model={localModelPath}
style={styles.arView}
disableInstantPlacement
manageDepth
allowRotate
allowScale
allowTranslate
onStarted={() => console.log('started')}
onEnded={() => console.log('ended')}
onModelPlaced={() => console.log('model displayed')}
onModelRemoved={() => console.log('model not visible anymore')}
ref={ref}
/>