You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| IconComponent?: React.ComponentType<\*> | component to use for the icons, foe example from `react-native-vector-icons`||
70
-
| iconSize?: number | iconSize ||
71
-
| color?: string | color of icons and buttons ||
72
-
| touchableBackground?: any | the lib internally uses `react-native-platform-touchable` for rendering touchables. You may use this prop to specify the android ripple effect. | Defaults to `Touchable.SelectableBackgroundBorderless()`, valid values are [here](https://github.com/react-community/react-native-platform-touchable#statics). |
73
-
| touchableForeground?: any |the lib internally uses `react-native-platform-touchable` for rendering touchables. You may use this prop to specify the android ripple effect. | Not defined by default, valid values are [here](https://github.com/react-community/react-native-platform-touchable#statics). |
| IconComponent?: React.ComponentType<\*> | component to use for the icons, foe example from `react-native-vector-icons`||
70
+
| iconSize?: number | iconSize ||
71
+
| color?: string | color of icons and buttons ||
72
+
73
+
You may also pass other props that will be passed to the underlying `react-native-platform-touchable`. For example, pass [`background`](https://github.com/react-community/react-native-platform-touchable#additional-props-used-by-touchablenativefeedback--default-android) prop for different ripple effects.
74
74
75
75
Please note that `HeaderButton` also requires other props to function correctly. Some of these props are passed from `<Item .. />` (such as `iconName`) and also `<HeaderButtons ... />`. When wrapping `HeaderButton` it is thus important to not forget to pass down all props the wrapping component receives (this is easy using the spread operator), as documented in the [quick example](#quick-example).
0 commit comments