Skip to main content

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.

PropertyTypeRequiredPlatform
backgroundColor6 digit hex color string onlyNoAll
borderColor6 digit hex color string onlyNoAll
borderWidthnumberNoAll
borderRadiusnumberNoAll

allowFontScaling​

Allow font scaling on text

allCaps​

TypeRequiredPlatform
booleannoAll

Whether all text should be in capital letters