mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d98116aa44
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49306 ## Motivation Modernising the RN codebase to allow for modern Flow tooling to process it. ## This diff - Migrates `Libraries/Utilities/Platform.*.js` to use the export syntax. - Updates deep-imports of these files to use `.default` - Updates jest mocks - Updates the current iteration of API snapshots (intended). Changelog: [General][Breaking] - Deep imports to `Libraries/Utilities/Platform` with `require` syntax needs to be appended with '.default'. Reviewed By: huntie Differential Revision: D69404025 fbshipit-source-id: f21501ca5b7e8e6a9e3e501781ed36e7d2bfd4a4