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

how to swipe to next screen when user press the button #1353

Open
saifurrehmanahmed opened this issue Dec 1, 2022 · 1 comment
Open

how to swipe to next screen when user press the button #1353

saifurrehmanahmed opened this issue Dec 1, 2022 · 1 comment

Comments

@saifurrehmanahmed
Copy link

Which OS ?

Version

Which versions are you using:

  • react-native-swiper v?
  • react-native v0.?.?

Expected behaviour

Actual behaviour

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce

@marcoaras
Copy link

const swiper = useRef(null);

<Swiper ref={swiper}

<Button onPress={() => swiper.current.scrollBy(1, true)}

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

2 participants