|
@@ -1,5 +1,6 @@
|
|
|
import * as React from 'react';
|
|
import * as React from 'react';
|
|
|
-import { StatusBar, Platform } from 'react-native';
|
|
|
|
|
|
|
+import { Platform } from 'react-native';
|
|
|
|
|
+import { StatusBar } from 'expo-status-bar';
|
|
|
import Constants from 'expo-constants';
|
|
import Constants from 'expo-constants';
|
|
|
import { Appbar, Menu } from 'react-native-paper';
|
|
import { Appbar, Menu } from 'react-native-paper';
|
|
|
import { useBoolean } from '@umijs/hooks';
|
|
import { useBoolean } from '@umijs/hooks';
|
|
@@ -20,11 +21,10 @@ export default function Header() {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- {Platform.OS !== 'ios' && <StatusBar backgroundColor="#fff" />}
|
|
|
|
|
|
|
+ <StatusBar backgroundColor="#fff" translucent={false} />
|
|
|
|
|
|
|
|
<Appbar.Header
|
|
<Appbar.Header
|
|
|
theme={{ colors: { primary: '#fff' } }}
|
|
theme={{ colors: { primary: '#fff' } }}
|
|
|
- statusBarHeight={Platform.OS === 'ios' ? Constants.statusBarHeight : 0}
|
|
|
|
|
style={{
|
|
style={{
|
|
|
elevation: 0,
|
|
elevation: 0,
|
|
|
shadowOffset: {
|
|
shadowOffset: {
|