react native, Navigate screens on horizontal swipe

I have a react native app with a bottom navigation(using react navigation) the app has 4 screens and it works fine, i want to be add the functionality to navigate between screens on horizontal gestures(swiping right or left) just like instagram does(swiping left from feed will get you to chat screen), i looked all around and found nothing on how to do this !

EDIT: apparently react navigation has that option in creatematerialtoptabnavigator, it'll be a top navigation tab bar with the ability to swipe between screens, you can also change it's position from bottom or top which is what i did.

Upvotes: 2

Views: 4111

Answers (1)

yovchokalev
yovchokalev

Reputation: 643

Did you check out https://github.com/satya164/react-native-tab-view ?

I find it easy to use and the documentation is very good

Upvotes: 1

Related Questions