mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #45385 [react-native-material-ui] Fix type of size to by @bdenhollander
* 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
This commit is contained in:
parent
5074c95e15
commit
a8f3270103
2
types/react-native-material-ui/index.d.ts
vendored
2
types/react-native-material-ui/index.d.ts
vendored
@ -54,7 +54,7 @@ export class Avatar extends Component<AvatarProps, any> {}
|
||||
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;
|
||||
|
||||
@ -38,6 +38,10 @@ const Example = () =>
|
||||
<Avatar icon="mic" size={75} />
|
||||
|
||||
<Badge />
|
||||
<Badge text="3" />
|
||||
<Badge icon="grade" />
|
||||
<Badge icon={{ name: 'grade', color: 'blue', size: 10 }} />
|
||||
<Badge size={10} />
|
||||
|
||||
<IconToggle testID="iconToggleTestID" name="anIconToggle" />
|
||||
<Button testID="buttonTestID" text="I'm a button" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user