Example
Props
Text to display inside the button. On Android the given title will be converted to the uppercased form.
Handler to be called when the user taps the button.
Color of the text (iOS), or background color of the button (Android).Default:
#2196F3 on Android, #007AFF on iOSIf
true, disable all interactions for this component.If
true, doesn’t play system sound on touch.Platform: AndroidText to display for blindness accessibility features.
Used to locate this view in end-to-end tests.
TV preferred focus.Platform: TVDeprecated: Use
focusable insteadDesignates the next view to receive focus when the user navigates down.Platform: Android, TV
Designates the next view to receive focus when the user navigates forward.Platform: Android, TV
Designates the next view to receive focus when the user navigates left.Platform: Android, TV
Designates the next view to receive focus when the user navigates right.Platform: Android, TV
Designates the next view to receive focus when the user navigates up.Platform: Android, TV
Platform Differences
iOS
- The
colorprop controls the text color - Text is displayed in sentence case
- Default color is blue (#007AFF)
Android
- The
colorprop controls the background color - Text is automatically converted to uppercase
- Default color is Material Blue (#2196F3)
- Has elevation/shadow effect