-
Notifications
You must be signed in to change notification settings - Fork 734
Toast - fix typings #1333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toast - fix typings #1333
Conversation
icon?: ImageRequireSource; | ||
actions?: ReadonlyArray<ButtonProps>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
action
prop is missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -19,18 +12,16 @@ export interface ToastProps { | |||
backgroundColor?: ColorValue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
height
prop is unused :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
typings/components/Toast.d.ts
Outdated
icon?: ImageRequireSource; | ||
actions?: ReadonlyArray<ButtonProps>; | ||
onDismiss?: (event: GestureResponderEvent) => void; | ||
actions?: ButtonProps; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be action
, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, fixed
Description
Toast - fix typings
Changelog
Toast - fix typings
Resolves #1249