Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[screen-orientation] Change var type to non-weak to fix orientation l…
…isteners. (#28677) # Why #26813 # How After some debugging I found that `traitCollectionDidChange` in `ScreenOrientationRegistry` was receiving a `nil` argument due to this weak ref. Not sure why this is related to light/dark mode but it did fix the issue I was able to reliably reproduce. I think we actually want this to be a non-weak ref and for the shared controller to hold a reference to a current trait collection. # Test Plan Tested in simulator on Expo Go. # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). --------- Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
- Loading branch information