-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
38 lines (35 loc) · 1.04 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
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import MyDrawer from './src/components/Drawer';
import {View} from 'react-native';
import mobileAds from 'react-native-google-mobile-ads';
import {BannerAd} from 'react-native-google-mobile-ads';
import {PermissionsAndroid} from 'react-native';
export default function App() {
PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS);
mobileAds().initialize();
const DefaultTheme = {
dark: true,
colors: {
primary: '#3960CF',
text: '#ffffff',
background: '#121212',
},
};
return (
<NavigationContainer theme={DefaultTheme}>
<MyDrawer />
<View
style={{
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#121212',
}}>
<BannerAd
unitId="ca-app-pub-8487255892576881/1387808600"
size="ANCHORED_ADAPTIVE_BANNER"
/>
</View>
</NavigationContainer>
);
}