How to specify the minSdkVersion in react native project

Vivek picture Vivek · Jul 24, 2018 · Viewed 10.6k times · Source

I have created react native project using create-react-native-app

I can see that there is a sdkVersion property in app.json, but I want to specify minSdkVersion for the app.

How do I specify the minSdkVersion in react native project?

Answer

Jay Thummar picture Jay Thummar · Jul 25, 2018

You can change it from app/build.gradle directly Open the project go to the android/app folder and open build.gradle file. In this you can find

   defaultConfig {
    applicationId "PACKAGE_ID"
    minSdkVersion 16
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
}

change this minSdkVersion 16 according to your requirement