React Native XR SDK Client Library
- Add the package as dependency
$ npm install react-native-xr-client --save- Go to
iosfolder
$ cd ios- Install the
RNXrClientpod
pod install
- 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"
import { XrClientProvider } from 'magic-script-components';
const xrClient = XrClientProvider.getXrClient();
// See magic-script-components/XrClientBridge.d.ts for full APISee 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.