1.2.4 • Published 3 years ago
ar-core-react-native v1.2.4
ar-core-react-native
- ar-core-react-native build from ARKit on IOS and ARCore on Android.
- It is opensource but performance of ios and android not optimal.
- If you want to develop AR/VR on Mobile for commercial purposes please contact me via email on github.
View
Demo in IOS
Demo in Android
Suport Object Type
In Android
- type object 3d support is glb
In IOS
- type object 3d support is scn, usdz, obj
Installation
npm install ar-core-react-native
Usage
import ArCoreReactNativeViewManager from "ar-core-react-native";
Add Object
import { UIManager, findNodeHandle} from 'react-native';
import ArCoreReactNativeViewManager from "ar-core-react-native";
...
<ArCoreReactNativeViewManager ref="arCoreView" />
...
// on action button or any
// you send 2 parameter
// name_object - type:string : name object in 3D view.
// path_file - type:string : path file to glb in device.
function addObject(){
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.arCoreView),
"CMD_RUN_SET_OBJECT",
[name_object, path_file]);
}
if you want morre object you can call function addObject() with new parameter.
Delete Object Seleted
// on action delete
function deleteObjectSeleted(){
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.arCoreView),
"CMD_RUN_DELETE_OBJECT",
[]);
}
Example
Read example in Example
License
MIT
1.2.0
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.6
3 years ago
1.2.4
3 years ago
1.1.5
3 years ago
1.2.3
3 years ago
1.1.4
3 years ago
1.2.2
3 years ago
1.1.3
3 years ago
1.2.1
3 years ago
1.1.2
3 years ago
1.1.70
3 years ago
0.1.0
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
1.1.63
3 years ago
1.1.62
3 years ago
1.1.61
3 years ago
1.1.60
3 years ago
1.1.67
3 years ago
1.1.66
3 years ago
1.1.65
3 years ago
1.2.11
3 years ago
1.1.64
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
1.1.69
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago