From 79661b7eb289f3aef2b0d4028ade3c2f98ab69eb Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Thu, 13 Aug 2020 03:29:46 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#46051=20fix(rnmu):?= =?UTF-8?q?=20Change=20icon=20type=20on=20CheckBox=20style=20by=20@iRoachi?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- types/react-native-material-ui/index.d.ts | 4 ++-- .../react-native-material-ui-tests.tsx | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/types/react-native-material-ui/index.d.ts b/types/react-native-material-ui/index.d.ts index 47776f6063..5eea1e748c 100644 --- a/types/react-native-material-ui/index.d.ts +++ b/types/react-native-material-ui/index.d.ts @@ -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 {} +export class Checkbox extends Component {} export interface DialogProps { children: JSX.Element | JSX.Element[]; diff --git a/types/react-native-material-ui/react-native-material-ui-tests.tsx b/types/react-native-material-ui/react-native-material-ui-tests.tsx index b2a9a44b06..d594244986 100644 --- a/types/react-native-material-ui/react-native-material-ui-tests.tsx +++ b/types/react-native-material-ui/react-native-material-ui-tests.tsx @@ -144,3 +144,7 @@ class ToolbarExample extends React.Component<{}, {search: string}> { ); } } + +const CheckboxExample = () => ( + +);