React Native XR SDK Client Library
- Add the package as dependency
$ npm install react-native-xr-client --save
- Go to
ios
folder
$ cd ios
- Install the
RNXrClient
pod
pod install
- Open the workspace from XCode
- Find the
RNXrClient
under Pods/Development Pods - Add to
RNXrClient.xcconfig
file:
FRAMEWORK_SEARCH_PATHS = $(inherited) "the/path/to/MLXRSDK"
HEADER_SEARCH_PATHS = <existing paths> "the/path/to/MLXRSDK"
import { XrClientProvider } from 'magic-script-components';
const xrClient = XrClientProvider.getXrClient();
// See magic-script-components/XrClientBridge.d.ts for full API
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.