react-native-side-menu icon indicating copy to clipboard operation
react-native-side-menu copied to clipboard

Any Touchable element inside <SideMenu> gets activated on each re-render i.e any setState called invokes the touch event causing infinite loop

Open RonakKhandelwal opened this issue 9 years ago • 5 comments

RonakKhandelwal avatar Jun 02 '16 11:06 RonakKhandelwal

Hi @RonakKhandelwal!

Unfortunately, this question is not clear to me. Could you be so kind to provide me some code to reproduce a bug you're talking about?

Kureev avatar Jul 28 '16 15:07 Kureev

I've faced this problem. My app contains SideMenu and react-native-maps in it. I created press event on some marker at map. After I click on it, my app shuts down. Screenshots are below. image image image

xilaraux avatar Apr 19 '17 02:04 xilaraux

Hey @xilaraux, can you try to install react-native-side-menu from the master and set autoClosing={false}? Does it do the trick? If so, I release a new version.

Kureev avatar Apr 20 '17 09:04 Kureev

It looks better, but still doesn't work. App fails after some time, and I couldn't change isOpen prop of your component through click on the map's marker.

xilaraux avatar Apr 20 '17 17:04 xilaraux

Why so? Shouldn't be a SideMenu issue now

Kureev avatar Apr 21 '17 05:04 Kureev