react-native-tab-navigator 组件 不支持滚动 ?



  • react-native-tab-navigator 组件的其中一个页面mainPage.js中代码如下:
    0_1484317703557_QQ截图20170113222757.png

    ScrollView在这里不生效 无法滚动? 0.39



  • ScrollView 要设置高度。
    https://facebook.github.io/react-native/docs/scrollview.html

    Keep in mind that ScrollViews must have a bounded height in order to work, since they contain unbounded-height children into a bounded container (via a scroll interaction). In order to bound the height of a ScrollView, either set the height of the view directly (discouraged) or make sure all parent views have bounded height. Forgetting to transfer {flex: 1} down the view stack can lead to errors here, which the element inspector makes easy to debug.


登录后回复