{"ast":null,"code":"var _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.resolve = resolve;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _reactNative = require(\"react-native-web/dist/index\");\n\nfunction resolve(styleProp, cleanedProps) {\n  if (styleProp) {\n    return _reactNative.StyleSheet ? [styleProp, cleanedProps] : styleProp[typeof Symbol === \"function\" ? Symbol.iterator : \"@@iterator\"] ? Object.assign.apply(Object, [{}].concat((0, _toConsumableArray2.default)(styleProp), [cleanedProps])) : (0, _extends2.default)({}, styleProp, cleanedProps);\n  } else {\n    return cleanedProps;\n  }\n}","map":{"version":3,"sources":["resolve.ts"],"names":["StyleSheet","styleProp","Symbol","Object"],"mappings":";;;;;;;;;yDAAA,0C;;;;AAGO,SAAA,OAAA,CAAA,SAAA,EAAA,YAAA,EAA6D;AAClE,MAAA,SAAA,EAAe;AACb,WAAOA,YAAAA,CAAAA,UAAAA,GACH,CAAA,SAAA,EADGA,YACH,CADGA,GAGLC,SAAS,CAAA,OAAA,MAAA,KAAA,UAAA,GAACC,MAAM,CAAP,QAAA,GAATD,YAAS,CAATA,GACEE,MAAM,CAANA,MAAAA,CAAAA,KAAAA,CAAAA,MAAAA,EAAM,CAAA,EAAA,EAAA,MAAA,CAAA,CAAA,GAAA,mBAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CADRF,YACQ,CAAA,CAANE,CADFF,GAEE,CAAA,GAAA,SAAA,CAAA,OAAA,EAAA,EAAA,EAAA,SAAA,EALJ,YAKI,CALJ;AADF,GAAA,MAOO;AACL,WAAA,YAAA;AAEH;AAAA","sourcesContent":["import { StyleSheet } from 'react-native';\n\n// Kept in separate file, to avoid name collision with Symbol element\nexport function resolve<T>(styleProp: Iterable<T>, cleanedProps: T) {\n  if (styleProp) {\n    return StyleSheet\n      ? [styleProp, cleanedProps]\n      : // Compatibility for arrays of styles in plain react web\n      styleProp[Symbol.iterator]\n      ? Object.assign({}, ...styleProp, cleanedProps)\n      : Object.assign({}, styleProp, cleanedProps);\n  } else {\n    return cleanedProps;\n  }\n}\n"]},"metadata":{},"sourceType":"script"}