mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48871 # Changelog: [Internal] Forward-fixing D68380665. Requirements: - `setUpReactDevTools` should be called before `setUpErrorHandling` to avoid React DevTools mutating `console.error` call arguments. - `setUpReactDevTools` should be called after `setUpTimers`, because it is using `queueMicrotask`, see https://fb.workplace.com/groups/rn.panelapps/permalink/1120810879540337/. - `setUpTimers` should be called after `polyfillPromise`, because it uses on `global.Promise`. I went over bundles, which are not using `InitializeCore` and using either `setUpErrorHandling` or `setUpDeveloperTools` and updated their order of initialization accordingly. Reviewed By: javache Differential Revision: D68510100 fbshipit-source-id: 4331dcc7a7cb1dc438ca2ed5ccae49e736c41b2a