-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
53 lines (49 loc) · 1.87 KB
/
App.tsx
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
46
47
48
49
50
51
52
53
// import "react-native-reanimated"
import { AppRegistry } from "react-native"
import { NavigationContainer } from "@react-navigation/native"
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"
import { createNativeStackNavigator } from "@react-navigation/native-stack"
import { RootStackParamList } from "./src/types/common"
import { HomeScreen, SettingsScreen } from "src/screens"
import { HeaderTitle } from "src/components/common"
import { Provider as JotaiProvider } from "jotai"
import { Provider as PaperProvider } from "react-native-paper"
import Login from "src/screens/Login"
import BottomTabNavigator from "src/navigation/BottomTabNavigator"
const Stack = createNativeStackNavigator<RootStackParamList>()
const Tab = createBottomTabNavigator()
export default function App() {
return (
<NavigationContainer>
<JotaiProvider>
<PaperProvider>
<Stack.Navigator initialRouteName="Login"
screenOptions={{
headerShown: false,
}} >
{/* <Stack.Screen
name="Home"
component={HomeScreen}
options={{
headerTitle: (props) => <HeaderTitle {...props} />,
headerTitleAlign: "center",
}}
/>
<Stack.Screen
name="Settings"
component={SettingsScreen}
options={{
headerTitle: (props) => <HeaderTitle {...props} />,
headerTitleAlign: "center",
animation: "slide_from_right",
}}
/> */}
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="BottomTabNavigator" component={BottomTabNavigator}/>
</Stack.Navigator>
</PaperProvider>
</JotaiProvider>
</NavigationContainer>
)
}
AppRegistry.registerComponent("ExpoStarter", () => App)