Skip to content

Conversation

@Gustash
Copy link
Collaborator

@Gustash Gustash commented May 5, 2022

This PR is based on the conversation in Karthik-B-06#31.

Since no new PR was added, and that PR was not updated, this one finishes the implementation started in that PR.

Changes

  • Export SegmentedControlProps interface
  • Added Segment interface
  • Changed segments from an array of strings to a mixed array of strings and Segment objects
  • Transforming segments prop into an array of Segment objects and memoizing it. This keeps backwards compatibility by allowing a full array of strings to be passed
  • Setting default accessibility values in each segment Pressable
  • Overriding the default accessibility values by spreading the remaining Segment accessibility values for each segment, if defined

@Gustash Gustash merged commit 377df0e into main May 5, 2022
@Gustash Gustash deleted the feat/segment-accessibility branch May 5, 2022 10:49
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