-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
32 lines (28 loc) · 924 Bytes
/
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
import React from "react";
import { Platform, StatusBar } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import FlashMessage from "react-native-flash-message";
import { COLORS } from "./src/themes/colors";
import StatusBarC from "./src/components/commonComponents/StatusBarC";
import DrawerStack from "./src/navigators/DrawerStack";
import { Provider } from "react-redux";
import { store } from "./store";
export default function App() {
return (
<Provider store={store}>
{Platform.OS == "ios" ? (
<StatusBarC backgroundColor={COLORS.primary} barStyle="light-content" />
) : (
<StatusBar
hidden={false}
backgroundColor={COLORS.primary}
translucent={false}
/>
)}
<NavigationContainer>
<DrawerStack />
</NavigationContainer>
<FlashMessage position="top" />
</Provider>
);
}