0.0.9 • Published 6 years ago
react-native-xr-client v0.0.9
React Native XR Client
React Native XR SDK Client Library
Getting started
- Add the package as dependency
$ npm install react-native-xr-client --save- Go to
iosfolder
$ cd ios- Install the
RNXrClientpod
pod installiOS
- Open the workspace from XCode
- Find the
RNXrClientunder Pods/Development Pods - Add to
RNXrClient.xcconfigfile:
FRAMEWORK_SEARCH_PATHS = $(inherited) "the/path/to/MLXRSDK"
HEADER_SEARCH_PATHS = <existing paths> "the/path/to/MLXRSDK"Usage
import { NativeModules } from 'react-native';
const { XrClientBridge } = NativeModules;
// See index.d.ts for XrClientBridge APIDetailed Getting Started Guide
See Getting Started for detailed step-by-step instructions to set up a sample react-native project that renders ML Anchors on both Android and iOS.