Skip to content

Latest commit

 

History

History
61 lines (33 loc) · 2.3 KB

INSTALL.md

File metadata and controls

61 lines (33 loc) · 2.3 KB

Installation instructions

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.

Install

NPM

$ npm install --save @reactvision/react-viro

Yarn

$ yarn add @reactvision/react-viro

OS Linking (You must do this - we do not support auto-linking)

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.

Expo Plugin

Examples

Please note that these examples are a bit old, the code targets an older version of viro before the ReactVision took over the project. They will be updated soon!

» AR

» VR

Troubleshooting

  • 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.