The Viro Developer Hub

Welcome to the Viro developer hub. You'll find comprehensive guides and sample code to help you start working with Viro as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Integrating w/o use_frameworks! (Cocoapods)

ViroReact 2.8.0 onwards

Starting with ViroReact 2.8.0 we have started including our static library (without the need for relying on use_frameworks! in the ViroReact package that you get from npm itself.

Steps to switch your setup your iOS pods over to using ViroReact static library are as follows:

  1. Open your podfile (located at ios/Podfile in your repository`).
  2. Change the line pod 'ViroKit', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/' to
    pod 'ViroKit_static_lib', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/static_lib'

  3. Remove the line containing use_frameworks!.

  4. Save Podfile.
  5. Run pod install to properly install the new pod for static lib.

Steps for earlier versions (2.6.1 - 2.7.3)

  1. To use, first delete your current react-viro package, from your project root run:rm -rf node_modules/react-viro from the command line.

  2. Download the patched react-viro from here:

  1. Install the .tgz file. Run npm install path/to/file.tgz.

  2. Your Podfile will need to be modified to remove the use_frameworks! line.

  3. Run pod install to properly install the pods.

Integrating w/o use_frameworks! (Cocoapods)


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.