Skip to content

Commit

Permalink
Merge pull request #38 from APillowEdwards/master
Browse files Browse the repository at this point in the history
Change how Toggle "checked" prop is determined
  • Loading branch information
sauzy34 authored Apr 21, 2021
2 parents 20dfa0f + 2fcf95e commit 31dd226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function SelectBox({
</TouchableOpacity>
<Toggle
iconColor={toggleIconColor}
checked={selectedValues.indexOf(item) > -1}
checked={selectedValues.some(i => item.id === i.id)}
onTouch={onPressMultiItem()}
/>
</>
Expand Down

0 comments on commit 31dd226

Please sign in to comment.