d-a-n / react-native-multiple-choice

A cross-platform (iOS / Android) single and multiple-choice React Native component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple instances of component with same values

florianbepunkt opened this issue · 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.

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

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

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)