Skip to content

Commit

Permalink
Merge pull request #43 from Arwantys/master
Browse files Browse the repository at this point in the history
Support allowFontScaling in CallToActionView
  • Loading branch information
ammarahm-ed authored Jul 6, 2020
2 parents 7a0a37b + 33060bb commit ecf2402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ type NestedTextProps = {
style?: ViewStyle;
textStyle?: TextStyle;
allCaps?: boolean;
allowFontScaling?: boolean;
};

declare module "react-native-admob-native-ads" {
Expand Down
2 changes: 1 addition & 1 deletion src/CallToActionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const CallToActionView = (props) => {
props.style,
]}
>
<Text style={[props.textStyle]}>
<Text allowFontScaling={props.allowFontScaling} style={[props.textStyle]}>
{nativeAd
? props.allCaps
? nativeAd.callToAction?.toUpperCase()
Expand Down

0 comments on commit ecf2402

Please sign in to comment.