Search code examples
androidreact-nativesdkandroid-versionandroid-api-levels

how to add sdk version in a react native project already created?


I created a project a month ago and I'm working on, I want to know:

  1. which sdk version is in my project
  2. how to add other previous version as lollipop (API 21), marshmallow (API 23), nougat (API 24), oreo (API 26)...
  3. if it's possible to add theme, should I change something in my components code ?

Solution

    1. Go to android/app/build.gradle find out the compileSdkVersion,buildToolsVersion part it's the sdk version you compiling with.

    2. If your minSdkVersion is 16 then it will run on the previous versions.

    3. It's possible to add theme if you need to add the native part. Here is the official link