From f760c11f65286e7c5406d3a855b4f0895caedc8c Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 24 Mar 2025 06:55:03 -0700 Subject: [PATCH] Doing a round of `yarn lint --fix` (#50036) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50036 This is my friday round of fixing some warnings in our codebase. Those are all minor bits that should be fixed. Changelog: [Internal] [Changed] - Reviewed By: huntie Differential Revision: D71209124 fbshipit-source-id: 40aa231e049025bbff9dff8a572784bb1a9f324b --- .../react-native/Libraries/Interaction/InteractionManager.js | 2 +- .../react-native/Libraries/LayoutAnimation/LayoutAnimation.js | 4 ++-- packages/rn-tester/js/RNTesterAppShared.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-native/Libraries/Interaction/InteractionManager.js b/packages/react-native/Libraries/Interaction/InteractionManager.js index bb130b946dd..d27f1ba4934 100644 --- a/packages/react-native/Libraries/Interaction/InteractionManager.js +++ b/packages/react-native/Libraries/Interaction/InteractionManager.js @@ -8,11 +8,11 @@ * @flow strict-local */ +import type {EventSubscription} from '../vendor/emitter/EventEmitter'; import type {Task} from './TaskQueue'; import * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags'; import EventEmitter from '../vendor/emitter/EventEmitter'; -import type {EventSubscription} from '../vendor/emitter/EventEmitter'; const BatchedBridge = require('../BatchedBridge/BatchedBridge').default; const infoLog = require('../Utilities/infoLog').default; diff --git a/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js b/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js index 1f1bf62174c..505a65b3de4 100644 --- a/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js +++ b/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js @@ -20,14 +20,14 @@ import * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNa import {getFabricUIManager} from '../ReactNative/FabricUIManager'; import Platform from '../Utilities/Platform'; +const UIManager = require('../ReactNative/UIManager').default; + export type { LayoutAnimationType, LayoutAnimationProperty, LayoutAnimationAnimationConfig as LayoutAnimationAnim, } from '../Renderer/shims/ReactNativeTypes'; -const UIManager = require('../ReactNative/UIManager').default; - // Reexport type export type LayoutAnimationConfig = LayoutAnimationConfig_; diff --git a/packages/rn-tester/js/RNTesterAppShared.js b/packages/rn-tester/js/RNTesterAppShared.js index ef69b0b2fc4..820f21d914e 100644 --- a/packages/rn-tester/js/RNTesterAppShared.js +++ b/packages/rn-tester/js/RNTesterAppShared.js @@ -10,6 +10,7 @@ import type {RNTesterModuleInfo, ScreenTypes} from './types/RNTesterTypes'; +import ReportFullyDrawnView from '../ReportFullyDrawnView/ReportFullyDrawnView'; import RNTesterModuleContainer from './components/RNTesterModuleContainer'; import RNTesterModuleList from './components/RNTesterModuleList'; import RNTesterNavBar, {navBarHeight} from './components/RNTesterNavbar'; @@ -26,7 +27,6 @@ import { getExamplesListWithRecentlyUsed, initialNavigationState, } from './utils/testerStateUtils'; -import ReportFullyDrawnView from '../ReportFullyDrawnView/ReportFullyDrawnView'; import * as React from 'react'; import { BackHandler,