bamlab / react-native-image-header-scroll-view

ScrollView with an image in header which becomes a navbar
MIT License
997 stars 99 forks source link

onPress within renderFixedForeground() not working for me #99

Open butri71 opened 3 years ago

butri71 commented 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

shivani-webmobi commented 2 years ago

I also facing same issue please give any suggestion

lamlengend98 commented 2 years ago

try renderFixedForeground