-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
42 lines (39 loc) · 1.19 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
import { Box, extendTheme, NativeBaseProvider } from "native-base";
import React from "react";
import { MainProvider } from "./contexts/MainContext";
import Navigator from "./navigators/Navigator";
import BookingSummary from "./views/BookingSummary";
import ChatAll from "./views/ChatAll";
import ChatSingle from "./views/ChatSingle";
import ConfirmBooking from "./views/ConfirmBooking";
import { MenuProvider } from "react-native-popup-menu";
import { colors } from "./utils/colors";
import { KeyboardAvoidingView } from "react-native";
const App = () => {
const theme = extendTheme({
components: {
Input: {
baseStyle: {
_focus: { borderColor: colors.green },
},
},
},
});
return (
<MenuProvider backHandler={true}>
<MainProvider>
<KeyboardAvoidingView
behavior={Platform.OS === "ios" ? "padding" : ""}
style={{ flex: 1, padding: 0 }}
>
<NativeBaseProvider theme={theme}>
<Box flex={1} safeArea bgColor={"white"}>
<Navigator />
</Box>
</NativeBaseProvider>
</KeyboardAvoidingView>
</MainProvider>
</MenuProvider>
);
};
export default App;