Get app version and build number of your React Native app
npm install @cheydev/react-native-app-version
Run pod install
in the iOS directory
cd ios && pod install
import {
getAppVersion,
getBuildNumber,
} from '@cheydev/react-native-app-version';
// ...
const appVersion: string = await getAppVersion(); // 1.0
const buildNumber: string = await getBuildNumber(); // 1
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library