我需要制作一张长表格,可能会超出屏幕范围。
我知道可以使用scrollview来实现这样的效果,但它只能在垂直或水平方向上滚动。
如何让它同时在两个方向上滚动呢?
如果有其他方法,请与我分享。
谢谢。
目前我还没有尝试过其他可行的选项。
<ScrollView
showsHorizontalScrollIndicator={false}
showsVerticalScrollIndicator={false}
style={{
paddingBottom: Padding.lg,
marginBottom: 100
}}
>
{inventories.map((item, index) => {
return <InventoryResult item={item} key={index} />;
})}
</ScrollView>