Closed
Description
Description
RNUI Carousel does not fire onChangePage when scrolling on Web.
Related to
- Components
Steps to reproduce
Add Carousel to React-native web project, attempt to access onChangePage
Expected behavior
onChangePage should fire, especially when pagingEnabled is set to true.
Actual behavior
Nothing happens.
This seems to be because onMomentumScrollEnd is never called (if my testing is correct).
Code snippet
<Carousel onChangePage={() => console.log('page changed')}>
{_.map(items, item => (
return renderItem(item, index);
))}
</Carousel>
Environment
- React Native version: 0.71.8
- React Native UI Lib version: 6.29.0
Affected platforms
- Web