UNPKG

react-web-native-sketch

Version:

[TODO: We need an overview of how this can be used via npm vs as a local package]

18 lines 785 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var react_native_1 = require("react-native"); var enums_1 = require("../../utils/enums"); exports.isWeb = false; exports.isIOS = react_native_1.Platform.OS === 'ios'; exports.isAndroid = react_native_1.Platform.OS === 'android'; exports.isSketch = false; exports.getWindowHeight = function () { return react_native_1.Dimensions.get('window').height; }; exports.getWindowWidth = function () { return react_native_1.Dimensions.get('window').width; }; exports.getStorage = function () { return react_native_1.AsyncStorage; }; function getPlatform() { return exports.isIOS ? enums_1.PLATFORM.IOS : enums_1.PLATFORM.ANDROID; } exports.getPlatform = getPlatform; //# sourceMappingURL=platform.native.js.map