Removes a dangling global reference to the ScreenModule.
Changes
When the application reloads, nativeInstall is called, which overwrites the reference to globalThis without deleting it. This PR deletes the reference before creating a new one.
Test code and steps to reproduce
I've tested it in a new project created using expo (SDK 52) and with fabric turn on.
Description
Removes a dangling global reference to the
ScreenModule
.Changes
When the application reloads,
nativeInstall
is called, which overwrites the reference toglobalThis
without deleting it. This PR deletes the reference before creating a new one.Test code and steps to reproduce
I've tested it in a new project created using expo (SDK 52) and with fabric turn on.