Open butri71 opened 3 years ago
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
I also facing same issue please give any suggestion
try renderFixedForeground
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