Files
bestpc_mobile/App.tsx
2025-08-04 10:17:58 +07:00

23 lines
664 B
TypeScript

import React, { useEffect } from "react";
import { NavigationContainer } from "@react-navigation/native";
import { Platform } from "react-native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import AppNavigator from "./src/navigation/AppNavigator";
export default function App() {
useEffect(() => {
if (Platform.OS === "web") {
// Fix scroll bị chặn trên web
document.body.style.overflow = "auto";
document.documentElement.style.overflow = "auto";
}
}, []);
return (
<SafeAreaProvider>
<NavigationContainer>
<AppNavigator />
</NavigationContainer>
</SafeAreaProvider>
);
}