You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
731 B

2 years ago
import React from "react"
import { View, StyleSheet, StatusBar, Text, Dimensions } from "react-native"
import { colors, texts, credentials } from "./Variables"
import { BannerAd, BannerAdSize, TestIds } from 'react-native-google-mobile-ads'
const adUnitId = __DEV__ ? TestIds.INTERSTITIAL : 'ca-app-pub-4145771316565790~1876877627'
2 years ago
const screen = Dimensions.get("window")
const styles = StyleSheet.create({
container: {
//backgroundColor: colors.yellow,
2 years ago
flex: 1,
alignItems: "center",
justifyContent: "center",
2 years ago
marginVertical: 20
}
2 years ago
})
export const Banner = () => {
return (
<View style={styles.container}>
<BannerAd size={BannerAdSize.ADAPTIVE_BANNER} unitId={adUnitId} />
2 years ago
</View>
)
}