Skip to content

Add ExtraWindowEventListener interface#55721

Open
zoontek wants to merge 1 commit intofacebook:mainfrom
zoontek:modal-system-bars-control
Open

Add ExtraWindowEventListener interface#55721
zoontek wants to merge 1 commit intofacebook:mainfrom
zoontek:modal-system-bars-control

Conversation

@zoontek
Copy link
Contributor

@zoontek zoontek commented Feb 24, 2026

Summary:

This PR introduces a ExtraWindowEventListener interface that allows native modules to be notified when new windows are created or destroyed (e.g. Modal dialogs).

Third-party libraries can implement it, or emit window events through ReactContext.onExtraWindowCreate / ReactContext.onExtraWindowDestroy.

This opens the door for libraries like expo-navigation-bar to build a proper NavigationBar module that stays in sync across all windows (including modals).

Related issue

Changelog:

[ANDROID] [ADDED] - Add ExtraWindowEventListener interface to allow native modules to react to window creation / destruction (e.g. Modal dialogs)

Test Plan

Follow #56059 test plan

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 24, 2026
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Feb 24, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 2, 2026

@alanleedev has imported this pull request. If you are a Meta employee, you can view this in D94871845.

@zoontek zoontek force-pushed the modal-system-bars-control branch 8 times, most recently from 9fdaf8d to 6620980 Compare March 9, 2026 18:29
@zoontek zoontek force-pushed the modal-system-bars-control branch from 268f25a to f832c91 Compare March 11, 2026 14:46
@zoontek zoontek changed the title Fix StatusBar not applying to Modal windows on Android Add ExtraWindowEventListener interface Mar 11, 2026
@zoontek zoontek force-pushed the modal-system-bars-control branch from f832c91 to 3791a05 Compare March 11, 2026 15:36
@zoontek zoontek force-pushed the modal-system-bars-control branch from 3791a05 to 935b7de Compare March 11, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants