mxck / react-native-material-menu

Pure JavaScript material menu component for React Native
MIT License
512 stars 91 forks source link

Reopening menu after setting state to false on ios #128

Open Kadir-flipcause opened 3 weeks ago

Kadir-flipcause commented 3 weeks ago

Hello @mxck Currently Im using react native 0.74.0 and in ios menu is reopening after setting state to false in android its woking fine facing this issue on ios. please check thank you

brianlenz commented 2 weeks ago

We ran into the same issue. One workaround is to add a key attribute to your Menu that changes whenever you hide the menu. It means that the tree will have to be rebuilt each time the menu hides, but that doesn't seem like a big deal as compared to the menu completely malfunctioning.