A full React Viro sample AR app for iOS and Android that demonstrates placing, rotating and dragging objects in AR.
To run:
- Check out the project from the terminal:
git clone https://github.com/viromedia/ViroARSampleApp.git
- Make sure you have
node
andnpm
|yarn
installed. Please see our Quick Start guide for more info. - From the terminal, navigate to the project and run
npm install
oryarn install
if usingyarn
to install thenode
modules. - Download the Viro Testbed app, for iOS here, or for Android here.
- In the project root directory, run 'npm start' to start the package server.
- Find your ngrok url (https://xxxxxx.ngrok.io) which is printed at the top of the terminal window where you ran npm start.
- In the Viro Testbed App, tap on the menu icon in the top left and tap on "Enter Testbed".
- Enter the ngrok url into the empty text field on the Testbed screen (xxxxxx.ngrok.io) and press "Go".
If you want to build the project into its own app, see instructions for Xcode or Android Studio.
If you run into any issues, check out our troubleshooting page or open an issue here on Github.
Enjoy!