reactjs - react native Web ScrollView 快照?

标签 reactjs react-native scrollview react-native-web

我将 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/

相关文章:

javascript - 如何添加多个 Outlet 组件 react router dom V6?

android - 我可以有一个有很多 relativeLayouts 的 scrollView

java - 使用 ListView 滚动布局 android

javascript - react native 嵌套堆栈导航显示空屏幕

reactjs - 使用 Jest/Enzyme 进行 React 组件单元测试中的 D3js

javascript - React JS - 为什么我需要将 e.target 分配给 const 才能使用 e.target.value?

react-native - 我们可以在 React-Native 中使用 Kendo-React UI 吗?

javascript - React native - 如何过滤数组异步(async/await)

react-native - 向我的 expo React native 应用程序添加飞溅时出错

android - 嵌套 ScrollView 中的 ScrollView 不起作用