UNPKG

react-native-admob-native-ads

Version:

A simple and robust library for creating & displaying Admob Native Ads in your React Native App using Native Views

43 lines (38 loc) 666 B
import React from "react"; import { View, Text, StyleSheet } from "react-native"; const AdBadge = ({allCaps,textStyle,style}) => { return ( <View style={[ styles.container, style, ]} > <Text style={[ styles.text, textStyle, ]} > {allCaps ? 'AD' : 'Ad'} </Text> </View> ); }; export default AdBadge; const styles = StyleSheet.create({ container: { height: 15, width: 15, borderWidth: 1, borderRadius: 2.5, borderColor: "green", position: 'absolute', left: 0, top: 0 }, text: { color: "green", fontSize: 8 } })