An open API service indexing awesome lists of open source software.

https://github.com/magic-script/react-native-xr-client

React Native XR SDK Client Library
https://github.com/magic-script/react-native-xr-client

Last synced: about 1 year ago
JSON representation

React Native XR SDK Client Library

Awesome Lists containing this project

README

          

[![License](https://img.shields.io/:license-Apache%202.0-blue.svg)](LICENSE)

# React Native XR Client

React Native XR SDK Client Library

## Getting started
1. Add the package as dependency
```bash
$ npm install react-native-xr-client --save
```
2. Go to `ios` folder
```bash
$ cd ios
```
3. 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 = "the/path/to/MLXRSDK"
```

## Usage
```javascript
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](GettingStarted.md) for detailed step-by-step instructions to set up a sample react-native project that renders ML Anchors on both Android and iOS.