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
- Host: GitHub
- URL: https://github.com/magic-script/react-native-xr-client
- Owner: magic-script
- License: apache-2.0
- Created: 2019-08-07T18:43:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T16:48:52.000Z (about 6 years ago)
- Last Synced: 2025-01-25T23:47:08.838Z (over 1 year ago)
- Language: Kotlin
- Size: 115 MB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](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.