Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiping left to right does not work on iOS #686

Open
Puneet1796 opened this issue Jan 31, 2023 · 3 comments
Open

Swiping left to right does not work on iOS #686

Puneet1796 opened this issue Jan 31, 2023 · 3 comments

Comments

@Puneet1796
Copy link

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>

@andreialecu
Copy link
Collaborator

andreialecu commented Mar 9, 2023

I noticed the same issue on v6, there used to be a workaround that worked on v5 that no longer seems to work reliably on v6. It relied on using left hitSlop with a negative amount of pixels. More details here PedroBern/react-native-collapsible-tab-view#248

I would assume this would fix it properly: #665

@okwasniewski
Copy link
Member

Hey @Puneet1796, this should work properly on the latest version, can you re-test?

@james-ovens-eurostar
Copy link

Might be caused by this: #705
Which would be reverted by this: #771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants