2025-08-04 10:17:58 +07:00
|
|
|
import React, { useEffect } from "react";
|
2025-06-05 10:09:29 +07:00
|
|
|
import { NavigationContainer } from "@react-navigation/native";
|
2025-08-04 10:17:58 +07:00
|
|
|
import { Platform } from "react-native";
|
2025-07-18 16:04:59 +07:00
|
|
|
import { SafeAreaProvider } from "react-native-safe-area-context";
|
|
|
|
|
import AppNavigator from "./src/navigation/AppNavigator";
|
2025-05-19 12:00:33 +07:00
|
|
|
|
|
|
|
|
export default function App() {
|
2025-08-04 10:17:58 +07:00
|
|
|
useEffect(() => {
|
|
|
|
|
if (Platform.OS === "web") {
|
|
|
|
|
// Fix scroll bị chặn trên web
|
|
|
|
|
document.body.style.overflow = "auto";
|
|
|
|
|
document.documentElement.style.overflow = "auto";
|
|
|
|
|
}
|
|
|
|
|
}, []);
|
2025-05-19 12:00:33 +07:00
|
|
|
return (
|
2025-06-05 10:09:29 +07:00
|
|
|
<SafeAreaProvider>
|
|
|
|
|
<NavigationContainer>
|
2025-07-18 16:04:59 +07:00
|
|
|
<AppNavigator />
|
2025-06-05 10:09:29 +07:00
|
|
|
</NavigationContainer>
|
|
|
|
|
</SafeAreaProvider>
|
2025-05-19 12:00:33 +07:00
|
|
|
);
|
|
|
|
|
}
|