You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何查询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 the android/build.gradle file in your project root. Look for the ext block under buildscript — here you'll find minSdkVersion (the oldest Android version your app supports) and compileSdkVersion (the Android SDK version used to build the app). You can also confirm the same in android/app/build.gradle which 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/Podfile and look for platform :ios, '10.0', or check the MinimumOSVersion field in ios/[YourProjectName]/Info.plist which should be set to 10.0.

内容的提问来源于stack exchange,提问作者Jin Tan

火山引擎 最新活动