React Native, CSS, Flexbox, Mobile App Development, Mobile.
from 'react-native'; const screenWidth = Dimensions.get('window').width; const App = () => { return ( <View style={styles.container}> {screenWidth > 500 ? ( <> <View style={styles.item1} /> <View style={styles.item2} /> <View style={styles.item3} /> </> ) : ( <> <View style={styles.item1} /> <View