devlinb / react-native-simple-survey

Simple to use JSON based survey component for React Native
MIT License
63 stars 28 forks source link

Deselect in multi select environment #3

Closed abanchev closed 5 years ago

abanchev commented 5 years ago

You cannot deselect elements by clicking again on them, if there is a limit of max 3 elements you can click on the same element 3 times to deselect all prior ones.

devlinb commented 5 years ago

I never needed deselect so I didn't implement it!

Obviously for multi-select where the user can choose between 1 and n items, deselect should be implemented. My bad.

XW-Yanis commented 5 years ago

@devlinb Hi devlinb, I have no ideas how to write a snapshot test for SurveyScreen and SurveyCompletedScreen, could you give a help?

sunnyarain commented 5 years ago

Hi @devlinb how can we achieve preselected answer for a specific question?

devlinb commented 5 years ago

@halfsoft @XW-Yanis

2.0 is a breaking change but it should do everything you need. Lots of new features, have fun!