Skip to content

Added testIDS prop which can be used to pass testID to individual segment buttons#894

Merged
Naturalclar merged 1 commit into
react-native-segmented-control:masterfrom
rvenky125:feat/testIDS_for_segments
Oct 23, 2024
Merged

Added testIDS prop which can be used to pass testID to individual segment buttons#894
Naturalclar merged 1 commit into
react-native-segmented-control:masterfrom
rvenky125:feat/testIDS_for_segments

Conversation

@rvenky125

Copy link
Copy Markdown
Contributor

Overview

Thanks for creating this owesome library. There is a small concern, even though it is very helpful. There is no feature for sending testIDs for individual segment buttons/components. I've done with the implementation of this feature for both Android and iOS and creating this PR. I hope this could get merged quickly, as we are in need of this change.

Test Plan

Send an array of identifiers into testIDS and check if they are reflecting or not.
ex:
<SegmentController
{...props}
testIDS={["option1", "option2", "option3"]}
/>

@rvenky125 rvenky125 force-pushed the feat/testIDS_for_segments branch from ee9d29f to 26952c6 Compare October 22, 2024 12:31

@Naturalclar Naturalclar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@Naturalclar

Copy link
Copy Markdown
Member

will fix the lint issue and publish today

@Naturalclar Naturalclar merged commit 26fc8e3 into react-native-segmented-control:master Oct 23, 2024
@rvenky125

Copy link
Copy Markdown
Contributor Author

Thanks for meging it

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