如何查询React Native支持的Android版本及RN 0.63.0的最低系统要求
Hey there! Let's tackle your two React Native version compatibility questions clearly:
1. 如何查询你的React Native项目支持的Android版本
There are a few reliable ways to figure this out:
- Check your project's local configuration files
Open theandroid/build.gradlefile in your project root. Look for theextblock underbuildscript— here you'll findminSdkVersion(the oldest Android version your app supports) andcompileSdkVersion(the Android SDK version used to build the app). You can also confirm the same inandroid/app/build.gradlewhich might override or reference these values. - Refer to your React Native version's Release Notes
Every React Native release comes with detailed notes that explicitly state supported OS versions. Just look up the release notes for the exact RN version you're using, and you'll find the Android compatibility range there. - Verify with RN's version compatibility guidelines
The official React Native documentation maintains a compatibility matrix for each version. You can cross-check your RN version against this to get the full picture of supported Android versions.
2. React Native 0.63.0所需的最低Android和iOS系统版本
For React Native 0.63.0, the minimum required OS versions are:
- Minimum Android Version: Android 5.0 (API Level 21)
- Minimum iOS Version: iOS 10.0
You can verify these in your project's configuration files too:
- For Android, check
android/build.gradle— you'll likely see a configuration like this:ext { buildToolsVersion = "29.0.3" minSdkVersion = 21 compileSdkVersion = 29 targetSdkVersion = 29 } - For iOS, open
ios/Podfileand look forplatform :ios, '10.0', or check theMinimumOSVersionfield inios/[YourProjectName]/Info.plistwhich should be set to10.0.
内容的提问来源于stack exchange,提问作者Jin Tan




