是否可以在 react-native 中支持更新的 android sdk 版本?

Is it possible to support newer android sdk versions in react-native?

我在 react-native documentation 中遵循 android 的设置指南 并使用建议的 SDK v23

正确启动并 运行

但是有很多更新的 SDK 版本可用,我想将 v23 设置为最低 SDK 版本,但使用最新版本作为我的主要版本。

我是 android 的新手,我不确定如何实现这一点,我应该采取哪些步骤?我可以在一些 xml 文件中看到编辑 sdk 版本的选项,并且可以使用 Android Studio 下载最新版本。

附带说明一下,我使用 SDK v23 有哪些限制?它不能在较新的设备上运行吗?我是否会降低性能等...?

根据some sources React Native does support up to API level 25, but there seems to be some disagreement的问题。所以根据官方消息,React Native只支持AndroidAPI16级到23级

我自己没有使用过 React Native,但假设版本控制与那些更高版本的 SDK 引入的 native development, an application with a compileSdkVersion lower than the version it is running against will run fine. The only limitations on the application would be that it would be unable to access the new features and APIs 相同。

例如,Android 8.0(API 26 级)引入了一个新的 Picture-in-Picture API, but the method used 进入画中画模式,在针对 [=22 编译的代码中将不可用=] 23 级。一些新功能可能会影响性能(通常是积极的),但是针对 API 级别 23 编译的应用程序在 运行 和 API 26 设备上的性能不会更差比 API 上的一个 运行 23.