react-native-multiple-choice icon indicating copy to clipboard operation
react-native-multiple-choice copied to clipboard

Multiple instances of component with same values

Open florianbepunkt opened this issue 9 years ago • 3 comments

When using multiple instances of the component with same values, then they are synchronised, so checking value a in instance, means it's also checked in instance b.

florianbepunkt avatar Nov 23 '16 19:11 florianbepunkt

oh well, it's not related to the same label… 

florianbepunkt avatar Nov 23 '16 20:11 florianbepunkt

I'm also experiencing something alike. It seems that the component instance is never destroyed when the screen is.

christianversloot avatar Nov 29 '16 14:11 christianversloot

A more detailed description (please refer to this @d-a-n ):

  1. I added the MultipleChoice component to a Modal
  2. I can select items and then navigate to another page
  3. I then navigate to the same page again
  4. When I open the modal, the ✓ images are still in place, however, when I click them, I "unselect" them visually (while in fact they get selected)

christianversloot avatar Nov 29 '16 14:11 christianversloot