Changing color of Checkbox in React Native

370 Views Asked by At

It is possible to change color of CheckBox from react-native? For now only when is checked color is Purple, but when is unchecked border color is gray.

<CheckBox
      value={isSelected}
      onValueChange={setSelection}
      style={styles.checkbox}
      labelColor={Colors.PurpleLight}
      color={Colors.PurpleLight}
      onPress={onPress}
      disabled={disabled}
    />

Thank u a lot :)

1

There are 1 best solutions below

2
Gaurav Roy On

As per documentation @Manche you should use https://github.com/react-native-checkbox/react-native-checkbox , community checbox

And there you have the power of customising colors

enter image description here

Hope it helps :)