-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
45 lines (40 loc) · 1.38 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import React, { useEffect } from "react";
import { StatusBar } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import BotTabs from "./components/navigation/BotNav";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { LogBox } from "react-native";
// uncomment to below lines to make Stack navigation Functional
// import { createNativeStackNavigator } from "@react-navigation/native-stack";
// import HomeScreen from "./screens/HomeScreen";
// import AuctionScreen from "./screens/AuctionScreen";
// const Stack = createNativeStackNavigator();
const App = () => {
LogBox.ignoreLogs(["Sending..."]);
useEffect(() => {}, []);
return (
// Safe Area Provider which will be helpful to handle Top-Notch
<SafeAreaProvider>
<NavigationContainer>
{/* Stack view Implementation below */}
{/* <Stack.Navigator>
<Stack.Screen
name="Home"
options={{ title: "Home Screen" }}
component={HomeScreen}
/>
<Stack.Screen
name="AuctionScreen"
options={{ title: "Second Screen" }}
component={AuctionScreen}
/>
</Stack.Navigator> */}
{/* Bottom Tabs Navigation below */}
<BotTabs />
{/* Status Bar */}
<StatusBar />
</NavigationContainer>
</SafeAreaProvider>
);
};
export default App;