UNPKG

get-app-info

Version:

A simple React Native utility to get app platform, version, version code, app name, and bundle identifier.

15 lines (12 loc) 376 B
import { Platform } from "react-native"; import DeviceInfo from "react-native-device-info"; const getAppInfo = async () => { return { platform: Platform.OS, appName: DeviceInfo.getApplicationName(), appVersion: DeviceInfo.getVersion(), appVersionCode: DeviceInfo.getBuildNumber(), bundleId: DeviceInfo.getBundleId(), }; }; export default getAppInfo;