react-native-activity-feed icon indicating copy to clipboard operation
react-native-activity-feed copied to clipboard

Adds textProps prop for additional customization in ReactionIcon

Open emibotti opened this issue 2 years ago • 1 comments

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).

This is the use case:

<ReactionIcon
    ...
    textProps={{
      maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER,
    }}
 />

with const MAX_FONT_SIZE_MULTIPLIER = 1.4:

emibotti avatar Jun 20 '22 18:06 emibotti

@vishalnarkhede Did you had a chance to check this?

emibotti avatar Oct 20 '22 14:10 emibotti