@NellyNgo, , , , StyleSheet.create. , , , , . flatten , StyleSheet.create. :
const styles = StyleSheet.create({prop: {...}, prop2: {...})
StyleSheet.flatten(styles.prop)
node_modules/react-native/Libraries/StyleSheet/flattenStyle.js. , .
function getStyle(style) {
if (typeof style === 'number') {
return ReactNativePropRegistry.getByID(style);
}
return style;
}
RN 0.41.2