mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-13 09:39:18 +08:00
SafeAreaView padding from style prop (#2889)
* SafeAreaView now adds padding from style object. If height is specified, inset padding is added to height. * Header now only accepts headerStyle prop, backgroundColor works as expected. * TabBarBottom now only accepts style prop, backgroundColor works as expected. Fixes top inset bug. * Update snapshot. * Add clarifying comment. * Support padding with percentage.
This commit is contained in:
@@ -135,10 +135,6 @@ Style object for the header
|
||||
|
||||
Style object for the title component
|
||||
|
||||
### `headerBackgroundColor`
|
||||
|
||||
Color string that overrides default background color.
|
||||
|
||||
#### `headerBackTitleStyle`
|
||||
|
||||
Style object for the back title
|
||||
|
||||
@@ -106,7 +106,6 @@ Several options get passed to the underlying router to modify navigation logic:
|
||||
- `inactiveBackgroundColor` - Background color of the inactive tab.
|
||||
- `showLabel` - Whether to show label for tab, default is true.
|
||||
- `style` - Style object for the tab bar.
|
||||
- `backgroundColor` - Color string that overrides default backgroundColor.
|
||||
- `labelStyle` - Style object for the tab label.
|
||||
- `tabStyle` - Style object for the tab.
|
||||
- `allowFontScaling` - Whether label font should scale to respect Text Size accessibility settings, default is true.
|
||||
|
||||
Reference in New Issue
Block a user