This is a reproducer repo for what I believe is a bridge invalidation bug in react native 0.73 when using brownfield apps.
When an app invalidates a bridge, create a new one, and manually post a RCTUserInterfaceStyleDidChangeNotification
notification, the app crashes with an error stating that `"AccessibilityManager is nil"`` due to the module registry being nil inside RCTDeviceInfo.
Seems that this commit eb3d5a4b838ca7f632f02022e9be48402ca9d71f tried adding additional logging inside RCTDeviceInfo but that does not fix the issue.
- Clone this repo
- Install the app with new arch enabled
- Run the app and select "Send UserInterfaceStyle event after invalidating"
- Press the "Invalidate and create new instance" button