我正在创建不同的滚动视图,视图不正确。在ScrollView End和ScrollView Start之间有一个很长的空间,我不知道应该修改什么样式来避免这种情况。当滚动视图设置为换行时,会出现长空格!
有什么想法吗?
我正在创建类似这样的东西:
<View>
<ScrollView
contentContainerStyle={{
flexDirection: "column",
alignContent: "space-around"
}}
automaticallyAdjustContentInsets={false}
contentInSet={{ bottom: 49 }}
style={{ paddingBottom: 0, marginBottom: 0 }}
>
<Text>Testing</Text>
<ScrollView
contentContainerStyle={globalStyles.COMMON_STYLES.scrollView}
automaticallyAdjustContentInsets={false}
contentInSet={{ bottom: 49 }}
style={{ padding: 0, margin: 0 }}
>
<Text>ScrollView End</Text>
</ScrollView>
//Here is the problem!!! Lot of space in the IOS Simulator.
<Text>ScrollView Start</Text>
<ScrollView>
<Text>Test</Text>
</ScrollView>
</ScrollView>
</View>;
globalStyles.COMMON_STYLES.scrollview
scrollView: {
flexDirection: 'row',
flexWrap: 'wrap',
}
在下面的滚动视图中有一个很长的空格:
发布于 2017-12-07 08:42:50
尝试在ScrollView上使用此命令
automaticallyAdjustContentInsets = {false}
https://stackoverflow.com/questions/43285057
复制相似问题