What is expo-application?
The expo-application package provides access to system and application information for an Expo app. This includes details such as the app's name, version, build number, and more.
What are expo-application's main functionalities?
Get Application Name
This feature allows you to retrieve the name of the application.
import * as Application from 'expo-application';
console.log(Application.applicationName);
Get Application Version
This feature allows you to get the version of the application.
import * as Application from 'expo-application';
console.log(Application.nativeApplicationVersion);
Get Build Number
This feature allows you to retrieve the build number of the application.
import * as Application from 'expo-application';
console.log(Application.nativeBuildVersion);
Get Installation Time
This feature allows you to get the installation time of the application.
import * as Application from 'expo-application';
Application.getInstallationTimeAsync().then(time => console.log(time));
Get Application ID
This feature allows you to retrieve the application ID.
import * as Application from 'expo-application';
console.log(Application.applicationId);
Other packages similar to expo-application
react-native-device-info
The react-native-device-info package provides device and application information for React Native apps. It offers a broader range of device-specific information compared to expo-application, such as device model, manufacturer, and unique IDs.
expo-constants
The expo-constants package provides system information that remains constant throughout the lifecycle of the app. It includes some overlapping features with expo-application, such as app ownership and manifest details, but also includes additional constants like device year class and platform-specific information.