|
@@ -5,14 +5,13 @@ import '@/global.css';
|
|
|
import api from '@/utils/api';
|
|
import api from '@/utils/api';
|
|
|
import { AuthProvider } from '@/utils/auth';
|
|
import { AuthProvider } from '@/utils/auth';
|
|
|
import { getGlobalStorage } from '@/utils/storage';
|
|
import { getGlobalStorage } from '@/utils/storage';
|
|
|
-import { Icon, Modal, Provider, Toast } from '@ant-design/react-native';
|
|
|
|
|
|
|
+import { Modal, Provider, Toast } from '@ant-design/react-native';
|
|
|
import {
|
|
import {
|
|
|
DefaultTheme as ReactNavigationDefaultTheme,
|
|
DefaultTheme as ReactNavigationDefaultTheme,
|
|
|
Theme,
|
|
Theme,
|
|
|
ThemeProvider,
|
|
ThemeProvider,
|
|
|
} from '@react-navigation/native';
|
|
} from '@react-navigation/native';
|
|
|
import * as application from 'expo-application';
|
|
import * as application from 'expo-application';
|
|
|
-import { BlurView } from 'expo-blur';
|
|
|
|
|
import { useFonts } from 'expo-font';
|
|
import { useFonts } from 'expo-font';
|
|
|
import { Image } from 'expo-image';
|
|
import { Image } from 'expo-image';
|
|
|
import { Stack, useRouter } from 'expo-router';
|
|
import { Stack, useRouter } from 'expo-router';
|
|
@@ -182,8 +181,10 @@ export default function RootLayout() {
|
|
|
<Stack screenOptions={{
|
|
<Stack screenOptions={{
|
|
|
headerShown: true,
|
|
headerShown: true,
|
|
|
headerTransparent: true,
|
|
headerTransparent: true,
|
|
|
- headerBackground: ()=><BlurView style={{flex: 1}} />,
|
|
|
|
|
- headerLeft: ({ canGoBack }) => canGoBack && <Icon name="arrow-left" size={24} onPress={router.back} />,
|
|
|
|
|
|
|
+ headerBlurEffect: 'light',
|
|
|
|
|
+ headerBackButtonDisplayMode: 'minimal',
|
|
|
|
|
+ // headerBackground: ()=><BlurView tint='light' style={{ flex: 1}} />,
|
|
|
|
|
+ // headerLeft: ({ canGoBack }) => canGoBack && <Icon name="arrow-left" size={24} />,
|
|
|
animation: 'ios_from_right'
|
|
animation: 'ios_from_right'
|
|
|
}}>
|
|
}}>
|
|
|
<Stack.Screen name="(tabs)" options={{headerShown: false}} />
|
|
<Stack.Screen name="(tabs)" options={{headerShown: false}} />
|