/react-native-xr-client

React Native XR SDK Client Library

Primary LanguageKotlinApache License 2.0Apache-2.0

License

React Native XR Client

React Native XR SDK Client Library

Getting started

  1. Add the package as dependency
$ npm install react-native-xr-client --save
  1. Go to ios folder
$ cd ios
  1. Install the RNXrClient pod
pod install

iOS

  1. Open the workspace from XCode
  2. Find the RNXrClient under Pods/Development Pods
  3. Add to RNXrClient.xcconfig file:
FRAMEWORK_SEARCH_PATHS = $(inherited) "the/path/to/MLXRSDK"
HEADER_SEARCH_PATHS = <existing paths> "the/path/to/MLXRSDK"

Usage

import { XrClientProvider } from 'magic-script-components';

const xrClient = XrClientProvider.getXrClient();

// See magic-script-components/XrClientBridge.d.ts for full API

Detailed 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.