Skip to content

Commit 9c64b6e

Browse files
authored
Added maxFontSizeMultiplier prop to Action button (#114)
* Added maxFontSizeMultiplier prop to Action button * version bump
1 parent 19c647f commit 9c64b6e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

source/community/reactnative/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "adaptivecards-reactnative",
33
"description": "AdaptiveCards implementation in ReactNative",
4-
"version": "2.2.31",
4+
"version": "2.2.32",
55
"keywords": [
66
"adaptivecards",
77
"cards",

source/community/reactnative/src/components/actions/action-button.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ export class ActionButton extends React.Component {
226226
style={[styles.buttonIcon, this.styleConfig.actionIcon]}
227227
/>
228228
) : null}
229-
<Text numberOfLines={1} style={this.getButtonTitleStyles()}>
229+
<Text
230+
numberOfLines={1}
231+
maxFontSizeMultiplier={this.props.maxFontSizeMultiplier}
232+
style={this.getButtonTitleStyles()}>
230233
{this.title}
231234
</Text>
232235
</View>

0 commit comments

Comments
 (0)