react-native-multi-view-pager
Getting started
$ npm install react-native-multi-view-pager --save
Mostly automatic installation
$ react-native link react-native-multi-view-pager
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.react.multiviewpager.RNMultiViewPagerPackage;
to the imports at the top of the file - Add
new RNMultiViewPagerPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-multi-view-pager' project(':react-native-multi-view-pager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-multi-view-pager/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-multi-view-pager')
Usage
import MultiViewPager from 'react-native-multi-view-pager';
// TODO: What do with the module?
MultiViewPager;