jasongaare / react-native-walkthrough-tooltip

An inline wrapper for calling out React Native components via tooltip
MIT License
610 stars 182 forks source link

Cannot interact with scrollview inside the tooltip #187

Open HinTran013 opened 12 months ago

HinTran013 commented 12 months ago

Has anyone tried to build a complex UI inside the tooltip yet? I have a scrollView inside the tooltip to render some items, but I notice that I cannot interact and scroll it. The solution for this issue is I render a TouchableOpacity element inside a scrollView and wrap it outside the list items, so I can scroll it now. But the remaining issue is I want to set maximumZoomScale={2} to zoom in and out the scrollView content. But it seems like this library is preventing pinch gestures for the scrollView so I cannot interact with it. Does anyone have any solution? Thank you so much.

nightmre789 commented 10 months ago

Has anyone tried to build a complex UI inside the tooltip yet? I have a scrollView inside the tooltip to render some items, but I notice that I cannot interact and scroll it. The solution for this issue is I render a TouchableOpacity element inside a scrollView and wrap it outside the list items, so I can scroll it now. But the remaining issue is I want to set maximumZoomScale={2} to zoom in and out the scrollView content. But it seems like this library is preventing pinch gestures for the scrollView so I cannot interact with it. Does anyone have any solution? Thank you so much.

My scrollview wouldnt work either. Looks like its because the library wraps the content in \

my solution was to wrap scrollview children inside a <View onStartShouldSetResponder={() => true}>

so \ <View onStartShouldSetResponder={() => true}> ... scrollable content