This is a sample project that renders persistent Anchors on Android and iOS using the XR SDK.
For details on how to set up this sample from an initial magic-script project template (as create by the magic-script CLI), see https://github.com/magic-script/react-native-xr-client.
-
Make sure you have the
magic-script-cli
installed and you follow the steps inmagic-script-cli
documentation to properly setup your environment for eitheriOS
orAndroid
(depending on which platform you want to build the project for) -
Download the XR SDK for Android and/or iOS and drop the libraries in the MLXR folder
- For Android, it should be a file named
XRKit.aar
. - For iOS, it should be a folder named
MLXR.framework
.
- For Android, it should be a file named
-
To build & run the project, execute below commands in root directory of the project:
- For Android, type
magic-script build android
- For iOS, type
magic-script build ios
- For Android, type