react-native-macos/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
..
AccessibilityInfo Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ActivityIndicator ActivityIndicator (#23104) 2019-01-23 02:31:55 -08:00
AppleTV Flow strict TouchableHighlight (#22173) 2018-11-21 14:36:33 -08:00
CheckBox support checkbox tinting (#18300) 2019-02-21 20:16:14 -08:00
Clipboard Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
DatePicker remove unused suppressions in xplat 2019-01-18 06:44:05 -08:00
DatePickerAndroid Fix DatePickerAndroid flow errors 2018-12-26 12:03:45 -08:00
DrawerAndroid AndroidDrawerLayout (#23036) 2019-01-18 03:48:14 -08:00
Keyboard Refine Keyboard API Event typings (#23272) 2019-02-04 07:45:42 -08:00
MaskedView RCTMaskedView (#23001) 2019-01-16 13:34:17 -08:00
Picker RCTPicker (#22996) 2019-01-22 02:12:42 -08:00
ProgressBarAndroid ProgressBarAndroid (#23068) 2019-01-22 02:48:35 -08:00
ProgressViewIOS RCTProgressView (#23077) 2019-01-22 05:49:36 -08:00
RefreshControl AndroidSwipeRefreshLayout (#23039) 2019-01-18 02:19:52 -08:00
SafeAreaView RCTSafeAreaView (#23006) 2019-01-16 13:10:52 -08:00
ScrollView Update xplat/js to 0.92.0 2019-02-01 09:35:42 -08:00
SegmentedControlIOS RCTSegmentedControl (#23000) 2019-01-16 14:00:00 -08:00
Slider RCTSlider (#23048) 2019-01-22 05:44:54 -08:00
StatusBar Expose static methods to manipulate the StatusBar stack imperatively (#21206) 2019-01-22 07:12:04 -08:00
Switch Pass through track color values for true/false to native component 2019-02-12 10:47:58 -08:00
TextInput Add prop to configure `importantForAutofill`. (#22763) 2019-02-17 14:33:37 -08:00
TimePickerAndroid Flow strict-local in TimePickerAndroid.android.ios.js (#22714) 2019-01-25 06:27:21 -08:00
ToastAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ToolbarAndroid ToolbarAndroid (#23009) 2019-01-16 13:53:53 -08:00
Touchable Add setNextFocus support (#22082) 2019-02-20 23:37:35 -08:00
UnimplementedViews Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
View Add setNextFocus support (#22082) 2019-02-20 23:37:35 -08:00
ViewPager AndroidViewPagers.js (#22995) 2019-01-22 05:55:50 -08:00
WebView Allow to toggle Android WebView HardwareAcceleration from JS 2018-12-11 21:28:53 -08:00
Button.js Add setNextFocus support (#22082) 2019-02-20 23:37:35 -08:00
ScrollResponder.js Revert D13860038: [react-native][PR] Add ability to control scroll animation duration for Android 2019-01-29 18:00:54 -08:00
StaticContainer.react.js Flow strict StaticContainer (#22121) 2018-11-05 14:49:57 -08:00
StaticRenderer.js StaticRenderer: Removed prop types (#21348) 2018-09-27 11:17:47 -07:00