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