Skip to content

Swiping left to right does not work on iOS #686

Closed
@Puneet1796

Description

@Puneet1796
export default function MyViewPager({ pagerItems }) {
  return (
    <View style={{ flex: 1 }}>
      <PagerView style={{ flex: 1 }} initialPage={0}>
        {pagerItems.map((item, index) => (
          <View style={{ justifyContent: 'center', alignItems: 'center'  }} key={index + 1 + ""}>
            <Image source={{ uri: item }} style={{ width: 400, height: 400 }} />
          </View>
        ))}
      </PagerView>
    </View>
  );
}

I've used the above component to render the PagerView and it rendered on both platforms but navigating to the next page by swiping left worked on Android but not on iOS.
I'm using the expo to create the project.
Ref npx create-expo-app <Project name>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions