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:
-
Open your podfile (located at
ios/Podfile
in your repository`). -
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'
-
Remove the line containing
use_frameworks!
. -
Save
Podfile
. -
Run
pod install
to properly install the new pod for static lib.
Steps for earlier versions (2.6.1 - 2.7.3)
-
To use, first delete your current react-viro package, from your project root run:rm -rf node_modules/react-viro from the command line.
-
Download the patched react-viro from here:
-
Install the
.tgz
file. Runnpm install path/to/file.tgz
. -
Your
Podfile
will need to be modified to remove theuse_frameworks!
line. -
Run
pod install
to properly install the pods.
Updated less than a minute ago