react-native-image-crop-picker使用

798 ワード

《      》

1.    SDK,  27+,build-tools   27+(  )

2. android/build.gradle   

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven { url "https://jitpack.io" }
    }
}

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 27
                buildToolsVersion '27.0.0'
            }
        }
    }
}

3. android/app/build.gradle   
defaultConfig {
          ...
          vectorDrawables.useSupportLibrary = true
          ...
}