-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
35 lines (29 loc) · 818 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
33
34
35
import * as React from 'react';
import { WebView } from 'react-native-webview';
import {
AdMobBanner,
AdMobInterstitial,
PublisherBanner,
AdMobRewarded,
setTestDeviceIDAsync,
} from 'expo-ads-admob';
export default class App extends React.Component {
adFunction = async () => {
// await AdMobInterstitial.setAdUnitID('ca-app-pub-3940256099942544/1033173712'); // Test ID, Replace with your-admob-unit-id
await AdMobInterstitial.setAdUnitID('ca-app-pub-6128669615016913/4284402393');
await AdMobInterstitial.requestAdAsync({ servePersonalizedAds: true });
await AdMobInterstitial.showAdAsync();
}
componentDidMount () {
this.adFunction();
}
render () {
return (
<WebView
source={{
uri: 'https://sub.thekpop.net/'
}}
/>
);
}
}