If you are starting a new project, please consider using our Starter Kit as a basis for your app.
The steps below are for manually installing and linking the library to an existing React Native project. We do not yet support auto-linking.
$ npm install --save @viro-community/react-viro
$ yarn add @viro-community/react-viro
If you're unsure about which file to edit or where to put specified the lines, we have added links to how this is done in our starter-kit repo.
-
It doesn't work on my iOS simulator!
AR does not work on iOS simulators. If you are getting an error that looks like:
ARWorldTrackingConfiguration setAutoFocusEnabled: unrecognised
that is expected. Sorry!
See running-on-device in the official react-native docs.