Explore Library
Code QuizAdvanced

Flexbox Row Layout Bug

Spot why these boxes stack vertically instead of sitting side by side.

Codejavascript
import { View, StyleSheet } from 'react-native';

export default function Row() {
  return (
    <View style={styles.container}>
      <View style={styles.box} />
      <View style={styles.box} />
      <View style={styles.box} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'space-between',
  },
  box: {
    width: 50,
    height: 50,
    backgroundColor: 'tomato',
  },
});

The developer expected the three boxes to line up horizontally, but they stack vertically. What is the bug?