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:
Dave Pack
2017-11-02 18:14:15 -07:00
committed by Brent Vatne
parent 29ae6f46f6
commit c0474bb644
10 changed files with 240 additions and 228 deletions

View File

@@ -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

View File

@@ -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.