npm install react-native-version-check--save AI代码助手复制代码 然后,你可以在代码中导入并使用它: importRNVersionCheckfrom'react-native-version-check';// 检查当前 React Native 版本constcurrentVersion =RNVersionCheck.getCurrentVersion();// 检查官方推荐版本constrecommendedVersion =RNVersionCheck.getRecomm...
react-native-version-checkA version checker for react-native applications Looking for maintainers!I have almost zero experience in ios development, and I am no longer working on mobile app development(doing backend and devops works mainly and some web frontend). It makes me hard to maintain thi...
yarn add react-native-check-version react-native-device-info Basic usage Use thecheckVersionmethod to get information: import{checkVersion}from"react-native-check-version";constversion=awaitcheckVersion();console.log("Got version info:",version);if(version.needsUpdate){console.log(`App has a${ve...
Removes legacy version check fromreact-native.config.js. Changes The community CLI is no longer a dependency for React Native, meaning it may not be installed in every project. For example, projects that use Expo won't include the@react-native-community/cli-*packages. Consequently, this check ...
can use the following command to kick off the upgrade: npx @rnx-kit/dep-check --set-version ...