react-native-device-info
Version:
Get device information using react-native
22 lines (21 loc) • 671 B
TypeScript
export declare type DeviceType = 'Handset' | 'Tablet' | 'Tv' | 'Desktop' | 'GamingConsole' | 'unknown';
export declare 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;
}
export declare type AvailableCapacityType = 'total' | 'important' | 'opportunistic';
export interface AppSetIdInfo {
id: string;
scope: number;
}
export declare type AppSetIdScope = 1 | 2;