We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 951b198 commit d4dbbeaCopy full SHA for d4dbbea
1 file changed
ActionButtonItem.js
@@ -167,6 +167,19 @@ export default class ActionButtonItem extends Component {
167
textContainerStyle
168
];
169
170
+ const title = (
171
+ React.isValidElement(this.props.title) ?
172
+ this.props.title
173
+ : (
174
+ <Text
175
+ allowFontScaling={false}
176
+ style={[styles.text, this.props.textStyle]}
177
+ >
178
+ {this.props.title}
179
+ </Text>
180
+ )
181
182
+
183
return (
184
<TextTouchable
185
background={touchableBackground(
@@ -177,12 +190,7 @@ export default class ActionButtonItem extends Component {
190
onPress={this.props.onPress}
191
>
192
<View style={textStyles}>
- <Text
- allowFontScaling={false}
- style={[styles.text, this.props.textStyle]}
- >
- {this.props.title}
- </Text>
193
+ {title}
186
194
</View>
187
195
</TextTouchable>
188
196
);
0 commit comments