-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When wrapping Pressables (<Pressable>
, <TouchableOpacity>
, ...) with a context menu, the entire JS responder system will fail/crash once you open the context menu once. In other words, your entire screen becomes unresponsive if you open a context menu that contains a pressable.
There might be some extra treatment required to support inlining the JS pressability API.
(Also, it looks like native buttons such as the back button from react-native-navigation are still working, it's just the current screen that "freezes"/doesn't trigger onPress events anymore)
Screen.Recording.2021-01-18.at.10.49.40.mov
Code:
return (
<View style={styles.container}>
<ContextMenuView onPressMenuItem={onContextActionPressed} menuConfig={menuConfig} previewConfig={previewConfig}>
<Pressable style={styles.imageContainer} onPress={onImagePressed}>
<FastImage
style={styles.image}
source={imageSource}
/>
</Pressable>
</ContextMenuView>
</View>
);
ManAnRuck, lukaszkurantdev, adamaveray and samuelscheit
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working