-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
42 lines (38 loc) · 1.01 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 { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import { Provider } from "react-redux";
import { store } from "./src/redux/store/store";
import MainScreenNav from "./src/screens/MainScreenNav";
import i18n from "i18n-js";
import R from "./src/res/R";
import * as Localization from "expo-localization";
import { ThemeProvider } from "react-native-elements";
i18n.translations = {
en: R.strings["en-US"],
pt: R.strings["pt-br"],
};
i18n.locale = Localization.locale;
i18n.fallbacks = true;
i18n.defaultLocale = "en";
export default function App() {
return (
<ThemeProvider theme={R.palette.base}>
<Provider store={store}>
<View style={styles.root}>
<MainScreenNav />
</View>
</Provider>
</ThemeProvider>
);
}
const styles = StyleSheet.create({
root: {
width: "100%",
height: "100%",
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});