A simple React Native utility to get:
- Platform (Android/iOS)
- App Name
- App Version
- App Version Code
- Bundle ID
After Installing, Run: npm install get-app-info react-native-device-info
npm install get-app-info
import getAppInfo from 'get-app-info';
(async () => { const info = await getAppInfo(); console.log(info); })();
{ "platform": "android", "appName": "MyApp", "appVersion": "1.2.3", "appVersionCode": "12", "bundleId": "com.mycompany.myapp" }