Features
- Remote and local assets
- Augmented Faces
- Cloud anchors
- Plane detection
- Feature quality indicator
- Depth API
- Location anchors
- Video recording
- Screenshots
react-native-sceneform
Location markers | Augmented Faces | Object placing | Cloud anchors |
---|---|---|---|
Requirements
This package requires your app to target Android SDK 24 at least and react-native 0.66+
Also, this package does not handle permissions, be sure to request:
- CAMERA: for AR view.
- WRITE_EXTERNAL_STORAGE: for screenshots.
- RECORD_AUDIO: for recording video.
- ACCESS_FINE_LOCATION/ACCESS_COARSE_LOCATION: for location-based AR.
Installation
- Install from npm running
npm install --save @sceneview/react-native-sceneform
- Add the following to your AndroidManifest.xml inside the Application node.
<meta-data android:name="com.google.ar.core" android:value="required" />
- In your app/build.gradle, set your minSdkVersion to 24.
If you are going to use Cloud Anchors, be sure to add your API Key to the AndroidManifest or to sign your application in the Google Cloud Platform console (keyless auth)
Loading the library
import { SceneformView, AugmentedFacesView } from 'react-native-sceneform';
Components and Definitions
SceneformView
»AugmentedFacesView
»Type Definitions
»Examples
Augmented Faces
»To do
- Augmented images
- No-AR view (3D model viewer)
- Runtime renderable creation
- Custom lights
- Animation manipulation (currently animations are played automatically)
- Depth toggling