UNPKG

react-native-device-info

Version:
31 lines (23 loc) 721 B
export type DeviceType = 'Handset' | 'Tablet' | 'Tv' | 'Desktop' | 'GamingConsole' | 'unknown'; export type BatteryState = 'unknown' | 'unplugged' | 'charging' | 'full'; export interface PowerState { batteryLevel: number; batteryState: BatteryState; lowPowerMode: boolean; [key: string]: any; } export interface LocationProviderInfo { [key: string]: boolean; } export interface AsyncHookResult<T> { loading: boolean; result: T; } // Only relevant for iOS export type AvailableCapacityType = 'total' | 'important' | 'opportunistic'; // AppSetId types for Android export interface AppSetIdInfo { id: string; scope: number; } export type AppSetIdScope = 1 | 2; // SCOPE_APP = 1, SCOPE_DEVELOPER = 2