UNPKG

1.11 kBJavaScriptView Raw
1var __rest = (this && this.__rest) || function (s, e) {
2 var t = {};
3 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4 t[p] = s[p];
5 if (s != null && typeof Object.getOwnPropertySymbols === "function")
6 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8 t[p[i]] = s[p[i]];
9 }
10 return t;
11};
12import { Platform, Dimensions } from 'react-native';
13import color from 'color';
14import renderNode from './renderNode';
15import getIconType from './getIconType';
16import normalizeText from './normalizeText';
17const Screen = Dimensions.get('window');
18const ScreenWidth = Screen.width;
19const ScreenHeight = Screen.height;
20const isIOS = Platform.OS === 'ios';
21export const patchWebProps = (_a) => {
22 var { updateTheme, replaceTheme, onClear } = _a, rest = __rest(_a, ["updateTheme", "replaceTheme", "onClear"]);
23 return rest;
24};
25export { renderNode, getIconType, normalizeText, ScreenWidth, ScreenHeight, isIOS, color, };