mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 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:
parent
a2a9dddc1f
commit
79661b7eb2
4
types/react-native-material-ui/index.d.ts
vendored
4
types/react-native-material-ui/index.d.ts
vendored
@ -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[];
|
||||
|
||||
@ -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' }}} />
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user