Skip to content

Commit

Permalink
[revert] remove Statusbar marginTop for navTransparent (#3493)
Browse files Browse the repository at this point in the history
* navigationStore : removed margin top when navTransparent

* added empty header Style

* fixing eslint
  • Loading branch information
bang9 authored and aksonov committed Sep 4, 2019
1 parent 2a9756e commit 3871a06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/navigationStore.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';
import {
StatusBar, Image, Animated, Easing,
} from 'react-native';
import { Image, Animated, Easing } from 'react-native';
import {
createAppContainer,
createBottomTabNavigator,
Expand Down Expand Up @@ -346,7 +344,7 @@ function createNavigationOptions(params) {

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

if (!legacy && backToInitial) {
Expand Down

0 comments on commit 3871a06

Please sign in to comment.