react-native-swipe-navigation
react-native-swipe-navigation copied to clipboard
Using scrollview inside react-native-swipe-navigation
Hi,
Thanks a lot for making this package, it is possible to use a scrollview inside Messages view in the snapchat example?
Thans for reply.
Hi, I didn't try it but I think you can use a scrollview inside a screen but you have to hold the navigation using
nav.onNavigateShouldAllow(() => { return false; // you can do it using component's state for example return this.state.hold });
I'm sorry for the late but I'll try to support this library
Thanks for reply, i will try it 👍
@loic-lopez If you do not care about up/down navigation like my case... I got around this problem by modifying Gesture.js as follows
onMoveShouldSetPanResponderCapture: (e, { dy, dx }) => {
if (dy > 5 || dy < -5) {
return false
}
....
silky smooth scrollview and left/right navigation still!
Really is this library was Good enough for using scrollview inside navigation? Thanks in advance!