-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
29 lines (26 loc) · 811 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
import React, { useEffect } from 'react';
import Providers from './src/navigation';
import SplashScreen from "react-native-splash-screen";
const createChannel = () => {
PushNotification.createChannel(
{
channelId: 'channel-id',
channelName: 'My channel',
channelDescription: 'A channel to categorise your notifications',
playSound: true,
soundName: 'default',
importance: Importance.HIGH,
vibrate: true,
},
(created) => console.log(`createChannel returned '${created}'`), // (optional) callback returns whether the channel was created, false means it already existed.
);
};
const App = () => {
useEffect(() => {
SplashScreen.hide(); //hides the splash screen on app load.
}, []);
return (
<Providers />
);
};
export default App;