-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
45 lines (40 loc) · 1.17 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
/**
* React-Native-Template-Nativego template
* https://github.com/damithg-dev/react-native-template-nativego
*
* @format
* @flow strict-local
*/
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
import { navigationRef, isReadyRef } from "./src/navigation/helper";
import { enableScreens } from "react-native-screens";
import { ThemeProvider } from "./src/utilities/context/theme";
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet';
enableScreens();
import todo from "./src/screens/todo";
const Stack = createStackNavigator();
const App = ({ Navigation }) => {
return (
<BottomSheetModalProvider>
<ThemeProvider>
<NavigationContainer
ref={navigationRef}
onReady={() => {
isReadyRef.current = true;
}}
>
<Stack.Navigator
screenOptions = {{
headerShown : false,
}}
>
<Stack.Screen name="todo" component={todo} />
</Stack.Navigator>
</NavigationContainer>
</ThemeProvider>
</BottomSheetModalProvider>
);
};
export default App;