-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathApp.tsx
55 lines (51 loc) · 1.3 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
54
55
import React from "react";
import { StyleSheet } from "react-native";
import {
DefaultTheme,
NavigationContainer,
Theme,
} from "@react-navigation/native";
import { enableScreens } from "react-native-screens";
import AuthNavigator from "./src/navigation/AuthNavigator";
import { Provider } from "react-redux";
import { persistor, store } from "./src/store";
import "react-native-gesture-handler";
import { PersistGate } from "redux-persist/integration/react";
import {
useFonts,
Raleway_900Black,
Raleway_600SemiBold,
Raleway_800ExtraBold,
Raleway_400Regular,
Raleway_100Thin,
} from "@expo-google-fonts/raleway";
const MyTheme: Theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: "rgba(89, 86, 233, 1)",
text: "#868686",
background: "#F2F2F2",
},
};
enableScreens();
const App = () => {
const [fontsLoaded] = useFonts({
Raleway_900Black,
Raleway_600SemiBold,
Raleway_800ExtraBold,
Raleway_400Regular,
Raleway_100Thin,
});
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<NavigationContainer theme={MyTheme}>
{fontsLoaded && <AuthNavigator />}
</NavigationContainer>
</PersistGate>
</Provider>
);
};
export default App;
const styles = StyleSheet.create({});