React Native:内容组件中的native base contentContainerStyle属性在屏幕旋转时不起作用

时间:2017-04-19 12:20:15

标签: android react-native native-base

我正在使用:

text1 = "a"
text2 = "b"
text3 = "c"
words = []
if len(text1) < 2:
    words.append('test11')
elif text1.isspace():
    words.append('test12')
if len(text2) < 2:
    words.append('test21') 
elif text2.isspace():
    words.append('test22')
if len(text3) < 2:
    words.append('test31')
elif text3.isspace():
    words.append('test32')
for i in words:
    if "test" in i:
        print "Test"
        break

1。在纵向视图中,UI看起来没问题。

2。但在横向视图中,我无法滚动UI。

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

我有这个:

<Content padder  contentContainerStyle={{flex: 1}}>
  <Form>
    <Label style={styles.labelText}>Seleccione Cortadores</Label>
    .
    .
    .
  </Form>
</Content>

当我删除contentContainerStyle = {{flex:1}

时,它起作用了