Files
react-native/Libraries/Components
Vojtech Novak 976f4be457 support checkbox tinting (#18300)
Summary:
RN offers checkbox component on android: https://facebook.github.io/react-native/docs/checkbox.html

The Checkbox colors for checked and unchecked states cannot be controlled from JS at the moment; this PR adds support for that.

The essence of changing colors for the states is this:

```
ColorStateList cls = new ColorStateList(
        new int[][] {
                new int[] { -android.R.attr.state_checked }, // unchecked
                new int[] {  android.R.attr.state_checked }  // checked
        },
        new int[] {
                uncheckedColor,
                checkedColor
        }
);
checkBox.setSupportButtonTintList(cls);
```

Because of this, I did it so that both colors have to provided together in an object. This is similar to [switch](https://facebook.github.io/react-native/docs/switch#trackcolor)
Pull Request resolved: https://github.com/facebook/react-native/pull/18300

Differential Revision: D14180218

Pulled By: cpojer

fbshipit-source-id: 88a9d1faf061c0651e3e28950f697535b90fbfd4
2019-02-21 20:16:14 -08:00
..
2019-01-16 13:34:17 -08:00
2019-01-22 02:12:42 -08:00
2019-01-22 05:49:36 -08:00
2019-01-16 13:10:52 -08:00
2019-02-01 09:35:42 -08:00
2019-01-22 05:44:54 -08:00
2019-01-16 13:53:53 -08:00
2019-02-20 23:37:35 -08:00
2019-01-22 05:55:50 -08:00
2019-02-20 23:37:35 -08:00