UNPKG

@livelike/react-native

Version:

LiveLike React Native package

19 lines 479 B
import { StyleSheet } from 'react-native'; export function createStyles(_ref) { let { componentStyles, stylesProp } = _ref; if (!stylesProp || !Object.keys(stylesProp).length) { return componentStyles; } for (const style in componentStyles) { if (stylesProp[style]) { componentStyles[style] = StyleSheet.compose(componentStyles[style], stylesProp[style]); } } return { ...componentStyles }; } //# sourceMappingURL=createStyles.js.map