-
Notifications
You must be signed in to change notification settings - Fork 5
/
App.js
23 lines (21 loc) · 817 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
import { GlobalContextProvider } from './context/context';
import React from 'react'
import useNotifications from './Notifications/useNotifications';
import { Snackbar } from '@ouroboros/react-native-snackbar';
import AppNavigator from './AppNavigator';
import { View } from 'react-native';
import { StatusBar } from 'expo-status-bar';
export default function App() {
const navRef = useNotifications();
return (
<GlobalContextProvider>
<View style={{ flex: 1 }}>
<StatusBar style='dark' />
<AppNavigator navRef={navRef} />
<Snackbar actionStyle={{ color: "lightgreen" }} textStyle={{ color: "#bbb" }}
messageStyle={{ paddingVertical: 15, paddingHorizontal: 10, borderRadius: 3, backgroundColor: "black" }}
/>
</View>
</GlobalContextProvider >
);
}