这是什么意思?(https://facebook.github.io/react-native/docs/scrollview)
请记住ScrollViews必须具有有界高度才能使用
谁必须拥有所谓的有界高度?ScrollView
本身?还是它的父母?还是它的孩子?
<SafeAreaView style={{height: ...}}> <= this?
<ScrollView style={{height: ...}}> <= this?
<View style={{height: ...}}> <= this?
....
</View>
</ScrollView>
</SafeAreaView>
据我所知,它是ScrollView的父级的高度。
<SafeAreaView style={styles.container}>
<ScrollView style={styles.scrollView}>
......
......
</ScrollView>
</SafeAreaView>
const styles = StyleSheet.create({
container: {
flex: 1,
},