Skip to content

Commit 2c3e2c0

Browse files
authored
Merge pull request #60 from okgrow/fix/toggle-android-statusbar-visible-flag
fix: Toggled the functionality of the androidStatusBarVisible flag
2 parents 68f64a0 + 1104e8f commit 2c3e2c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/CopilotModal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CopilotModal extends Component<Props, State> {
4646
overlay: typeof NativeModules.RNSVGSvgViewManager !== 'undefined' ? 'svg' : 'view',
4747
// If animated was not specified, rely on the default overlay type
4848
animated: typeof NativeModules.RNSVGSvgViewManager !== 'undefined',
49-
androidStatusBarVisible: true,
49+
androidStatusBarVisible: false,
5050
};
5151

5252
state = {
@@ -97,7 +97,7 @@ class CopilotModal extends Component<Props, State> {
9797

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

0 commit comments

Comments
 (0)