- Clone the repository or download a zip of the recent revision.
- Run
npm installoryarn install. - If building for android, replace the contents of
PROJECT_ROOT\node_modules\react-native-vector-icons\android\build.gradlewith:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
}
dependencies {
compile "com.facebook.react:react-native:+"
}react-native run-androidorreact-native run-ios.