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/Podfilein 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
pod installto properly install the new pod for static lib.
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:
npm install path/to/file.tgz.
Podfilewill need to be modified to remove the
pod installto properly install the pods.