Skip to content

onPress within renderFixedForeground() not working for me #99

Open
@butri71

Description

@butri71

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions