From a8f32701032f16a89c97637c5716ccb34797744a Mon Sep 17 00:00:00 2001 From: bdenhollander <44237618+bdenhollander@users.noreply.github.com> Date: Mon, 15 Jun 2020 08:04:52 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#45385=20[react-nat?= =?UTF-8?q?ive-material-ui]=20Fix=20type=20of=20size=20to=20by=20@bdenholl?= =?UTF-8?q?ander?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix type of size to match source code Expected type is number: https://github.com/xotahal/react-native-material-ui/blob/master/src/Badge/Badge.react.js#L27 * Additional Badge tests --- types/react-native-material-ui/index.d.ts | 2 +- .../react-native-material-ui-tests.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/types/react-native-material-ui/index.d.ts b/types/react-native-material-ui/index.d.ts index f990ce1ce5..47776f6063 100644 --- a/types/react-native-material-ui/index.d.ts +++ b/types/react-native-material-ui/index.d.ts @@ -54,7 +54,7 @@ export class Avatar extends Component {} export interface BadgeProps { children?: JSX.Element; text?: string; - icon?: string | { name: string, color: string, size: string }; + icon?: string | { name: string, color: string, size: number }; size?: number; stroke?: number; accent?: boolean; 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 2e443a10f3..b2a9a44b06 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 @@ -38,6 +38,10 @@ const Example = () => + + + +