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

onPress within renderFixedForeground() not working for me #99

Open
butri71 opened this issue Mar 14, 2021 · 2 comments
Open

onPress within renderFixedForeground() not working for me #99

butri71 opened this issue Mar 14, 2021 · 2 comments

Comments

@butri71
Copy link

butri71 commented Mar 14, 2021

I've implemented something similar to your Basic example with a "Click Me" text but the onPress action does not trigger any event.

All the rest of behaviour is working as expected, just the onPress event does not seem to be triggered using the TouchableOpacity.

My code has something very similar to your example below:

renderForeground={() => (
<View style={{ height: 150, justifyContent: "center", alignItems: "center" }} >
<TouchableOpacity onPress={() => console.log("tap!!")}>
<Text style={{ backgroundColor: "transparent" }}>Tap Me!


)}

This is happening across all platforms.

It looks like another layer sits on top.

Any suggestion?

Thanks

@shivani-webmobi
Copy link

shivani-webmobi commented May 10, 2022

I also facing same issue please give any suggestion

@lamlengend98
Copy link

try renderFixedForeground

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

3 participants