/
App.tsx
32 lines (27 loc) · 891 Bytes
/
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
import React, {useEffect} from 'react';
import {View} from 'react-native';
import {Provider} from 'react-redux';
import mobileAds, {MaxAdContentRating} from 'react-native-google-mobile-ads';
import StackedNavigation from './src/Navigation/stackedNavigation';
import InfoModal from './src/Components/InfoModal';
import store from './src/Redux/store';
import AppColor from './src/Theme/colors';
export default function App() {
useEffect(() => {
mobileAds()
.setRequestConfiguration({
maxAdContentRating: MaxAdContentRating.PG,
tagForChildDirectedTreatment: true,
tagForUnderAgeOfConsent: true,
})
.then(() => mobileAds().initialize());
}, []);
return (
<Provider store={store}>
<View style={{flex: 1, backgroundColor: AppColor.accent}}>
<StackedNavigation />
<InfoModal />
</View>
</Provider>
);
}