-
Notifications
You must be signed in to change notification settings - Fork 163
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
Update Button Documentation #1249
Update Button Documentation #1249
Conversation
/** | ||
* A callback to call on button click event | ||
*/ | ||
onClick?: () => void; |
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.
This should change to onPress in the long run per #1035
@@ -87,18 +89,18 @@ export type ButtonProps = Omit<IWithPressableOptions<ViewProps>, 'onPress'> & { | |||
*/ | |||
block?: boolean; | |||
|
|||
/** |
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.
Comes as part of RN View props
@@ -91,7 +92,9 @@ export interface ButtonCorePropsWithInnerRef extends Omit<IWithPressableOptions< | |||
*/ | |||
onClick?: () => void; | |||
|
|||
testID?: string; |
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.
Comes as part of RN View props
@@ -76,6 +76,7 @@ export interface ButtonTokens extends ButtonCoreTokens { | |||
export interface ButtonCorePropsWithInnerRef extends Omit<IWithPressableOptions<ViewProps>, 'onPress'> { | |||
/* | |||
* Text to show on the Button. | |||
* Only used in FAB |
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 removed soon, so just going to leave this comment instead making a whole type for it.
Platforms Impacted
Description of changes
Updating documentation for base button
Verification
Build succeeds
Pull request checklist
This PR has considered (when applicable):