2.0.22 • Published 6 years ago
@aar/react-native-spring-scrollview v2.0.22
务必先安装并配置好 react-native-spring-scrollview(版本需要一直)
安装
$ yarn add @aar/react-native-spring-scrollview配置
引用aar
1、编辑 android/settings.gradle,找到下面两行代码删掉:
include ':react-native-spring-scrollview'
project(':react-native-spring-scrollview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-spring-scrollview/android')2、编辑 android/build.gradle,在 allprojects.repositories中添加如下配置:
flatDir{
dirs "$rootDir/../node_modules/@aar/react-native-spring-scrollview"
}如果是多个 flatDir,用
","隔开即可
3、编辑 android/app/build.gradle,将 implementation project(':react-native-spring-scrollview') 改为 implementation(name:'react-native-spring-scrollview', ext:'aar')
2.0.22
6 years ago