IconButton | NativeBase | Universal Components for React and React Native

Nativebase logo
NativeBase
IconButton
IconButton composes the Button component. It is generally used to make an Icon pressable.
Examples
Basic
Playground
Sizes
Playground
Variants
Playground
Props
icon
The icon to be used. Refer to the Icon section of the docs for the available icon options.
Type: Element
Styling
NativeBase ships with a default theme for each component. Checkout the default theme of iconButton.
Info: We can easily extend the iconButton component theme using extendTheme function as described in the documentation .
Accessibility
Use accessibilityLabel for labelling icon buttons to make sure it's announced by screen reader devices.
IconButton has a role set to .
Nativebase logo
MadeWithNativeBase