Reactjs react native:VirtualizedList不应嵌套在具有相同方向的纯滚动视图中

Reactjs react native:VirtualizedList不应嵌套在具有相同方向的纯滚动视图中,reactjs,react-native,expo,warnings,Reactjs,React Native,Expo,Warnings,我有一个警告:在expo上,VirtualizedList不应嵌套在方向相同的纯滚动视图中 `${item}-${index}`} 水平的 showshorizontalscrolindicator={false} 样式={{flexGrow:0} contentContainerStyle={{padding:SPACING} renderItem={({item:tab})=>{ ... }} /> item.key} 水平的 showshorizontalscrolindicator={

我有一个警告:在expo上,VirtualizedList不应嵌套在方向相同的纯滚动视图中


`${item}-${index}`}
水平的
showshorizontalscrolindicator={false}
样式={{flexGrow:0}
contentContainerStyle={{padding:SPACING}
renderItem={({item:tab})=>{
...
}}
/>
item.key}
水平的
showshorizontalscrolindicator={false}
snapToInterval={FULL_SIZE}
减速率=“快速”
renderItem={({item})=>{
....       
}}
/>
//问题来自这个列表?
item.key}
showsVerticalScrollIndicator={false}
scrollEnabled={false}
renderItem={({item})=>{
...
}}
/>
我认为问题来自上一个平面列表,因为当我删除它时,警告消失了(可能是因为他的方向是垂直的?),因为这是警告内容

您有解决方案吗?

这篇文章将帮助您: