upload 04/08
This commit is contained in:
10
App.tsx
10
App.tsx
@@ -1,9 +1,17 @@
|
||||
import React from "react";
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user