Skip to content

Commit 12a6bb6

Browse files
committed
fix: route screenPopped event to correct handler in ComponentEventsObserver
registerScreenPoppedListener was wired to notifyPreviewCompleted instead of notifyScreenPopped, causing screenPopped events to be dispatched as previewCompleted. This prevented component listeners with a screenPopped handler from receiving the event (e.g. after iOS swipe-back gesture). Made-with: Cursor
1 parent e1ca88b commit 12a6bb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/events/ComponentEventsObserver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class ComponentEventsObserver {
5858
this.notifySearchBarCancelPressed
5959
);
6060
this.nativeEventsReceiver.registerPreviewCompletedListener(this.notifyPreviewCompleted);
61-
this.nativeEventsReceiver.registerScreenPoppedListener(this.notifyPreviewCompleted);
61+
this.nativeEventsReceiver.registerScreenPoppedListener(this.notifyScreenPopped);
6262
}
6363

6464
public bindComponent(

0 commit comments

Comments
 (0)