CallToActionView
Renders a CallToAction Button
import { CallToActionView } from "react-native-admob-native-ads";
<CallToActionView
style={{
height: 45,
paddingHorizontal: 12,
backgroundColor: "purple",
justifyContent: "center",
alignItems: "center",
borderRadius: 5,
elevation: 10,
}}
textStyle={{ color: "white", fontSize: 14 }}
/>;
props​
style:ViewStyle​
Style the outer View Component.
textStyle:TextStyle​
Style the inner Text Component
buttonAndroidStyle​
Style the button on android using this prop.
| Property | Type | Required | Platform |
|---|---|---|---|
| backgroundColor | 6 digit hex color string only | No | All |
| borderColor | 6 digit hex color string only | No | All |
| borderWidth | number | No | All |
| borderRadius | number | No | All |
allowFontScaling​
Allow font scaling on text
allCaps​
| Type | Required | Platform |
|---|---|---|
boolean | no | All |
Whether all text should be in capital letters