Search code examples
reactjsreact-nativevirtual-realityvisionos

How to run react-native on visionOS


Apple just released visionOS SDK for creating Vision Pro apps. How can I run a react-native project on Apple Vision Pro?


Solution

  • Running your app on visionOS is just a matter of adding it as a supported destination.

    Select your app target in your project’s settings and navigate to the General tab. In Supported Destinations, click the Add (+) button to add a new destination and select the Apple Vision option.

    Xcode project

    After that just select Apple Vision Pro (Designed for iPad) from you run destinations list and press run

    enter image description here