please ad active text style prop
hasan642 opened this issue · 1 comments
hasan642 commented
Is your feature request related to a problem? Please describe.
I need to change the font family of the active text segment, but I can't. bz fontWeight is not working with custom font family.
Describe the solution you'd like
just add a new prop "activeTextStyle" with TextStyle type
Additional context
like this:
<Text
numberOfLines={1}
style={[
styles.textStyles,
props?.textStyle,
isCurrentIndex
?[ {
color: getActiveSegmentedTextColor(
props?.theme,
props?.activeTextColor
),
fontWeight: props?.activeTextWeight,
},
props.activeTextStyle]
: {
color: getSegmentedTextColor(
props?.theme,
props?.textColor
),
},
]}
>
{tab}
</Text>
Karthik-B-06 commented
Sorry for the delay. An updated version with proper customization props will be available now.