Skip to content

Commit

Permalink
fix(badge): define prop visible as optional (#2622)
Browse files Browse the repository at this point in the history
Default value `true` is given for `visible` prop of Badge. But `visible` is defined as mandatory. This prop can be optional.
  • Loading branch information
tasugi authored Apr 2, 2021
1 parent 06c0595 commit 111e3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Props = React.ComponentProps<typeof Animated.Text> & {
/**
* Whether the badge is visible
*/
visible: boolean;
visible?: boolean;
/**
* Content of the `Badge`.
*/
Expand Down

0 comments on commit 111e3e0

Please sign in to comment.