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/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
14 lines
303 B
JavaScript
14 lines
303 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
*/
|
|
|
|
import type {Platform} from './PlatformTypes';
|
|
|
|
declare export default Platform;
|