Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot interact with scrollview inside the tooltip #187

Open
HinTran013 opened this issue Sep 11, 2023 · 1 comment
Open

Cannot interact with scrollview inside the tooltip #187

HinTran013 opened this issue Sep 11, 2023 · 1 comment

Comments

@HinTran013
Copy link

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
Copy link

nightmre789 commented Nov 9, 2023

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 <TouchableWithoutFeedback>

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants