Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Conversation

rvenky125
Copy link
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
Copy link
Member

@Naturalclar Naturalclar left a comment

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
Member

will fix the lint issue and publish today

@Naturalclar Naturalclar merged commit 26fc8e3 into react-native-segmented-control:master Oct 23, 2024
1 of 5 checks passed
@rvenky125
Copy link
Contributor Author

Thanks for meging it

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants