-
Notifications
You must be signed in to change notification settings - Fork 44
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
How to use with ScrollView instead of ListView #13
Comments
Any idea please @martsie ? Many thanks! |
@maxbeech This should work: <View>
<View style={{ position: "absolute", height: 200, width: Dimensions.get('window').width }}>
<Button title="Click me" onPress={() => alert("clicked")} />
</View>
<TouchThroughWrapper>
<ScrollView>
<TouchThroughView style={{ height: 200, width: Dimensions.get('window').width }} />
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
<Text>Content</Text>
</ScrollView>
</TouchThroughWrapper>
</View> |
Hey @jjenzz! Thanks so much for your response, really appreciated. Have just got round to trying out your solution, though sadly still wasn't working correctly. Am gunna just use ListView with one item for the moment (I know awful hack) and come back to this assuming it is me who is doing something wrong... |
@maxbeech Strange, I have this working in my project. Sorry I couldn't be of more help 🙈 |
Ahh no worries @jjenzz really appreciated anyway! |
This is a SUPER nice library ❤️
Got it working well for
ListView
as in the demo, but struggling to get it working with aScrollView
instead - are there any demos around of this being done please?This is my current code:
This is what hapenns when I run it:
(the
ScrollView
container gets pushed down belowTouchThroughView
Thanks for your help!
The text was updated successfully, but these errors were encountered: