Quick Start
#
IntegrationThe integration of R2U AR module in React Native is made by the library @r2u/react-native-ar-sdk
#
RequirementsThe SDK uses both react-native-device-info
and React Native Async Storage
packages to collect information and control session in order to send data to Analytics. Be sure to have them installed in your application:
- Add the packages with
yarn
Linking the packages is made automatically using CLI autolink feature
On iOS, use CocoaPods to add
RNAsyncStorage
to your project:
If you're using a
react native
version previous to 0.60, link the libraries manuallyFor more information, visit the packages' documentations:
#
InstallationAdd the module to your app project and follow the additional instructions for iOS and Android.
#
iOS- Add camera access permission request on your
Info.plist
- Install the React Native pod
#
Android- Add camera access permission request on your
AndroidManifest.xml
#
Getting startedHere's a sample code that will get you up and running with minimal effort. Be sure to check the rest of the documentation for more detailed information.