Skip to content

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

Merged
merged 6 commits into from
Feb 18, 2024
Merged

Conversation

adids1221
Copy link
Contributor

Description

SegmentControl support in custom typography, new `segmentTypography" prop

Changelog

SegmentControl support in custom typography

Additional info

@adids1221 adids1221 added this to the Quality milestone Jan 31, 2024
@adids1221 adids1221 requested a review from ethanshar January 31, 2024 10:16
/**
* Segment typography
*/
segmentTypography?: string;
Copy link
Collaborator

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

@adids1221 adids1221 requested a review from ethanshar January 31, 2024 12:28
Copy link
Collaborator

@ethanshar ethanshar left a 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]}
Copy link
Collaborator

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

@adids1221 adids1221 requested a review from ethanshar February 5, 2024 15:20
@adids1221
Copy link
Contributor Author

adids1221 commented Feb 6, 2024

Let's add an example for this feature in the example screen as the UX suggested

The screen is ready with example

@ethanshar ethanshar merged commit 4024d1b into master Feb 18, 2024
@ethanshar ethanshar deleted the feat/segmentControl_custom_typography branch February 18, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants