Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initialise member variable in RCTWindowSafeAreaProxy startObservingSa…
…feArea to prevent potential race Summary: changelog: [internal] _currentSafeAreaInsets should be initialised as part of `startObservingSafeArea` to make sure it is set before accessed. Even though, right now _currentSafeAreaInsets is always set before it is read because notification RCTUserInterfaceStyleDidChangeNotification fires eagerly, it might change in the future and introduce a bug. Differential Revision: D69846681
- Loading branch information