我试图在React Native中嵌套ScrollViews;具有嵌套垂直卷轴的水平滚动。
以下是一个例子:
var Test = React.createClass({
render: function() {
return (
<ScrollView
style={
{width:320, height:568}}
horizontal={true}
pagingEnabled={true}>
{times(3, (i) => {
return (
<View style={
{width:320, height:568}}>
<ScrollView>
{times(20, (j) => {
return (
<View style={
{width:320, height:100, backgroundColor:randomColor()}}/>
);
})}
</ScrollView>
</View>
);
})}