-
Notifications
You must be signed in to change notification settings - Fork 734
new segemntTypography prop #2929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/** | ||
* Segment typography | ||
*/ | ||
segmentTypography?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider changing to a more general prop
We can have segmentStyle or actually segmentLabelStyle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add an example for this feature in the example screen as the UX suggested
<Reanimated.Text | ||
fsTagName={'unmasked'} | ||
numberOfLines={1} | ||
style={[animatedTextStyle, Typography.text90, segmentLabelStyle]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to set the animatedTextStyle at the end so it won't get overridden by the user's style..
The screen is ready with example |
Description
SegmentControl support in custom typography, new `segmentTypography" prop
Changelog
SegmentControl support in custom typography
Additional info