Open emibotti opened 2 years ago
While adding the capability of restricting and allowing enlarging the font size in our app, we found out that the ReactionIcon component didn't have the option to receive props for its child Text (in our case allowFontSize or maxFontSizeMultiplier).
ReactionIcon
Text
allowFontSize
maxFontSizeMultiplier
This is the use case:
<ReactionIcon ... textProps={{ maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER, }} />
with const MAX_FONT_SIZE_MULTIPLIER = 1.4:
const MAX_FONT_SIZE_MULTIPLIER = 1.4
@vishalnarkhede Did you had a chance to check this?
While adding the capability of restricting and allowing enlarging the font size in our app, we found out that the
ReactionIcon
component didn't have the option to receive props for its childText
(in our caseallowFontSize
ormaxFontSizeMultiplier
).This is the use case:
with
const MAX_FONT_SIZE_MULTIPLIER = 1.4
: