Skip to content

Commit bb377b7

Browse files
committed
fix(CopilotModal): Do status bar offset only on android
1 parent 80da430 commit bb377b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okgrow/react-native-copilot",
3-
"version": "2.2.3",
3+
"version": "2.2.4",
44
"description": "Make an interactive step by step tour guide for you react-native app",
55
"main": "src/index.js",
66
"private": false,

src/components/CopilotModal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22
import React, { Component } from 'react';
3-
import { Animated, Easing, View, Text, NativeModules, Modal, StatusBar } from 'react-native';
3+
import { Animated, Easing, View, Text, NativeModules, Modal, StatusBar, Platform } from 'react-native';
44

55
import Tooltip from './Tooltip';
66
import styles, { MARGIN, ARROW_SIZE, STEP_NUMBER_DIAMETER, STEP_NUMBER_RADIUS } from './style';
@@ -81,7 +81,7 @@ class CopilotModal extends Component<Props, State> {
8181

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

0 commit comments

Comments
 (0)