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 @@ -613,8 +613,14 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
// This is necessary because RCTViewComponentView's hitTest might handle pointerEvents
// from ViewProps and prevent touches from reaching _buttonView (which is the contentView).
// Since _buttonView has its own pointerEvents handling, we always forward to it.
// Keep the visibility checks RCTViewComponentView applies, so a hidden or
// (nearly) transparent button is skipped like any other RN view.
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
if (!self.userInteractionEnabled || self.hidden || self.alpha < 0.01) {
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Comment thread
m-bert marked this conversation as resolved.
return nil;
}

if (![self pointInside:point withEvent:event]) {
return nil;
}
Expand Down
Loading