react-native-admob-native-ads-mrousavy
Version:
A simple and robust library for creating & displaying Admob Native Ads in your React Native App using Native Views forked and modified by mrousavy
39 lines (35 loc) • 669 B
JavaScript
import React from "react";
import { View, Text } from "react-native";
const AdBadge = (props) => {
return (
<View
style={[
{
width: "100%",
height: 15,
width:15,
borderWidth: 1,
borderRadius: 2.5,
borderColor: "green",
position:'absolute',
left:0,
top:0
},
props.style,
]}
>
<Text
style={[
{
color: "green",
fontSize:8
},
props.textStyle,
]}
>
{props.allCaps ? 'AD' : 'Ad'}
</Text>
</View>
);
};
export default AdBadge;