$ npm install https://github.com/wingify/vwo-react-native
$ react-native link vwo-react-native
- Add VWO Dependency to your ios/podfile file
pod 'VWO', '~>2.0.0-beta5'
cd ios && pod install
- Add this in your
android/build.gradle
filemaven { url 'https://raw.githubusercontent.com/wingify/vwo-mobile-android/hybrid/‘ }
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜vwo-react-native
and addVWOReactNative.xcodeproj
- In XCode, in the project navigator, select your project. Add
libVWOReactNative.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Add VWO Dependency to your ios/podfile file
pod 'VWO', '~>2.0.0-beta5'
cd ios && pod install
- Run your project (
Cmd+R
)<
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.vwo.VWOReactNativePackage;
to the imports at the top of the file - Add
new VWOReactNativePackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':vwo-react-native' project(':vwo-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/vwo-react-native/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':vwo-react-native')
- Add this in your
android/build.gradle
filemaven { url 'https://raw.githubusercontent.com/wingify/vwo-mobile-android/hybrid/‘ }