diff --git a/packages/dev-middleware/src/inspector-proxy/Device.js b/packages/dev-middleware/src/inspector-proxy/Device.js index fae783cb416357..65eb0ff53bc1bb 100644 --- a/packages/dev-middleware/src/inspector-proxy/Device.js +++ b/packages/dev-middleware/src/inspector-proxy/Device.js @@ -9,6 +9,7 @@ * @oncall react_native */ +import type {EventReporter} from '../types/EventReporter'; import type { DebuggerRequest, ErrorResponse, @@ -22,10 +23,9 @@ import type { import DeviceEventReporter from './DeviceEventReporter'; import * as fs from 'fs'; -import * as path from 'path'; import fetch from 'node-fetch'; +import * as path from 'path'; import WS from 'ws'; -import type {EventReporter} from '../types/EventReporter'; const debug = require('debug')('Metro:InspectorProxy'); diff --git a/packages/react-native/Libraries/Animated/animations/Animation.js b/packages/react-native/Libraries/Animated/animations/Animation.js index 635055ce402d76..c93dc21f58b7b0 100644 --- a/packages/react-native/Libraries/Animated/animations/Animation.js +++ b/packages/react-native/Libraries/Animated/animations/Animation.js @@ -14,11 +14,8 @@ import type {PlatformConfig} from '../AnimatedPlatformConfig'; import type AnimatedNode from '../nodes/AnimatedNode'; import type AnimatedValue from '../nodes/AnimatedValue'; -import Platform from '../../Utilities/Platform'; import NativeAnimatedHelper from '../NativeAnimatedHelper'; -import AnimatedColor from '../nodes/AnimatedColor'; import AnimatedProps from '../nodes/AnimatedProps'; -import AnimatedValueXY from '../nodes/AnimatedValueXY'; export type EndResult = {finished: boolean, value?: number, ...}; export type EndCallback = (result: EndResult) => void; diff --git a/packages/react-native/Libraries/DOM/OldStyleCollections/DOMRectList.js.flow b/packages/react-native/Libraries/DOM/OldStyleCollections/DOMRectList.js.flow index cb2cc2620ae515..8edfd68e96888f 100644 --- a/packages/react-native/Libraries/DOM/OldStyleCollections/DOMRectList.js.flow +++ b/packages/react-native/Libraries/DOM/OldStyleCollections/DOMRectList.js.flow @@ -8,8 +8,8 @@ * @flow strict */ -import type {ArrayLike} from './ArrayLikeUtils'; import type DOMRectReadOnly from '../Geometry/DOMRectReadOnly'; +import type {ArrayLike} from './ArrayLikeUtils'; declare export default class DOMRectList implements Iterable, ArrayLike diff --git a/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js b/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js index 6283e673c64846..ec01853e8a2354 100644 --- a/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js +++ b/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js @@ -10,7 +10,6 @@ 'use strict'; -import type {Spec as FabricUIManagerSpec} from '../ReactNative/FabricUIManager'; import type { LayoutAnimationConfig as LayoutAnimationConfig_, LayoutAnimationProperty, diff --git a/packages/rn-tester/js/examples/SectionList/SectionList-scrollable.js b/packages/rn-tester/js/examples/SectionList/SectionList-scrollable.js index dc3a0c738bf48a..1e721bd8f71b30 100644 --- a/packages/rn-tester/js/examples/SectionList/SectionList-scrollable.js +++ b/packages/rn-tester/js/examples/SectionList/SectionList-scrollable.js @@ -156,6 +156,16 @@ const onScrollToIndexFailed = (info: { */ }; +// $FlowFixMe[missing-local-annot] +const ItemSeparatorComponent = info => ( + +); + +// $FlowFixMe[missing-local-annot] +const SectionSeparatorComponent = info => ( + +); + export function SectionList_scrollable(Props: { ... }): React.Element { @@ -280,14 +290,8 @@ export function SectionList_scrollable(Props: { ref={ref} ListHeaderComponent={HeaderComponent} ListFooterComponent={FooterComponent} - // $FlowFixMe[missing-local-annot] - SectionSeparatorComponent={info => ( - - )} - // $FlowFixMe[missing-local-annot] - ItemSeparatorComponent={info => ( - - )} + SectionSeparatorComponent={SectionSeparatorComponent} + ItemSeparatorComponent={ItemSeparatorComponent} accessibilityRole="list" debug={debug} inverted={inverted} diff --git a/packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js b/packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js index da496b20598021..ae7c7254b1242b 100644 --- a/packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js +++ b/packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js @@ -323,7 +323,7 @@ const styles = StyleSheet.create({ }, }); -const examples: Array = [ +const textInputExamples: Array = [ ...TextInputSharedExamples, { title: 'Live Re-Write (ひ -> 日)', @@ -944,5 +944,5 @@ module.exports = ({ documentationURL: 'https://reactnative.dev/docs/textinput', category: 'Basic', description: 'Single and multi-line text inputs.', - examples, + examples: textInputExamples, }: RNTesterModule); diff --git a/scripts/test-e2e-local.js b/scripts/test-e2e-local.js index 353490696d47cf..a8938751a402f9 100644 --- a/scripts/test-e2e-local.js +++ b/scripts/test-e2e-local.js @@ -16,18 +16,17 @@ * and to make it more accessible for other devs to play around with. */ -const {exec, pushd, popd, pwd, cd, sed} = require('shelljs'); -const updateTemplatePackage = require('./update-template-package'); -const yargs = require('yargs'); -const path = require('path'); - const { checkPackagerRunning, - maybeLaunchAndroidEmulator, launchPackagerInSeparateWindow, - setupCircleCIArtifacts, + maybeLaunchAndroidEmulator, prepareArtifacts, + setupCircleCIArtifacts, } = require('./testing-utils'); +const updateTemplatePackage = require('./update-template-package'); +const path = require('path'); +const {cd, exec, popd, pushd, pwd, sed} = require('shelljs'); +const yargs = require('yargs'); const argv = yargs .option('t', {