Skip to content

Carousel does not fire onChangePage when scrolling on Expo Web #2603

Closed
@Bengejd

Description

@Bengejd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in one of the componentsexpoexpo related issueswebwontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions