Migrate Utilities/infoLog, Utilities/logError, Utilities/mapWithSeparator & Utilities/warnOnce to use export syntax (#49406)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49406

## Motivation
Modernising the RN codebase to allow for modern Flow tooling to process it.

## This diff
- Migrates Utilities/infoLog, Utilities/logError, Utilities/mapWithSeparator & Utilities/warnOnce to use the export syntax.
- Updates deep-imports of these files to use `.default`
- Updates the current iteration of API snapshots (intended).

Changelog:
[General][Breaking] - Deep imports to `Utilities/infoLog`, `Utilities/logError`, `Utilities/mapWithSeparator` or `Utilities/warnOnce` with `require` syntax need to be appended with '.default'.

Reviewed By: huntie

Differential Revision: D69601174

fbshipit-source-id: 821f9ae59d4f898c95631eb7a9aeed138ace3567
This commit is contained in:
Iwo Plaza
2025-02-13 11:16:27 -08:00
committed by Facebook GitHub Bot
parent 152587cda0
commit 7aef81b984
16 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ import typeof useWindowDimensions from './Libraries/Utilities/useWindowDimension
import typeof Vibration from './Libraries/Vibration/Vibration';
import typeof DevMenu from './src/private/devmenu/DevMenu';
const warnOnce = require('./Libraries/Utilities/warnOnce');
const warnOnce = require('./Libraries/Utilities/warnOnce').default;
const invariant = require('invariant');
export type {HostComponent, HostInstance};