-
Notifications
You must be signed in to change notification settings - Fork 92
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
handle menu in dynamic List. #65
Comments
@wilfriednhw hello! Right now you can create menus for each item, but this is not optimized. In the future, I will rework this library by using react context. |
Thank you for your answer, I have another problem. for example, I have 6 elements, when I click on the first element, the menu is triggered on the sixth element. What to do please |
HI @mxck I found a solution to handle this problem. This could help others. here is my code
Inside render method
|
you saved my day ! thanks! |
Does not work for me :( |
@wilfriednhw i tried using ur solution but the problem of menu being displayed on the last item of flatlist is still there |
Same issue persisting for me . Did anyone found a solution for this ? |
in flatlist ( renderItem I added items and index)
Solved for me :) thank's @jeffelector |
I am having a problem implementing this ref with |
@Saad-Bashar same here |
showMenu = (item, index) => { Solution worked for me:) thanks alots. |
|
Hi,
Please I have dynamic list, how can handle menu for each item of this list
The text was updated successfully, but these errors were encountered: