Complete the code to set the main axis direction to row in a Flexbox container.
const styles = StyleSheet.create({ container: { flexDirection: '[1]' } });Setting flexDirection to row arranges children horizontally.
Complete the code to center items horizontally inside a Flexbox container.
const styles = StyleSheet.create({ container: { justifyContent: '[1]' } });justifyContent: 'center' centers items along the main axis.
Fix the error in the code to align items vertically centered in a Flexbox container.
const styles = StyleSheet.create({ container: { alignItems: '[1]' } });alignItems: 'center' centers items along the cross axis vertically.
Fill both blanks to create a Flexbox container with vertical layout and items spaced evenly.
const styles = StyleSheet.create({ container: { flexDirection: '[1]', justifyContent: '[2]' } });Using flexDirection: 'column' arranges items vertically, and justifyContent: 'space-between' spaces them evenly with space between.
Fill all three blanks to create a horizontal Flexbox container with centered items and space around them.
const styles = StyleSheet.create({ container: { flexDirection: '[1]', justifyContent: '[2]', alignItems: '[3]' } });flexDirection: 'row' arranges items horizontally, justifyContent: 'space-around' adds space around items along the main axis, and alignItems: 'center' centers items vertically.