mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
26 lines
687 B
TypeScript
26 lines
687 B
TypeScript
import { Stack } from 'expo-router';
|
|
import { StatusBar } from 'expo-status-bar';
|
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
import { View } from 'react-native';
|
|
import { useEffect } from 'react';
|
|
import { useAuthStore } from '../store/authStore';
|
|
import { MiniPlayer } from '../components/MiniPlayer';
|
|
|
|
export default function RootLayout() {
|
|
const restore = useAuthStore(s => s.restore);
|
|
|
|
useEffect(() => {
|
|
restore();
|
|
}, []);
|
|
|
|
return (
|
|
<SafeAreaProvider>
|
|
<StatusBar style="dark" />
|
|
<View style={{ flex: 1 }}>
|
|
<Stack screenOptions={{ headerShown: false }} />
|
|
<MiniPlayer />
|
|
</View>
|
|
</SafeAreaProvider>
|
|
);
|
|
}
|