Skip to content

Commit

Permalink
Merge branch 'master' into dc/issue/3222
Browse files Browse the repository at this point in the history
* master:
  Add StatusBar marginTop for navTransparent (#3212)
  • Loading branch information
daviscabral committed Aug 28, 2018
2 parents 2c1db74 + e68e664 commit c9d6a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/navigationStore.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Image, Animated, Easing } from 'react-native';
import { StatusBar, Image, Animated, Easing } from 'react-native';
import {
createBottomTabNavigator,
createMaterialTopTabNavigator,
Expand Down Expand Up @@ -326,7 +326,7 @@ function createNavigationOptions(params) {

if (navTransparent) {
res.headerTransparent = true;
res.headerStyle = {};
res.headerStyle = { marginTop: StatusBar.currentHeight };
}

if (backToInitial) {
Expand Down

0 comments on commit c9d6a1b

Please sign in to comment.