View组件类似于div
外联样式:<View style={styles.container}>
内联样式:<View style={{flex: 1, borderWidth: 1, borderColor: 'red', flexDirection: 'row'}}>
多个样式:<View style={[styles.container, styles.flex, {borderWidth: 1}]}>
外联样式:<View style={styles.container}>
内联样式:<View style={{flex: 1, borderWidth: 1, borderColor: 'red', flexDirection: 'row'}}>
多个样式:<View style={[styles.container, styles.flex, {borderWidth: 1}]}>