首页 > 解决方案 > React Native ScrollView 在横向模式下不滚动

问题描述

我正在使用 scrollView 组件来滚动组件。它适用于本地构建。但是创建apk文件后它不起作用。我能做些什么。

<View style={{ flex: 1 }}>
  <ScrollView contentContainerStyle={{ flexGrow: 1 }} style={{ flex: 1 }}>
    <View style={styles.container}>
      {
        submit ?
          isPreview ?
            <Text>Preview Page</Text> : <Text style={styles.text}>Thank you!</Text>
          : <Questions />
      }
        <PoweredByPEX />
    </View>
  </ScrollView>
</View>

我在这里使用了 View 和 scrollView 组件。我可以在 APK 构建文件之后进行调试。我现在能做什么。我在这里使用了 flex 布局。有什么办法可以解决。

标签: react-native

解决方案


推荐阅读