Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,19 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
}

[super updateProps:props oldProps:oldProps];

#if !TARGET_OS_TV && !TARGET_OS_OSX
// super's updateProps sets self.accessibilityIdentifier from testID via the
// standard Fabric mechanism. However, setAccessibilityProps already forwards
// testID to _buttonView.accessibilityIdentifier (the actual button element).
// Having the identifier on both views causes testing frameworks (e.g. Detox)
// to report multiple matches for the same testID. Clear it from the wrapper so
// only _buttonView carries the identifier.
if (!newProps.testId.empty()) {
self.accessibilityIdentifier = nil;
}
Comment thread
m-bert marked this conversation as resolved.
#endif

if (shouldApplyStartAnimationState) {
[_buttonView applyStartAnimationState];
}
Expand Down
Loading