-
Notifications
You must be signed in to change notification settings - Fork 35
/
App.tsx
29 lines (26 loc) · 895 Bytes
/
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
import "intl";
import "intl/locale-data/jsonp/en";
import { KeyboardAvoidingView, Platform } from "react-native";
import HomeNavigation from "./components/HomeNavigation";
import { NavigationContainer } from "@react-navigation/native";
import { Provider } from "react-redux";
import React from "react";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { store } from "./app/store";
export default function App() {
return (
<Provider store={store}>
<NavigationContainer>
<SafeAreaProvider>
<KeyboardAvoidingView
behavior={Platform.OS === "ios" ? "padding" : "height"}
keyboardVerticalOffset={Platform.OS === "ios" ? -64 : 0}
style={{ flex: 1 }}
>
<HomeNavigation />
</KeyboardAvoidingView>
</SafeAreaProvider>
</NavigationContainer>
</Provider>
);
}