I separate my styles as follows:
styles / |-- base.js |-- base.ios.js |-- base.android.js 
Each of them exports the StyleSheet component created in this example:
 import { StyleSheet } from 'react-native'; export default StyleSheet.create({ statusBar: { height: 20 }); 
How can I combine them, so I only have one base style object? I am looking for something like:
 const baseStyles = mergeStyles(baseStyle, platformStyle); 
source share