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

[HELPPPPPP] get click event from ContextMenuView #47

Closed
fukemy opened this issue Jul 26, 2022 · 4 comments
Closed

[HELPPPPPP] get click event from ContextMenuView #47

fukemy opened this issue Jul 26, 2022 · 4 comments

Comments

@fukemy
Copy link

fukemy commented Jul 26, 2022

Hi, i want to handle click into ContextMenuView, because my keyboard + textInput need some calculated code,
when click outside of ContextMenuView( it's mean i return ContextMenuView from renderItem with FlatList) => i can handle it

As you can see video here:

Screen.Recording.2022-07-26.at.15.40.36.mov

But when click into ContextMenuView, i can catch click event, so. the input not go down.
i tried to use

 <ContextMenuView
                        keyboardShouldPersistTaps='never'
                        onPress={...}
                        onLongPress={...}

Plz help my problem

@fukemy
Copy link
Author

fukemy commented Jul 26, 2022

im sure the problem is ContextMenuView click, because when remove ContextMenuView, it work normally

@dominicstop
Copy link
Owner

@fukemy let me look into it, but i have to make a test case first so i can debug the issue

tbh, i'm not really sure what's wrong — it's a layout issue related to the keyboard right? could you describe it in more detail?

@dominicstop
Copy link
Owner

hey i made a test case for your issue: Test03Screen

Simulator.Screen.Recording.-.iPhone.8.-.2022-07-27.at.23.16.55.mov

but i couldn't reproduce the bug...
if you're still having issues, i'll reopen this 😊

@timothyerwin
Copy link

@dominicstop is it a performance issue that it is rendering the context menu for each message bubble in a flat list?

if there are hundreds of messages for example. what I mean is, it seems like it would be better if the long press triggered a context menu on demand as opposed to adding it in the tree for each message?

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