$ npm install react-native-visible-scroll-iew --save
$ react-native link react-native-visible-scrollview
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-visible-scroll-view
and add FPVisibleScrollView.xcodeproj
libFPVisibleScrollView.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.futurepress.visiblescroll.FPVisibleScrollViewPackage;
to the imports at the top of the filenew FPVisibleScrollViewPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-visible-scroll-view'
project(':react-native-visible-scroll-view').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-visible-scroll-view/android')
android/app/build.gradle
:
compile project(':react-native-visible-scroll-view')