ios - Vertical scrollview conflicting with vertical navigation -
in react native app i'm using askonov's react-native-router-flux display scene vertical scrollview widget. i've configured scene float bottom , appears that, default, dragging down top closes scene.
<router> <scene key="root" hidenavbar={true}> <scene key="welcome" component={welcome}/> <scene key="demo" component={demo} direction="vertical"/> </scene> </router>
the scrollview contains more can displayed on screen users expected drag , down. unfortunately appears drag-down-to-close-scene behavior conflicting scrollview, users unintentionally closing scene when want scroll up.
specifically - looks flick gesture being overridden. flicking doesn't fling scrollview content should, while flicking down closes scene.
this appears new behavior since i've upgraded react native 0.32. when @ 0.22 flick gesture still worked fling scrollview content.
ideally, i'd scene close if scrollview's content scrolled top. i'd settle disabling flick-to-close behavior completely.
you might try adding panhandlers={null}
scene props. should disable flick-to-close, believe.
additionally, possibly utilize refreshcontrol
in scrollview add action when user pulling down list @ top (basically pull-down-to-refresh action, instead dismiss, hacky work).
Comments
Post a Comment