As per title: What's the difference of these usages? I can see they all performing the same from UI perspective
import { StyleSheet, View } from 'react-native'
import type { JSX } from 'react'
const App = (): JSX.Element => (
<View>
<View style={[styles.viewA, styles.viewB]} />
<View style={StyleSheet.compose(styles.viewA, styles.viewB)} />
</View>
)
const styles = StyleSheet.create({
viewA: {
width: 100,
height: 100,
color: '#f00'
},
viewB: {
color: '#0f0'
}
})