You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
612 B

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.resolve = resolve;
var _reactNative = require("react-native");
// Kept in separate file, to avoid name collision with Symbol element
function resolve(styleProp, cleanedProps) {
if (styleProp) {
return _reactNative.StyleSheet ? [styleProp, cleanedProps] :
// Compatibility for arrays of styles in plain react web
styleProp[Symbol.iterator] ? Object.assign({}, ...styleProp, cleanedProps) : Object.assign({}, styleProp, cleanedProps);
} else {
return cleanedProps;
}
}
//# sourceMappingURL=resolve.js.map