Skip to content

Commit

Permalink
Merge pull request #60 from okgrow/fix/toggle-android-statusbar-visib…
Browse files Browse the repository at this point in the history
…le-flag

fix: Toggled the functionality of the androidStatusBarVisible flag
  • Loading branch information
mohebifar committed Aug 10, 2018
2 parents 68f64a0 + 1104e8f commit 2c3e2c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/CopilotModal.js
Expand Up @@ -46,7 +46,7 @@ class CopilotModal extends Component<Props, State> {
overlay: typeof NativeModules.RNSVGSvgViewManager !== 'undefined' ? 'svg' : 'view',
// If animated was not specified, rely on the default overlay type
animated: typeof NativeModules.RNSVGSvgViewManager !== 'undefined',
androidStatusBarVisible: true,
androidStatusBarVisible: false,
};

state = {
Expand Down Expand Up @@ -97,7 +97,7 @@ class CopilotModal extends Component<Props, State> {

async _animateMove(obj = {}): void {
const layout = await this.measure();
if (this.props.androidStatusBarVisible && Platform.OS === 'android') {
if (!this.props.androidStatusBarVisible && Platform.OS === 'android') {
obj.top -= StatusBar.currentHeight; // eslint-disable-line no-param-reassign
}

Expand Down

0 comments on commit 2c3e2c0

Please sign in to comment.