🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

ar-core-react-native

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ar-core-react-native

ARCore and ARKit for React native

1.2.4
latest
Source
npm
Version published
Weekly downloads
26
85.71%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

react-native

FAQs

Package last updated on 11 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts