我将 scrollview 与 react native web 一起使用,我试图让 scrollview 卡入到位,但它只是像正常一样滚动。我试过使用这些 Prop ,但没有用。
horizontal= {true}
decelerationRate={0}
snapToInterval={200} //your element width
snapToAlignment={"center"}
最佳答案
不幸的是,这目前似乎没有实现:(
来源:https://github.com/necolas/react-native-web/issues/1250
总是有 pagingEnabled={true} 但这并不完全相同。
关于reactjs - react native Web ScrollView 快照?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49366743/