react-native-checkbox
react-native-checkbox copied to clipboard
when default value is true don't set checkedImage
checkbox onChange => works correctly, but when checkbox value default is true it's not works.
example: currentWork : boolean
<CheckBox label='' onChange={() => {setCurrentWork(!currentWork)}} value={currentWork} checkboxStyle={styles.checkbox} checkedImage={CHECKED_ICON} uncheckedImage={UNCHECKED_ICON} />
Try onValueChange => instead. As per documentation onValuechange is said to be "Invoked with the new boolean value when it changes".