< 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}
/>