You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a component similar like Instagram where we have a Posts screen and Messaging screen. When perform swipe from right to left, screen navigates from Posts screen to Messaging screen.
For smooth swipe, I am using @react-navigation/material-top-tabs which is working absolutely fine.
In Messaging screen, Flatlist component is used to show conversations list and react-native-gesture-handler/Swipeable is used to show controlls which are delete and mute button when user performs "right to left" swipe similar like Instagram which is working 100% fine.
but when trying to navigating back to post screen using swipe on Flatlist then react-native-gesture-handler/Swipeable gesture executes "onSwipeableOpen" callback executes which should not execute so that smoothly translation should be perform from Messaging to Post Screen.
As well as there is no way to disable left to right swipe . Please provide a solution or any suggestion to achieve this task?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am creating a component similar like Instagram where we have a Posts screen and Messaging screen. When perform swipe from right to left, screen navigates from Posts screen to Messaging screen.
For smooth swipe, I am using @react-navigation/material-top-tabs which is working absolutely fine.
In Messaging screen, Flatlist component is used to show conversations list and react-native-gesture-handler/Swipeable is used to show controlls which are delete and mute button when user performs "right to left" swipe similar like Instagram which is working 100% fine.
but when trying to navigating back to post screen using swipe on Flatlist then react-native-gesture-handler/Swipeable gesture executes "onSwipeableOpen" callback executes which should not execute so that smoothly translation should be perform from Messaging to Post Screen.
As well as there is no way to disable left to right swipe . Please provide a solution or any suggestion to achieve this task?
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions