react-web-native-sketch
Version:
[TODO: We need an overview of how this can be used via npm vs as a local package]
16 lines (15 loc) • 560 B
TypeScript
import { PLATFORM } from '../../utils/enums';
export declare const isWeb: boolean;
export declare const isIOS: boolean;
export declare const isAndroid: boolean;
export declare const isSketch: boolean;
export declare const getWindowHeight: () => number;
export declare const getWindowWidth: () => number;
export declare const getStorage: () => LocalForage;
/**
* Determine the mobile operating system.
* This function returns one of 'iOS', 'Android', 'Windows Phone', or 'unknown'.
*
* @returns {Object}
*/
export declare function getPlatform(): PLATFORM;