0.0.6 • Published 6 years ago

react-native-easy-ar v0.0.6

Weekly downloads
24
License
-
Repository
-
Last release
6 years ago

react-native-easy-ar

Getting started

$ npm install react-native-easy-ar --save

Mostly automatic installation

$ react-native link react-native-easy-ar

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import org.infiltech.RNEasyArPackage; to the imports at the top of the file
  • Add new RNEasyArPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-easy-ar'
    project(':react-native-easy-ar').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-easy-ar/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-easy-ar')

Usage

import RNEasyAr from 'react-native-easy-ar';

// TODO: What to do with the module?
RNEasyAr;