🤖 Merge PR #46051 fix(rnmu): Change icon type on CheckBox style by @iRoachie

* fix(rnmu): Change icon type on CheckBox style

lib: react-native-material-ui

The icon value for the CheckBox style should be a TextStyle.

* style: Add missing semicolon
This commit is contained in:
Kyle Roach 2020-08-13 03:29:46 +00:00 committed by GitHub
parent a2a9dddc1f
commit 79661b7eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -146,7 +146,7 @@ export interface CheckBoxProps {
uncheckedIcon?: string;
checkedIcon?: string;
style?: {
icon?: ViewStyle
icon?: TextStyle
container?: ViewStyle
label?: TextStyle
};
@ -156,7 +156,7 @@ export interface CheckBoxProps {
/**
* @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Checkbox/Checkbox.react.js
*/
export class Checkbox extends Component<CheckBoxProps, any> {}
export class Checkbox extends Component<CheckBoxProps> {}
export interface DialogProps {
children: JSX.Element | JSX.Element[];

View File

@ -144,3 +144,7 @@ class ToolbarExample extends React.Component<{}, {search: string}> {
);
}
}
const CheckboxExample = () => (
<Checkbox value="checked" onCheck={console.log} label="Check Me" style={{ icon: { color: 'pink' }}} />
);