From 93377ff5089d981e56094329b6f6893b3124be12 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Tue, 2 Feb 2021 11:03:28 -0800 Subject: [PATCH] Remove "use strict" directive from ES Modules Summary: ES Modules implicitly enable strict mode. Adding the "use strict" directive is, therefore, not required. This diff removes all "use strict" directives from ES modules. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D26172715 fbshipit-source-id: 57957bcbb672c4c3e62b1db633cf425c1c9d6430 --- IntegrationTests/AccessibilityManagerTest.js | 2 -- IntegrationTests/ReactContentSizeUpdateTest.js | 2 -- IntegrationTests/SizeFlexibilityUpdateTest.js | 2 -- Libraries/ActionSheetIOS/ActionSheetIOS.js | 2 -- Libraries/ActionSheetIOS/NativeActionSheetManager.js | 2 -- Libraries/Alert/Alert.js | 2 -- Libraries/Alert/NativeAlertManager.js | 2 -- Libraries/Alert/RCTAlertManager.android.js | 2 -- Libraries/Alert/RCTAlertManager.ios.js | 2 -- Libraries/Animated/Animated.js | 2 -- Libraries/Animated/NativeAnimatedHelper.js | 2 -- Libraries/Animated/NativeAnimatedModule.js | 2 -- Libraries/Animated/NativeAnimatedTurboModule.js | 2 -- Libraries/Animated/__tests__/Animated-test.js | 2 -- Libraries/Animated/__tests__/AnimatedNative-test.js | 2 -- Libraries/Animated/components/AnimatedFlatList.js | 2 -- Libraries/Animated/components/AnimatedImage.js | 2 -- Libraries/Animated/components/AnimatedScrollView.js | 2 -- Libraries/Animated/components/AnimatedSectionList.js | 2 -- Libraries/Animated/components/AnimatedText.js | 2 -- Libraries/Animated/components/AnimatedView.js | 2 -- Libraries/AppState/AppState.js | 2 -- Libraries/AppState/NativeAppState.js | 2 -- Libraries/Blob/BlobManager.js | 2 -- Libraries/Blob/FileReader.js | 2 -- Libraries/Blob/NativeBlobModule.js | 2 -- Libraries/Blob/NativeFileReaderModule.js | 2 -- Libraries/Blob/URL.js | 2 -- Libraries/BugReporting/BugReporting.js | 2 -- .../AccessibilityInfo/AccessibilityInfo.android.js | 2 -- .../Components/AccessibilityInfo/AccessibilityInfo.ios.js | 2 -- .../AccessibilityInfo/NativeAccessibilityInfo.js | 2 -- .../AccessibilityInfo/NativeAccessibilityManager.js | 2 -- .../legacySendAccessibilityEvent.android.js | 2 -- .../AccessibilityInfo/legacySendAccessibilityEvent.ios.js | 2 -- .../ActivityIndicatorViewNativeComponent.js | 2 -- Libraries/Components/Clipboard/Clipboard.js | 2 -- Libraries/Components/Clipboard/NativeClipboard.js | 2 -- Libraries/Components/DatePicker/DatePickerIOS.ios.js | 2 -- .../Components/DatePicker/RCTDatePickerNativeComponent.js | 2 -- .../DatePickerAndroid/DatePickerAndroid.android.js | 2 -- .../DatePickerAndroid/NativeDatePickerAndroid.js | 2 -- .../DrawerAndroid/AndroidDrawerLayoutNativeComponent.js | 2 -- .../DrawerAndroid/DrawerLayoutAndroid.android.js | 2 -- Libraries/Components/Keyboard/Keyboard.js | 2 -- Libraries/Components/Keyboard/KeyboardAvoidingView.js | 2 -- Libraries/Components/Keyboard/NativeKeyboardObserver.js | 2 -- Libraries/Components/Keyboard/__tests__/Keyboard-test.js | 2 -- .../Picker/AndroidDialogPickerNativeComponent.js | 2 -- .../Picker/AndroidDropdownPickerNativeComponent.js | 2 -- Libraries/Components/Picker/PickerAndroid.android.js | 2 -- Libraries/Components/Picker/PickerIOS.ios.js | 2 -- Libraries/Components/Picker/RCTPickerNativeComponent.js | 2 -- Libraries/Components/Picker/RCTPickerViewConfig.js | 2 -- Libraries/Components/Pressable/Pressable.js | 2 -- .../Components/Pressable/__tests__/Pressable-test.js | 2 -- Libraries/Components/Pressable/useAndroidRippleForView.js | 2 -- .../ProgressBarAndroid/ProgressBarAndroid.android.js | 2 -- .../ProgressBarAndroidNativeComponent.js | 2 -- .../Components/ProgressViewIOS/ProgressViewIOS.ios.js | 2 -- .../ProgressViewIOS/RCTProgressViewNativeComponent.js | 2 -- .../AndroidSwipeRefreshLayoutNativeComponent.js | 2 -- .../RefreshControl/PullToRefreshViewNativeComponent.js | 2 -- Libraries/Components/RefreshControl/RefreshControl.js | 2 -- .../SafeAreaView/RCTSafeAreaViewNativeComponent.js | 2 -- Libraries/Components/ScrollResponder.js | 2 -- .../AndroidHorizontalScrollContentViewNativeComponent.js | 2 -- .../AndroidHorizontalScrollViewNativeComponent.js | 2 -- .../ScrollView/ScrollContentViewNativeComponent.js | 2 -- Libraries/Components/ScrollView/ScrollView.js | 8 ++------ Libraries/Components/ScrollView/ScrollViewContext.js | 2 -- .../Components/ScrollView/ScrollViewNativeComponent.js | 2 -- Libraries/Components/ScrollView/ScrollViewStickyHeader.js | 2 -- .../Components/ScrollView/processDecelerationRate.js | 2 -- .../RCTSegmentedControlNativeComponent.js | 2 -- .../SegmentedControlIOS/SegmentedControlIOS.ios.js | 2 -- Libraries/Components/Slider/Slider.js | 2 -- Libraries/Components/Slider/SliderNativeComponent.js | 2 -- Libraries/Components/Sound/NativeSoundManager.js | 2 -- Libraries/Components/Sound/SoundManager.js | 1 - .../Components/StatusBar/NativeStatusBarManagerAndroid.js | 2 -- .../Components/StatusBar/NativeStatusBarManagerIOS.js | 2 -- Libraries/Components/StatusBar/StatusBar.js | 2 -- Libraries/Components/StatusBar/StatusBarIOS.js | 2 -- .../Components/Switch/AndroidSwitchNativeComponent.js | 2 -- Libraries/Components/Switch/Switch.js | 2 -- Libraries/Components/Switch/SwitchNativeComponent.js | 2 -- .../TextInput/AndroidTextInputNativeComponent.js | 2 -- .../Components/TextInput/AndroidTextInputViewConfig.js | 2 -- Libraries/Components/TextInput/InputAccessoryView.js | 2 -- .../TextInput/RCTInputAccessoryViewNativeComponent.js | 2 -- .../TextInput/RCTMultilineTextInputNativeComponent.js | 2 -- .../TextInput/RCTSingelineTextInputNativeComponent.js | 2 -- .../TextInput/RCTSinglelineTextInputViewConfig.js | 2 -- Libraries/Components/TextInput/TextInputNativeCommands.js | 2 -- Libraries/Components/TextInput/TextInputState.js | 2 -- .../Components/TextInput/__tests__/TextInput-test.js | 2 -- Libraries/Components/ToastAndroid/NativeToastAndroid.js | 2 -- Libraries/Components/ToastAndroid/ToastAndroid.android.js | 1 - Libraries/Components/Touchable/Touchable.js | 2 -- Libraries/Components/Touchable/TouchableBounce.js | 2 -- Libraries/Components/Touchable/TouchableHighlight.js | 2 -- Libraries/Components/Touchable/TouchableNativeFeedback.js | 2 -- Libraries/Components/Touchable/TouchableOpacity.js | 2 -- .../Components/Touchable/TouchableWithoutFeedback.js | 2 -- .../UnimplementedNativeViewNativeComponent.js | 2 -- Libraries/Components/View/ReactNativeViewViewConfig.js | 2 -- Libraries/Components/View/View.js | 2 -- Libraries/Components/View/ViewNativeComponent.js | 2 -- Libraries/Core/Devtools/getDevServer.js | 2 -- Libraries/Core/NativeExceptionsManager.js | 2 -- Libraries/Core/ReactNativeVersionCheck.js | 2 -- Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js | 2 -- Libraries/Core/Timers/JSTimers.js | 2 -- Libraries/Core/Timers/NativeTiming.js | 2 -- Libraries/Core/setUpDeveloperTools.js | 2 -- Libraries/EventEmitter/RCTDeviceEventEmitter.js | 2 -- Libraries/EventEmitter/RCTNativeAppEventEmitter.js | 2 -- Libraries/EventEmitter/__mocks__/NativeEventEmitter.js | 2 -- Libraries/HeapCapture/HeapCapture.js | 2 -- Libraries/HeapCapture/NativeJSCHeapCapture.js | 2 -- Libraries/Image/AssetUtils.js | 2 -- Libraries/Image/Image.android.js | 2 -- Libraries/Image/Image.ios.js | 2 -- Libraries/Image/ImageAnalyticsTagContext.js | 2 -- Libraries/Image/ImagePickerIOS.js | 2 -- Libraries/Image/ImageViewNativeComponent.js | 2 -- Libraries/Image/NativeImageEditor.js | 2 -- Libraries/Image/NativeImageLoaderAndroid.js | 2 -- Libraries/Image/NativeImageLoaderIOS.js | 2 -- Libraries/Image/NativeImagePickerIOS.js | 2 -- Libraries/Image/NativeImageStoreAndroid.js | 2 -- Libraries/Image/NativeImageStoreIOS.js | 2 -- Libraries/Image/__tests__/AssetUtils-test.js | 2 -- Libraries/Image/nativeImageSource.js | 2 -- Libraries/Interaction/FrameRateLogger.js | 2 -- Libraries/Interaction/InteractionManager.js | 2 -- Libraries/Interaction/InteractionMixin.js | 2 -- Libraries/Linking/Linking.js | 2 -- Libraries/Linking/NativeIntentAndroid.js | 2 -- Libraries/Linking/NativeLinkingManager.js | 2 -- Libraries/Lists/FlatList.js | 2 -- Libraries/Lists/VirtualizedList.js | 2 -- Libraries/Lists/VirtualizedListContext.js | 2 -- Libraries/LogBox/Data/LogBoxLog.js | 2 -- Libraries/LogBox/Data/LogBoxSymbolication.js | 2 -- Libraries/LogBox/Data/parseLogBoxLog.js | 2 -- Libraries/LogBox/LogBox.js | 2 -- Libraries/LogBox/LogBoxInspectorContainer.js | 2 -- Libraries/LogBox/LogBoxNotificationContainer.js | 2 -- Libraries/LogBox/UI/LogBoxButton.js | 2 -- Libraries/LogBox/UI/LogBoxInspector.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorFooter.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorHeader.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorReactFrames.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorSection.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorStackFrame.js | 2 -- Libraries/LogBox/UI/LogBoxInspectorStackFrames.js | 2 -- Libraries/LogBox/UI/LogBoxMessage.js | 2 -- Libraries/LogBox/UI/LogBoxNotification.js | 2 -- Libraries/LogBox/UI/LogBoxStyle.js | 2 -- Libraries/LogBox/UI/__tests__/LogBoxButton-test.js | 2 -- .../LogBox/UI/__tests__/LogBoxInspectorSection-test.js | 2 -- .../UI/__tests__/LogBoxInspectorStackFrames-test.js | 2 -- Libraries/LogBox/__tests__/LogBox-integration-test.js | 2 -- .../LogBox/__tests__/__fixtures__/ReactWarningFixtures.js | 2 -- Libraries/Modal/Modal.js | 2 -- Libraries/Modal/NativeModalManager.js | 2 -- Libraries/Modal/RCTModalHostViewNativeComponent.js | 2 -- Libraries/NativeComponent/NativeComponentRegistry.js | 2 -- .../NativeModules/specs/NativeAnimationsDebugModule.js | 2 -- Libraries/NativeModules/specs/NativeDevMenu.js | 2 -- Libraries/NativeModules/specs/NativeDevSettings.js | 2 -- Libraries/NativeModules/specs/NativeDeviceEventManager.js | 2 -- .../NativeModules/specs/NativeDialogManagerAndroid.js | 2 -- Libraries/NativeModules/specs/NativeLogBox.js | 2 -- Libraries/NativeModules/specs/NativeRedBox.js | 2 -- Libraries/NativeModules/specs/NativeSourceCode.js | 2 -- Libraries/Network/NativeNetworkingAndroid.js | 2 -- Libraries/Network/NativeNetworkingIOS.js | 2 -- Libraries/Network/RCTNetworking.android.js | 2 -- Libraries/Network/__tests__/XMLHttpRequest-test.js | 2 -- Libraries/NewAppScreen/components/Colors.js | 2 -- Libraries/NewAppScreen/components/Header.js | 1 - Libraries/NewAppScreen/components/LearnMoreLinks.js | 1 - Libraries/NewAppScreen/index.js | 2 -- Libraries/Performance/NativeJSCSamplingProfiler.js | 2 -- Libraries/PermissionsAndroid/NativePermissionsAndroid.js | 2 -- Libraries/PermissionsAndroid/PermissionsAndroid.js | 2 -- Libraries/Pressability/HoverState.js | 2 -- Libraries/Pressability/Pressability.js | 2 -- Libraries/Pressability/PressabilityDebug.js | 2 -- Libraries/Pressability/__tests__/Pressability-test.js | 2 -- Libraries/Pressability/usePressability.js | 2 -- Libraries/PushNotificationIOS/PushNotificationIOS.js | 2 -- Libraries/ReactNative/AppContainer.js | 2 -- Libraries/ReactNative/AppRegistry.js | 2 -- Libraries/ReactNative/HeadlessJsTaskError.js | 2 -- Libraries/ReactNative/I18nManager.js | 2 -- Libraries/ReactNative/NativeHeadlessJsTaskSupport.js | 2 -- Libraries/ReactNative/NativeI18nManager.js | 2 -- Libraries/ReactNative/NativeUIManager.js | 2 -- Libraries/ReactNative/PaperUIManager.js | 2 -- Libraries/ReactNative/RootTag.js | 2 -- Libraries/ReactNative/UIManager.js | 2 -- Libraries/ReactNative/UIManagerInjection.js | 2 -- Libraries/ReactNative/renderApplication.js | 2 -- Libraries/Renderer/shims/ReactFabric.js | 2 -- Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js | 2 -- .../Renderer/shims/createReactNativeComponentClass.js | 2 -- Libraries/Settings/NativeSettingsManager.js | 2 -- Libraries/Settings/Settings.ios.js | 2 -- Libraries/Share/NativeShareModule.js | 2 -- Libraries/Share/Share.js | 2 -- Libraries/Storage/AsyncStorage.js | 2 -- Libraries/Storage/NativeAsyncLocalStorage.js | 2 -- Libraries/Storage/NativeAsyncSQLiteDBStorage.js | 2 -- Libraries/StyleSheet/PlatformColorValueTypes.android.js | 2 -- Libraries/StyleSheet/PlatformColorValueTypes.ios.js | 2 -- Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js | 2 -- Libraries/StyleSheet/PlatformColorValueTypesIOS.js | 2 -- Libraries/StyleSheet/Rect.js | 2 -- Libraries/StyleSheet/normalizeColor.js | 2 -- Libraries/StyleSheet/splitLayoutProps.js | 2 -- Libraries/Text/TextInjection.js | 2 -- Libraries/Text/TextNativeComponent.js | 2 -- Libraries/TurboModule/TurboModuleRegistry.js | 2 -- Libraries/TurboModule/samples/NativeSampleTurboModule.js | 2 -- Libraries/Types/CoreEventTypes.js | 2 -- Libraries/Utilities/Appearance.js | 2 -- Libraries/Utilities/BackHandler.android.js | 2 -- Libraries/Utilities/DebugEnvironment.js | 2 -- Libraries/Utilities/DeviceInfo.js | 2 -- Libraries/Utilities/Dimensions.js | 2 -- Libraries/Utilities/GlobalPerformanceLogger.js | 2 -- Libraries/Utilities/HMRClient.js | 2 -- Libraries/Utilities/JSDevSupportModule.js | 2 -- Libraries/Utilities/LoadingView.android.js | 2 -- Libraries/Utilities/LoadingView.ios.js | 2 -- Libraries/Utilities/NativeAppearance.js | 2 -- Libraries/Utilities/NativeDevLoadingView.js | 2 -- Libraries/Utilities/NativeDevSplitBundleLoader.js | 2 -- Libraries/Utilities/NativeDeviceInfo.js | 2 -- Libraries/Utilities/NativeJSDevSupport.js | 2 -- Libraries/Utilities/NativePlatformConstantsAndroid.js | 2 -- Libraries/Utilities/NativePlatformConstantsIOS.js | 2 -- Libraries/Utilities/PerformanceLoggerContext.js | 2 -- Libraries/Utilities/Platform.android.js | 2 -- Libraries/Utilities/Platform.ios.js | 2 -- Libraries/Utilities/ReactNativeTestTools.js | 2 -- Libraries/Utilities/__tests__/PerformanceLogger-test.js | 2 -- Libraries/Utilities/__tests__/stringifySafe-test.js | 2 -- Libraries/Utilities/codegenNativeCommands.js | 2 -- Libraries/Utilities/codegenNativeComponent.js | 2 -- Libraries/Utilities/createPerformanceLogger.js | 2 -- Libraries/Utilities/deprecatedPropType.js | 2 -- Libraries/Utilities/registerGeneratedViewConfig.js | 2 -- Libraries/Utilities/stringifySafe.js | 2 -- Libraries/Utilities/useColorScheme.js | 2 -- Libraries/Utilities/useWindowDimensions.js | 2 -- .../Utilities/verifyComponentAttributeEquivalence.js | 2 -- Libraries/Vibration/NativeVibration.js | 2 -- Libraries/Vibration/Vibration.js | 2 -- Libraries/WebSocket/NativeWebSocketModule.js | 2 -- Libraries/WebSocket/WebSocket.js | 2 -- Libraries/WebSocket/WebSocketInterceptor.js | 2 -- Libraries/__flowtests__/ReactNativeTypes-flowtest.js | 2 -- Libraries/promiseRejectionTrackingOptions.js | 2 -- Libraries/vendor/emitter/_EventEmitter.js | 2 -- .../vendor/emitter/__flowtests__/EventEmitter-flowtest.js | 2 -- .../inspector/tools/msggen/__tests__/CommandTest.js | 4 +--- .../hermes/inspector/tools/msggen/__tests__/EventTest.js | 4 +--- .../hermes/inspector/tools/msggen/__tests__/GraphTest.js | 4 +--- .../inspector/tools/msggen/__tests__/HeaderWriterTest.js | 4 +--- .../tools/msggen/__tests__/ImplementationWriterTest.js | 4 +--- .../inspector/tools/msggen/__tests__/PropertyTest.js | 4 +--- .../hermes/inspector/tools/msggen/__tests__/TypeTest.js | 4 +--- ReactCommon/hermes/inspector/tools/msggen/src/Command.js | 2 -- .../hermes/inspector/tools/msggen/src/Converters.js | 2 -- ReactCommon/hermes/inspector/tools/msggen/src/Event.js | 2 -- ReactCommon/hermes/inspector/tools/msggen/src/Graph.js | 2 -- .../hermes/inspector/tools/msggen/src/HeaderWriter.js | 2 -- .../inspector/tools/msggen/src/ImplementationWriter.js | 2 -- ReactCommon/hermes/inspector/tools/msggen/src/Property.js | 2 -- .../hermes/inspector/tools/msggen/src/TestHelpers.js | 4 +--- ReactCommon/hermes/inspector/tools/msggen/src/Type.js | 2 -- ReactCommon/hermes/inspector/tools/msggen/src/index.js | 2 -- jest/renderer.js | 2 -- .../components/ArrayPropsNativeComponent.js | 2 -- .../components/BooleanPropNativeComponent.js | 2 -- .../components/ColorPropNativeComponent.js | 2 -- .../components/EdgeInsetsPropNativeComponent.js | 2 -- .../components/EnumPropNativeComponent.js | 2 -- .../components/EventNestedObjectPropsNativeComponent.js | 2 -- .../components/EventPropsNativeComponent.js | 2 -- .../components/FloatPropsNativeComponent.js | 2 -- .../components/ImagePropNativeComponent.js | 2 -- .../components/IntegerPropNativeComponent.js | 2 -- .../components/InterfaceOnlyNativeComponent.js | 2 -- .../components/MultiNativePropNativeComponent.js | 2 -- .../components/NoPropsNoEventsNativeComponent.js | 2 -- .../components/ObjectPropsNativeComponent.js | 2 -- .../components/PointPropNativeComponent.js | 2 -- .../components/StringPropNativeComponent.js | 2 -- .../__test_fixtures__/modules/NativeArrayTurboModule.js | 2 -- .../__test_fixtures__/modules/NativeBooleanTurboModule.js | 2 -- .../modules/NativeCallbackTurboModule.js | 2 -- .../modules/NativeNullableTurboModule.js | 2 -- .../__test_fixtures__/modules/NativeNumberTurboModule.js | 2 -- .../__test_fixtures__/modules/NativeObjectTurboModule.js | 2 -- .../modules/NativeOptionalObjectTurboModule.js | 2 -- .../__test_fixtures__/modules/NativePromiseTurboModule.js | 2 -- .../__test_fixtures__/modules/NativeSampleTurboModule.js | 2 -- .../modules/NativeSampleTurboModuleArrays.js | 2 -- .../modules/NativeSampleTurboModuleNullable.js | 2 -- .../modules/NativeSampleTurboModuleNullableAndOptional.js | 2 -- .../modules/NativeSampleTurboModuleOptional.js | 2 -- .../__test_fixtures__/modules/NativeStringTurboModule.js | 2 -- .../NativeModuleExample/NativeScreenshotManager.js | 2 -- packages/rn-tester/js/RNTesterApp.android.js | 2 -- packages/rn-tester/js/RNTesterApp.ios.js | 2 -- packages/rn-tester/js/RNTesterAppShared.js | 2 -- packages/rn-tester/js/components/ExamplePage.js | 2 -- packages/rn-tester/js/components/RNTesterBlock.js | 2 -- .../rn-tester/js/components/RNTesterBookmarkButton.js | 2 -- .../rn-tester/js/components/RNTesterDocumentationURL.js | 2 -- .../js/components/RNTesterEmptyBookmarksState.js | 2 -- .../rn-tester/js/components/RNTesterExampleContainer.js | 2 -- packages/rn-tester/js/components/RNTesterExampleFilter.js | 2 -- packages/rn-tester/js/components/RNTesterExampleList.js | 2 -- packages/rn-tester/js/components/RNTesterHeader.js | 2 -- packages/rn-tester/js/components/RNTesterPage.js | 2 -- packages/rn-tester/js/components/RNTesterTheme.js | 2 -- packages/rn-tester/js/components/RNTesterTitle.js | 2 -- packages/rn-tester/js/components/TextLegend.js | 2 -- .../ActivityIndicator/ActivityIndicatorExample.js | 1 - packages/rn-tester/js/examples/Alert/AlertExample.js | 2 -- .../rn-tester/js/examples/Appearance/AppearanceExample.js | 2 -- packages/rn-tester/js/examples/Crash/CrashExample.js | 1 - .../js/examples/DevSettings/DevSettingsExample.js | 2 -- .../rn-tester/js/examples/Dimensions/DimensionsExample.js | 2 -- .../JSResponderHandlerExample.js | 2 -- .../OrientationChange/OrientationChangeExample.js | 2 -- .../js/examples/PlatformColor/PlatformColorExample.js | 2 -- .../rn-tester/js/examples/Pressable/PressableExample.js | 2 -- .../rn-tester/js/examples/ScrollView/ScrollViewExample.js | 2 -- .../rn-tester/js/examples/Touchable/TouchableExample.js | 2 -- .../rn-tester/js/examples/Transform/TransformExample.js | 2 -- .../js/examples/TurboModule/SampleTurboModuleExample.js | 2 -- packages/rn-tester/js/types/RNTesterTypes.js | 2 -- packages/rn-tester/js/utils/RNTesterReducer.js | 2 -- packages/rn-tester/js/utils/RNTesterStatePersister.js | 2 -- packages/rn-tester/js/utils/testerStateUtils.js | 2 -- packages/rn-tester/js/utils/useAsyncStorageReducer.js | 2 -- 357 files changed, 10 insertions(+), 720 deletions(-) diff --git a/IntegrationTests/AccessibilityManagerTest.js b/IntegrationTests/AccessibilityManagerTest.js index 7501170f3ac..a6f4c0d93bb 100644 --- a/IntegrationTests/AccessibilityManagerTest.js +++ b/IntegrationTests/AccessibilityManagerTest.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import invariant from 'invariant'; import NativeAccessibilityManager from 'react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager'; import {DeviceEventEmitter, NativeModules, View} from 'react-native'; diff --git a/IntegrationTests/ReactContentSizeUpdateTest.js b/IntegrationTests/ReactContentSizeUpdateTest.js index 7abcc4fb8b4..9c826d9f4f5 100644 --- a/IntegrationTests/ReactContentSizeUpdateTest.js +++ b/IntegrationTests/ReactContentSizeUpdateTest.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const RCTNativeAppEventEmitter = require('react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter'); const React = require('react'); const ReactNative = require('react-native'); diff --git a/IntegrationTests/SizeFlexibilityUpdateTest.js b/IntegrationTests/SizeFlexibilityUpdateTest.js index b2e4952b102..3577a5363b5 100644 --- a/IntegrationTests/SizeFlexibilityUpdateTest.js +++ b/IntegrationTests/SizeFlexibilityUpdateTest.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const RCTNativeAppEventEmitter = require('react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter'); const React = require('react'); const ReactNative = require('react-native'); diff --git a/Libraries/ActionSheetIOS/ActionSheetIOS.js b/Libraries/ActionSheetIOS/ActionSheetIOS.js index 1fc86a0fd88..786839498f3 100644 --- a/Libraries/ActionSheetIOS/ActionSheetIOS.js +++ b/Libraries/ActionSheetIOS/ActionSheetIOS.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import RCTActionSheetManager from './NativeActionSheetManager'; const invariant = require('invariant'); diff --git a/Libraries/ActionSheetIOS/NativeActionSheetManager.js b/Libraries/ActionSheetIOS/NativeActionSheetManager.js index 6d86200d9ac..7c48f8e2d4b 100644 --- a/Libraries/ActionSheetIOS/NativeActionSheetManager.js +++ b/Libraries/ActionSheetIOS/NativeActionSheetManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Alert/Alert.js b/Libraries/Alert/Alert.js index e6aead18643..625a284bed4 100644 --- a/Libraries/Alert/Alert.js +++ b/Libraries/Alert/Alert.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import Platform from '../Utilities/Platform'; import NativeDialogManagerAndroid, { type DialogOptions, diff --git a/Libraries/Alert/NativeAlertManager.js b/Libraries/Alert/NativeAlertManager.js index 055a742b203..ec01b4a916e 100644 --- a/Libraries/Alert/NativeAlertManager.js +++ b/Libraries/Alert/NativeAlertManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Alert/RCTAlertManager.android.js b/Libraries/Alert/RCTAlertManager.android.js index 43f49a94e50..366692bd906 100644 --- a/Libraries/Alert/RCTAlertManager.android.js +++ b/Libraries/Alert/RCTAlertManager.android.js @@ -7,8 +7,6 @@ * @format */ -'use strict'; - import NativeDialogManagerAndroid from '../NativeModules/specs/NativeDialogManagerAndroid'; function emptyCallback() {} diff --git a/Libraries/Alert/RCTAlertManager.ios.js b/Libraries/Alert/RCTAlertManager.ios.js index 8ededddf4b4..a5dbdac5daf 100644 --- a/Libraries/Alert/RCTAlertManager.ios.js +++ b/Libraries/Alert/RCTAlertManager.ios.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeAlertManager from './NativeAlertManager'; import type {Args} from './NativeAlertManager'; diff --git a/Libraries/Animated/Animated.js b/Libraries/Animated/Animated.js index 323f8d38afc..2f6ee99ae6b 100644 --- a/Libraries/Animated/Animated.js +++ b/Libraries/Animated/Animated.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Platform from '../Utilities/Platform'; import typeof AnimatedFlatList from './components/AnimatedFlatList'; import typeof AnimatedImage from './components/AnimatedImage'; diff --git a/Libraries/Animated/NativeAnimatedHelper.js b/Libraries/Animated/NativeAnimatedHelper.js index af78a8d0987..d3a080f3de3 100644 --- a/Libraries/Animated/NativeAnimatedHelper.js +++ b/Libraries/Animated/NativeAnimatedHelper.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import NativeAnimatedNonTurboModule from './NativeAnimatedModule'; import NativeAnimatedTurboModule from './NativeAnimatedTurboModule'; import NativeEventEmitter from '../EventEmitter/NativeEventEmitter'; diff --git a/Libraries/Animated/NativeAnimatedModule.js b/Libraries/Animated/NativeAnimatedModule.js index be8ceb140fc..d126bfdaff9 100644 --- a/Libraries/Animated/NativeAnimatedModule.js +++ b/Libraries/Animated/NativeAnimatedModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Animated/NativeAnimatedTurboModule.js b/Libraries/Animated/NativeAnimatedTurboModule.js index b19fbde5f9b..03ff0f26116 100644 --- a/Libraries/Animated/NativeAnimatedTurboModule.js +++ b/Libraries/Animated/NativeAnimatedTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Animated/__tests__/Animated-test.js b/Libraries/Animated/__tests__/Animated-test.js index aa32306b7f5..f7a8bb05ace 100644 --- a/Libraries/Animated/__tests__/Animated-test.js +++ b/Libraries/Animated/__tests__/Animated-test.js @@ -8,8 +8,6 @@ * @emails oncall+react_native */ -'use strict'; - import TestRenderer from 'react-test-renderer'; import * as React from 'react'; diff --git a/Libraries/Animated/__tests__/AnimatedNative-test.js b/Libraries/Animated/__tests__/AnimatedNative-test.js index ceb93dccd33..e5ecec1fb7d 100644 --- a/Libraries/Animated/__tests__/AnimatedNative-test.js +++ b/Libraries/Animated/__tests__/AnimatedNative-test.js @@ -8,8 +8,6 @@ * @emails oncall+react_native */ -'use strict'; - jest .clearAllMocks() .mock('../../BatchedBridge/NativeModules', () => ({ diff --git a/Libraries/Animated/components/AnimatedFlatList.js b/Libraries/Animated/components/AnimatedFlatList.js index 64ba6c200be..49a1ebcbd19 100644 --- a/Libraries/Animated/components/AnimatedFlatList.js +++ b/Libraries/Animated/components/AnimatedFlatList.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; const FlatList = require('../../Lists/FlatList'); diff --git a/Libraries/Animated/components/AnimatedImage.js b/Libraries/Animated/components/AnimatedImage.js index 5aae7d90056..107d601f50c 100644 --- a/Libraries/Animated/components/AnimatedImage.js +++ b/Libraries/Animated/components/AnimatedImage.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; const Image = require('../../Image/Image'); diff --git a/Libraries/Animated/components/AnimatedScrollView.js b/Libraries/Animated/components/AnimatedScrollView.js index bfa75b7167b..488e9d12041 100644 --- a/Libraries/Animated/components/AnimatedScrollView.js +++ b/Libraries/Animated/components/AnimatedScrollView.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; const ScrollView = require('../../Components/ScrollView/ScrollView'); diff --git a/Libraries/Animated/components/AnimatedSectionList.js b/Libraries/Animated/components/AnimatedSectionList.js index 9beef55e879..2dd80bc400b 100644 --- a/Libraries/Animated/components/AnimatedSectionList.js +++ b/Libraries/Animated/components/AnimatedSectionList.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; const SectionList = require('../../Lists/SectionList'); diff --git a/Libraries/Animated/components/AnimatedText.js b/Libraries/Animated/components/AnimatedText.js index 7a940093aad..dd4fb0b0237 100644 --- a/Libraries/Animated/components/AnimatedText.js +++ b/Libraries/Animated/components/AnimatedText.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; const Text = require('../../Text/Text'); diff --git a/Libraries/Animated/components/AnimatedView.js b/Libraries/Animated/components/AnimatedView.js index d2a87807b02..79ebe1a0ea9 100644 --- a/Libraries/Animated/components/AnimatedView.js +++ b/Libraries/Animated/components/AnimatedView.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; const View = require('../../Components/View/View'); diff --git a/Libraries/AppState/AppState.js b/Libraries/AppState/AppState.js index 5e31fe2b954..66e947a1b10 100644 --- a/Libraries/AppState/AppState.js +++ b/Libraries/AppState/AppState.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import NativeEventEmitter from '../EventEmitter/NativeEventEmitter'; import type EventSubscription from '../vendor/emitter/_EventSubscription'; import type EmitterSubscription from '../vendor/emitter/_EmitterSubscription'; diff --git a/Libraries/AppState/NativeAppState.js b/Libraries/AppState/NativeAppState.js index 76f3b71619e..b08fe5ca81a 100644 --- a/Libraries/AppState/NativeAppState.js +++ b/Libraries/AppState/NativeAppState.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Blob/BlobManager.js b/Libraries/Blob/BlobManager.js index e12512392a3..4f4310adddb 100644 --- a/Libraries/Blob/BlobManager.js +++ b/Libraries/Blob/BlobManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const Blob = require('./Blob'); const BlobRegistry = require('./BlobRegistry'); diff --git a/Libraries/Blob/FileReader.js b/Libraries/Blob/FileReader.js index 15a8b44d0bb..1d2ca758ead 100644 --- a/Libraries/Blob/FileReader.js +++ b/Libraries/Blob/FileReader.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const Blob = require('./Blob'); const EventTarget = require('event-target-shim'); diff --git a/Libraries/Blob/NativeBlobModule.js b/Libraries/Blob/NativeBlobModule.js index d58aeeab6eb..d43c8bc3e3b 100644 --- a/Libraries/Blob/NativeBlobModule.js +++ b/Libraries/Blob/NativeBlobModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Blob/NativeFileReaderModule.js b/Libraries/Blob/NativeFileReaderModule.js index ac135db7394..a33d5d9b775 100644 --- a/Libraries/Blob/NativeFileReaderModule.js +++ b/Libraries/Blob/NativeFileReaderModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Blob/URL.js b/Libraries/Blob/URL.js index bf9ab01bf1a..bced25e695a 100644 --- a/Libraries/Blob/URL.js +++ b/Libraries/Blob/URL.js @@ -7,8 +7,6 @@ * @format */ -'use strict'; - const Blob = require('./Blob'); import NativeBlobModule from './NativeBlobModule'; diff --git a/Libraries/BugReporting/BugReporting.js b/Libraries/BugReporting/BugReporting.js index d2f3c4a442a..ed79b952dc1 100644 --- a/Libraries/BugReporting/BugReporting.js +++ b/Libraries/BugReporting/BugReporting.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter'; import NativeRedBox from '../NativeModules/specs/NativeRedBox'; import {type EventSubscription} from '../vendor/emitter/EventEmitter'; diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js index cfceeaaa7c7..d619b897254 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import RCTDeviceEventEmitter from '../../EventEmitter/RCTDeviceEventEmitter'; import NativeAccessibilityInfo from './NativeAccessibilityInfo'; import type {EventSubscription} from 'react-native/Libraries/vendor/emitter/EventEmitter'; diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js index cd55ed59c03..bcdefd1eae3 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import RCTDeviceEventEmitter from '../../EventEmitter/RCTDeviceEventEmitter'; import NativeAccessibilityManager from './NativeAccessibilityManager'; import type {EventSubscription} from 'react-native/Libraries/vendor/emitter/EventEmitter'; diff --git a/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js b/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js index 03484f2158c..4810127fd7d 100644 --- a/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +++ b/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js b/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js index 0a1abe57924..9ee2403e372 100644 --- a/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +++ b/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js b/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js index a5c75a92bef..edc950427d6 100644 --- a/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js +++ b/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import UIManager from '../../ReactNative/UIManager'; /** diff --git a/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js b/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js index cbc1785610a..950336d1101 100644 --- a/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js +++ b/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeAccessibilityManager from './NativeAccessibilityManager'; /** diff --git a/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js b/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js index a7a95da5943..3475cebedde 100644 --- a/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +++ b/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {WithDefault} from '../../Types/CodegenTypes'; import type {ColorValue} from '../../StyleSheet/StyleSheet'; diff --git a/Libraries/Components/Clipboard/Clipboard.js b/Libraries/Components/Clipboard/Clipboard.js index fa0b9a050d4..970aa93d494 100644 --- a/Libraries/Components/Clipboard/Clipboard.js +++ b/Libraries/Components/Clipboard/Clipboard.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - import NativeClipboard from './NativeClipboard'; /** diff --git a/Libraries/Components/Clipboard/NativeClipboard.js b/Libraries/Components/Clipboard/NativeClipboard.js index b585a108e04..6e33b2edce7 100644 --- a/Libraries/Components/Clipboard/NativeClipboard.js +++ b/Libraries/Components/Clipboard/NativeClipboard.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/DatePicker/DatePickerIOS.ios.js b/Libraries/Components/DatePicker/DatePickerIOS.ios.js index 016c65bf5ab..7f6aa797da0 100644 --- a/Libraries/Components/DatePicker/DatePickerIOS.ios.js +++ b/Libraries/Components/DatePicker/DatePickerIOS.ios.js @@ -10,8 +10,6 @@ // This is a controlled component version of RCTDatePickerIOS. -'use strict'; - import RCTDatePickerNativeComponent, { Commands as DatePickerCommands, } from './RCTDatePickerNativeComponent'; diff --git a/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js b/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js index 99e5d92c051..b1f9f5ca13a 100644 --- a/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +++ b/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import type {ViewProps} from '../View/ViewPropTypes'; import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; diff --git a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js index 4f9358e21a8..9f29433e1e1 100644 --- a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +++ b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {Options, DatePickerOpenAction} from './DatePickerAndroidTypes'; import NativeDatePickerAndroid from './NativeDatePickerAndroid'; diff --git a/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js b/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js index 778befa4ebc..c8c157a2f8e 100644 --- a/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +++ b/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js b/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js index aff340c6f74..7efb3491e0e 100644 --- a/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +++ b/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes'; import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet'; import type { diff --git a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js index 1537250d9b0..deebd5102e0 100644 --- a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +++ b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Platform from '../../Utilities/Platform'; import * as React from 'react'; import StatusBar from '../StatusBar/StatusBar'; diff --git a/Libraries/Components/Keyboard/Keyboard.js b/Libraries/Components/Keyboard/Keyboard.js index 5b56ad03a42..c62deaea178 100644 --- a/Libraries/Components/Keyboard/Keyboard.js +++ b/Libraries/Components/Keyboard/Keyboard.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeEventEmitter from '../../EventEmitter/NativeEventEmitter'; import LayoutAnimation from '../../LayoutAnimation/LayoutAnimation'; import dismissKeyboard from '../../Utilities/dismissKeyboard'; diff --git a/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/Libraries/Components/Keyboard/KeyboardAvoidingView.js index b3b33f838be..65eb67d3615 100644 --- a/Libraries/Components/Keyboard/KeyboardAvoidingView.js +++ b/Libraries/Components/Keyboard/KeyboardAvoidingView.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const Keyboard = require('./Keyboard'); const LayoutAnimation = require('../../LayoutAnimation/LayoutAnimation'); const Platform = require('../../Utilities/Platform'); diff --git a/Libraries/Components/Keyboard/NativeKeyboardObserver.js b/Libraries/Components/Keyboard/NativeKeyboardObserver.js index 7f077c3c88b..7868dd9fb09 100644 --- a/Libraries/Components/Keyboard/NativeKeyboardObserver.js +++ b/Libraries/Components/Keyboard/NativeKeyboardObserver.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/Keyboard/__tests__/Keyboard-test.js b/Libraries/Components/Keyboard/__tests__/Keyboard-test.js index ab38d1ccb8b..e56e89688db 100644 --- a/Libraries/Components/Keyboard/__tests__/Keyboard-test.js +++ b/Libraries/Components/Keyboard/__tests__/Keyboard-test.js @@ -9,8 +9,6 @@ * @emails oncall+react_native */ -'use strict'; - const NativeModules = require('../../../BatchedBridge/NativeModules'); const LayoutAnimation = require('../../../LayoutAnimation/LayoutAnimation'); const dismissKeyboard = require('../../../Utilities/dismissKeyboard'); diff --git a/Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js b/Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js index d0175786590..a831311f2b1 100644 --- a/Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js +++ b/Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; import codegenNativeCommands from '../../Utilities/codegenNativeCommands'; diff --git a/Libraries/Components/Picker/AndroidDropdownPickerNativeComponent.js b/Libraries/Components/Picker/AndroidDropdownPickerNativeComponent.js index f6ddb741888..6d2946b43fa 100644 --- a/Libraries/Components/Picker/AndroidDropdownPickerNativeComponent.js +++ b/Libraries/Components/Picker/AndroidDropdownPickerNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import * as React from 'react'; import codegenNativeCommands from '../../Utilities/codegenNativeCommands'; diff --git a/Libraries/Components/Picker/PickerAndroid.android.js b/Libraries/Components/Picker/PickerAndroid.android.js index ccefd18833d..3f19114690a 100644 --- a/Libraries/Components/Picker/PickerAndroid.android.js +++ b/Libraries/Components/Picker/PickerAndroid.android.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import AndroidDropdownPickerNativeComponent, { Commands as AndroidDropdownPickerCommands, } from './AndroidDropdownPickerNativeComponent'; diff --git a/Libraries/Components/Picker/PickerIOS.ios.js b/Libraries/Components/Picker/PickerIOS.ios.js index 7f294019261..fcdecf2f593 100644 --- a/Libraries/Components/Picker/PickerIOS.ios.js +++ b/Libraries/Components/Picker/PickerIOS.ios.js @@ -10,8 +10,6 @@ // This is a controlled component version of RCTPickerIOS. -'use strict'; - const React = require('react'); const StyleSheet = require('../../StyleSheet/StyleSheet'); const View = require('../View/View'); diff --git a/Libraries/Components/Picker/RCTPickerNativeComponent.js b/Libraries/Components/Picker/RCTPickerNativeComponent.js index 7fdbe9c76c8..a3396e0e5c4 100644 --- a/Libraries/Components/Picker/RCTPickerNativeComponent.js +++ b/Libraries/Components/Picker/RCTPickerNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const requireNativeComponent = require('../../ReactNative/requireNativeComponent'); const ReactNativeViewConfigRegistry = require('../../Renderer/shims/ReactNativeViewConfigRegistry'); diff --git a/Libraries/Components/Picker/RCTPickerViewConfig.js b/Libraries/Components/Picker/RCTPickerViewConfig.js index 9a5ec9d612d..fc44b0b9b4c 100644 --- a/Libraries/Components/Picker/RCTPickerViewConfig.js +++ b/Libraries/Components/Picker/RCTPickerViewConfig.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig'; import {type ViewConfig} from '../../Renderer/shims/ReactNativeTypes'; diff --git a/Libraries/Components/Pressable/Pressable.js b/Libraries/Components/Pressable/Pressable.js index a6692c92bd4..48fbbff0326 100644 --- a/Libraries/Components/Pressable/Pressable.js +++ b/Libraries/Components/Pressable/Pressable.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import {useMemo, useState, useRef, useImperativeHandle} from 'react'; import useAndroidRippleForView, { diff --git a/Libraries/Components/Pressable/__tests__/Pressable-test.js b/Libraries/Components/Pressable/__tests__/Pressable-test.js index a8c5af535e8..37b9684d50e 100644 --- a/Libraries/Components/Pressable/__tests__/Pressable-test.js +++ b/Libraries/Components/Pressable/__tests__/Pressable-test.js @@ -9,8 +9,6 @@ * @flow strict-local */ -'use strict'; - import * as React from 'react'; import Pressable from '../Pressable'; diff --git a/Libraries/Components/Pressable/useAndroidRippleForView.js b/Libraries/Components/Pressable/useAndroidRippleForView.js index 1e33f2a144c..be31c5a2e91 100644 --- a/Libraries/Components/Pressable/useAndroidRippleForView.js +++ b/Libraries/Components/Pressable/useAndroidRippleForView.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import invariant from 'invariant'; import {Commands} from '../View/ViewNativeComponent'; import type {ColorValue} from '../../StyleSheet/StyleSheet'; diff --git a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js index b4d1118cf40..51803f1df2e 100644 --- a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +++ b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const React = require('react'); import ProgressBarAndroidNativeComponent from './ProgressBarAndroidNativeComponent'; diff --git a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js index 0274e586679..5b2fb1a222f 100644 --- a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +++ b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {ColorValue} from '../../StyleSheet/StyleSheet'; import type {ViewProps} from '../View/ViewPropTypes'; import type {Double, WithDefault} from '../../Types/CodegenTypes'; diff --git a/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js b/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js index 189f7be3872..c3f5352e687 100644 --- a/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +++ b/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const React = require('react'); const StyleSheet = require('../../StyleSheet/StyleSheet'); diff --git a/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js b/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js index ccdd15e5100..c0c0b56bfef 100644 --- a/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +++ b/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {Float, WithDefault} from '../../Types/CodegenTypes'; import type {ImageSource} from '../../Image/ImageSource'; import type {ColorValue} from '../../StyleSheet/StyleSheet'; diff --git a/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js b/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js index bc2d26560c7..de1b8d9a2a5 100644 --- a/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +++ b/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import * as React from 'react'; import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; diff --git a/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js b/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js index 7f97db35b61..4947b1e31df 100644 --- a/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +++ b/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {DirectEventHandler, WithDefault} from '../../Types/CodegenTypes'; import type {ColorValue} from '../../StyleSheet/StyleSheet'; import type {ViewProps} from '../View/ViewPropTypes'; diff --git a/Libraries/Components/RefreshControl/RefreshControl.js b/Libraries/Components/RefreshControl/RefreshControl.js index f9eb5381c54..48bafb5ca62 100644 --- a/Libraries/Components/RefreshControl/RefreshControl.js +++ b/Libraries/Components/RefreshControl/RefreshControl.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const Platform = require('../../Utilities/Platform'); const React = require('react'); diff --git a/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js b/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js index 9025f1a8819..5365e35f8fc 100644 --- a/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +++ b/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ViewProps} from '../View/ViewPropTypes'; import type {WithDefault} from '../../Types/CodegenTypes'; diff --git a/Libraries/Components/ScrollResponder.js b/Libraries/Components/ScrollResponder.js index c0be6551153..5f37877163c 100644 --- a/Libraries/Components/ScrollResponder.js +++ b/Libraries/Components/ScrollResponder.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const Dimensions = require('../Utilities/Dimensions'); const FrameRateLogger = require('../Interaction/FrameRateLogger'); const Keyboard = require('./Keyboard/Keyboard'); diff --git a/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js b/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js index dc222eda3a1..4c542bddfac 100644 --- a/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +++ b/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {type HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry'; import {type ViewProps as Props} from '../View/ViewPropTypes'; diff --git a/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js b/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js index cd424858d04..6c68faf202a 100644 --- a/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +++ b/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {type ScrollViewNativeProps as Props} from './ScrollViewNativeComponentType'; import {type HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry'; diff --git a/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js b/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js index ad184c19dd1..702900a3b89 100644 --- a/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +++ b/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import {type HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry'; import {type ViewProps as Props} from '../View/ViewPropTypes'; diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 4ef4f50d3f0..584bf47d375 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import AnimatedImplementation from '../../Animated/AnimatedImplementation'; import Platform from '../../Utilities/Platform'; import * as React from 'react'; @@ -444,10 +442,8 @@ export type Props = $ReadOnly<{| * On android this is not supported and it will have the same behavior as 'none'. */ keyboardDismissMode?: ?// default - (| 'none' // cross-platform - | 'on-drag' - | 'interactive' - ), // ios only + // cross-platform + ('none' | 'on-drag' | 'interactive'), // ios only /** * Determines when the keyboard should stay visible after a tap. * diff --git a/Libraries/Components/ScrollView/ScrollViewContext.js b/Libraries/Components/ScrollView/ScrollViewContext.js index 894d7f0a565..0b5e9ac40de 100644 --- a/Libraries/Components/ScrollView/ScrollViewContext.js +++ b/Libraries/Components/ScrollView/ScrollViewContext.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; type Value = {horizontal: boolean} | null; diff --git a/Libraries/Components/ScrollView/ScrollViewNativeComponent.js b/Libraries/Components/ScrollView/ScrollViewNativeComponent.js index 29585037ef4..e74fb870e34 100644 --- a/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +++ b/Libraries/Components/ScrollView/ScrollViewNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {type ScrollViewNativeProps as Props} from './ScrollViewNativeComponentType'; import {type HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry'; diff --git a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js index 521b965b538..f7acb3d1cfb 100644 --- a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +++ b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import AnimatedImplementation from '../../Animated/AnimatedImplementation'; import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; diff --git a/Libraries/Components/ScrollView/processDecelerationRate.js b/Libraries/Components/ScrollView/processDecelerationRate.js index ac6b3d28780..b3d9542b6e5 100644 --- a/Libraries/Components/ScrollView/processDecelerationRate.js +++ b/Libraries/Components/ScrollView/processDecelerationRate.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import Platform from '../../Utilities/Platform'; function processDecelerationRate( diff --git a/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js b/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js index c860c04ea9d..a00ff34c34a 100644 --- a/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js +++ b/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import codegenNativeComponent from '../../Utilities/codegenNativeComponent'; import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import type {ViewProps} from '../View/ViewPropTypes'; diff --git a/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js b/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js index 2983e77d1ac..9bc4a4a4fb9 100644 --- a/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +++ b/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import type {OnChangeEvent} from './RCTSegmentedControlNativeComponent'; diff --git a/Libraries/Components/Slider/Slider.js b/Libraries/Components/Slider/Slider.js index 3add030f08a..90bbfbf6fee 100644 --- a/Libraries/Components/Slider/Slider.js +++ b/Libraries/Components/Slider/Slider.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const Platform = require('../../Utilities/Platform'); import SliderNativeComponent from './SliderNativeComponent'; const React = require('react'); diff --git a/Libraries/Components/Slider/SliderNativeComponent.js b/Libraries/Components/Slider/SliderNativeComponent.js index c79d0fb7306..18868e9a003 100644 --- a/Libraries/Components/Slider/SliderNativeComponent.js +++ b/Libraries/Components/Slider/SliderNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type { BubblingEventHandler, DirectEventHandler, diff --git a/Libraries/Components/Sound/NativeSoundManager.js b/Libraries/Components/Sound/NativeSoundManager.js index d278168552f..fcf14489741 100644 --- a/Libraries/Components/Sound/NativeSoundManager.js +++ b/Libraries/Components/Sound/NativeSoundManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/Sound/SoundManager.js b/Libraries/Components/Sound/SoundManager.js index 0e63332728f..f65776be07d 100644 --- a/Libraries/Components/Sound/SoundManager.js +++ b/Libraries/Components/Sound/SoundManager.js @@ -8,7 +8,6 @@ * @flow strict */ -'use strict'; import NativeSoundManager from './NativeSoundManager'; const SoundManager = { diff --git a/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js b/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js index 5b00b2a4c21..fb7647c8b4c 100644 --- a/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +++ b/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js b/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js index b5da2851bf2..4765b603a86 100644 --- a/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js +++ b/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/StatusBar/StatusBar.js b/Libraries/Components/StatusBar/StatusBar.js index 021e75494d1..5c242786943 100644 --- a/Libraries/Components/StatusBar/StatusBar.js +++ b/Libraries/Components/StatusBar/StatusBar.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const Platform = require('../../Utilities/Platform'); const React = require('react'); diff --git a/Libraries/Components/StatusBar/StatusBarIOS.js b/Libraries/Components/StatusBar/StatusBarIOS.js index 7764ea59be4..fe012374b21 100644 --- a/Libraries/Components/StatusBar/StatusBarIOS.js +++ b/Libraries/Components/StatusBar/StatusBarIOS.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeEventEmitter from '../../EventEmitter/NativeEventEmitter'; import NativeStatusBarManagerIOS from './NativeStatusBarManagerIOS'; diff --git a/Libraries/Components/Switch/AndroidSwitchNativeComponent.js b/Libraries/Components/Switch/AndroidSwitchNativeComponent.js index 61629b32cc6..7d7b8dd3682 100644 --- a/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +++ b/Libraries/Components/Switch/AndroidSwitchNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import type { diff --git a/Libraries/Components/Switch/Switch.js b/Libraries/Components/Switch/Switch.js index d2f4cf750e3..4135959bb43 100644 --- a/Libraries/Components/Switch/Switch.js +++ b/Libraries/Components/Switch/Switch.js @@ -9,8 +9,6 @@ * @generate-docs */ -'use strict'; - import Platform from '../../Utilities/Platform'; import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; diff --git a/Libraries/Components/Switch/SwitchNativeComponent.js b/Libraries/Components/Switch/SwitchNativeComponent.js index 82e3be7dbbd..7f4715de180 100644 --- a/Libraries/Components/Switch/SwitchNativeComponent.js +++ b/Libraries/Components/Switch/SwitchNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {BubblingEventHandler, WithDefault} from '../../Types/CodegenTypes'; import type {ColorValue} from '../../StyleSheet/StyleSheet'; import type {ViewProps} from '../View/ViewPropTypes'; diff --git a/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js b/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js index 9568442adf4..e96df0585ae 100644 --- a/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +++ b/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {ViewProps} from '../View/ViewPropTypes'; import type { BubblingEventHandler, diff --git a/Libraries/Components/TextInput/AndroidTextInputViewConfig.js b/Libraries/Components/TextInput/AndroidTextInputViewConfig.js index 553911491b1..d1f922dccbe 100644 --- a/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +++ b/Libraries/Components/TextInput/AndroidTextInputViewConfig.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig'; import {type PartialViewConfig} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes'; diff --git a/Libraries/Components/TextInput/InputAccessoryView.js b/Libraries/Components/TextInput/InputAccessoryView.js index 71c225bc4de..0da3ed3d332 100644 --- a/Libraries/Components/TextInput/InputAccessoryView.js +++ b/Libraries/Components/TextInput/InputAccessoryView.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const Platform = require('../../Utilities/Platform'); const React = require('react'); const StyleSheet = require('../../StyleSheet/StyleSheet'); diff --git a/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js b/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js index 6120e1614c0..1a37cd95e75 100644 --- a/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +++ b/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {ColorValue} from '../../StyleSheet/StyleSheet'; import type {ViewProps} from '../View/ViewPropTypes'; diff --git a/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js b/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js index 426cc610a0c..2ebb63b3698 100644 --- a/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +++ b/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import requireNativeComponent from '../../ReactNative/requireNativeComponent'; import codegenNativeCommands from '../../Utilities/codegenNativeCommands'; diff --git a/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js b/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js index 7255649db85..bc61d3e1346 100644 --- a/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +++ b/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import requireNativeComponent from '../../ReactNative/requireNativeComponent'; import codegenNativeCommands from '../../Utilities/codegenNativeCommands'; diff --git a/Libraries/Components/TextInput/RCTSinglelineTextInputViewConfig.js b/Libraries/Components/TextInput/RCTSinglelineTextInputViewConfig.js index 990bcbb1c27..6edafbebf29 100644 --- a/Libraries/Components/TextInput/RCTSinglelineTextInputViewConfig.js +++ b/Libraries/Components/TextInput/RCTSinglelineTextInputViewConfig.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig'; import {type ViewConfig} from '../../Renderer/shims/ReactNativeTypes'; diff --git a/Libraries/Components/TextInput/TextInputNativeCommands.js b/Libraries/Components/TextInput/TextInputNativeCommands.js index 2584b7516c8..5177dc5c714 100644 --- a/Libraries/Components/TextInput/TextInputNativeCommands.js +++ b/Libraries/Components/TextInput/TextInputNativeCommands.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import type {Int32} from '../../Types/CodegenTypes'; diff --git a/Libraries/Components/TextInput/TextInputState.js b/Libraries/Components/TextInput/TextInputState.js index 3a45d647457..0f1036bacfe 100644 --- a/Libraries/Components/TextInput/TextInputState.js +++ b/Libraries/Components/TextInput/TextInputState.js @@ -12,8 +12,6 @@ // TextInputs. All calls relating to the keyboard should be funneled // through here. -'use strict'; - const React = require('react'); const Platform = require('../../Utilities/Platform'); const {findNodeHandle} = require('../../Renderer/shims/ReactNative'); diff --git a/Libraries/Components/TextInput/__tests__/TextInput-test.js b/Libraries/Components/TextInput/__tests__/TextInput-test.js index 38a64dccb69..5d912d78aef 100644 --- a/Libraries/Components/TextInput/__tests__/TextInput-test.js +++ b/Libraries/Components/TextInput/__tests__/TextInput-test.js @@ -9,8 +9,6 @@ * @flow-strict */ -'use strict'; - const React = require('react'); const ReactTestRenderer = require('react-test-renderer'); const TextInput = require('../TextInput'); diff --git a/Libraries/Components/ToastAndroid/NativeToastAndroid.js b/Libraries/Components/ToastAndroid/NativeToastAndroid.js index 97f70204e9b..7325c47d484 100644 --- a/Libraries/Components/ToastAndroid/NativeToastAndroid.js +++ b/Libraries/Components/ToastAndroid/NativeToastAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Components/ToastAndroid/ToastAndroid.android.js b/Libraries/Components/ToastAndroid/ToastAndroid.android.js index eb4374c2e48..b15100a1769 100644 --- a/Libraries/Components/ToastAndroid/ToastAndroid.android.js +++ b/Libraries/Components/ToastAndroid/ToastAndroid.android.js @@ -8,7 +8,6 @@ * @flow strict-local */ -'use strict'; import NativeToastAndroid from './NativeToastAndroid'; /** diff --git a/Libraries/Components/Touchable/Touchable.js b/Libraries/Components/Touchable/Touchable.js index 6f05d2ea14b..53c821ebc08 100644 --- a/Libraries/Components/Touchable/Touchable.js +++ b/Libraries/Components/Touchable/Touchable.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const BoundingDimensions = require('./BoundingDimensions'); const Platform = require('../../Utilities/Platform'); const Position = require('./Position'); diff --git a/Libraries/Components/Touchable/TouchableBounce.js b/Libraries/Components/Touchable/TouchableBounce.js index 49a9a35f078..4bf9c201fc5 100644 --- a/Libraries/Components/Touchable/TouchableBounce.js +++ b/Libraries/Components/Touchable/TouchableBounce.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Pressability, { type PressabilityConfig, } from '../../Pressability/Pressability'; diff --git a/Libraries/Components/Touchable/TouchableHighlight.js b/Libraries/Components/Touchable/TouchableHighlight.js index d01fb7c595d..78befde8fbb 100644 --- a/Libraries/Components/Touchable/TouchableHighlight.js +++ b/Libraries/Components/Touchable/TouchableHighlight.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Pressability, { type PressabilityConfig, } from '../../Pressability/Pressability'; diff --git a/Libraries/Components/Touchable/TouchableNativeFeedback.js b/Libraries/Components/Touchable/TouchableNativeFeedback.js index 907f9670537..739ea4c15a7 100644 --- a/Libraries/Components/Touchable/TouchableNativeFeedback.js +++ b/Libraries/Components/Touchable/TouchableNativeFeedback.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Pressability, { type PressabilityConfig, } from '../../Pressability/Pressability'; diff --git a/Libraries/Components/Touchable/TouchableOpacity.js b/Libraries/Components/Touchable/TouchableOpacity.js index eb6a3612b28..7a17eef9a2f 100644 --- a/Libraries/Components/Touchable/TouchableOpacity.js +++ b/Libraries/Components/Touchable/TouchableOpacity.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Pressability, { type PressabilityConfig, } from '../../Pressability/Pressability'; diff --git a/Libraries/Components/Touchable/TouchableWithoutFeedback.js b/Libraries/Components/Touchable/TouchableWithoutFeedback.js index 98a2e8ea134..0a9ec551831 100755 --- a/Libraries/Components/Touchable/TouchableWithoutFeedback.js +++ b/Libraries/Components/Touchable/TouchableWithoutFeedback.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Pressability, { type PressabilityConfig, } from '../../Pressability/Pressability'; diff --git a/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js b/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js index 796650fefc5..2a2969905bc 100644 --- a/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +++ b/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {WithDefault} from '../../Types/CodegenTypes'; import type {ViewProps} from '../View/ViewPropTypes'; diff --git a/Libraries/Components/View/ReactNativeViewViewConfig.js b/Libraries/Components/View/ReactNativeViewViewConfig.js index 95cfa81733b..63fbe0fbeba 100644 --- a/Libraries/Components/View/ReactNativeViewViewConfig.js +++ b/Libraries/Components/View/ReactNativeViewViewConfig.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {type ViewConfig} from '../../Renderer/shims/ReactNativeTypes'; import ReactNativeViewViewConfigAndroid from './ReactNativeViewViewConfigAndroid'; import {Platform} from 'react-native'; diff --git a/Libraries/Components/View/View.js b/Libraries/Components/View/View.js index 0fd0d938676..87545071913 100644 --- a/Libraries/Components/View/View.js +++ b/Libraries/Components/View/View.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ViewProps} from './ViewPropTypes'; const React = require('react'); diff --git a/Libraries/Components/View/ViewNativeComponent.js b/Libraries/Components/View/ViewNativeComponent.js index 16970ecda37..4ca5ec9cf3c 100644 --- a/Libraries/Components/View/ViewNativeComponent.js +++ b/Libraries/Components/View/ViewNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry'; import {type HostComponent} from '../../Renderer/shims/ReactNativeTypes'; import Platform from '../../Utilities/Platform'; diff --git a/Libraries/Core/Devtools/getDevServer.js b/Libraries/Core/Devtools/getDevServer.js index 97c7c72468c..d820a9ee5dc 100644 --- a/Libraries/Core/Devtools/getDevServer.js +++ b/Libraries/Core/Devtools/getDevServer.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - import NativeSourceCode from '../../NativeModules/specs/NativeSourceCode'; let _cachedDevServerURL: ?string; diff --git a/Libraries/Core/NativeExceptionsManager.js b/Libraries/Core/NativeExceptionsManager.js index 10b7b77e08e..3716edbd4c7 100644 --- a/Libraries/Core/NativeExceptionsManager.js +++ b/Libraries/Core/NativeExceptionsManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Core/ReactNativeVersionCheck.js b/Libraries/Core/ReactNativeVersionCheck.js index 5958842b30f..9536899f7dd 100644 --- a/Libraries/Core/ReactNativeVersionCheck.js +++ b/Libraries/Core/ReactNativeVersionCheck.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Platform from '../Utilities/Platform'; const ReactNativeVersion = require('./ReactNativeVersion'); diff --git a/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js b/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js index 8baeee3d4c1..e90abdf3aea 100644 --- a/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js +++ b/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Core/Timers/JSTimers.js b/Libraries/Core/Timers/JSTimers.js index 504daa5f446..c69c91b243e 100644 --- a/Libraries/Core/Timers/JSTimers.js +++ b/Libraries/Core/Timers/JSTimers.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const BatchedBridge = require('../../BatchedBridge/BatchedBridge'); const Systrace = require('../../Performance/Systrace'); diff --git a/Libraries/Core/Timers/NativeTiming.js b/Libraries/Core/Timers/NativeTiming.js index 53477dd6584..cc487a52a31 100644 --- a/Libraries/Core/Timers/NativeTiming.js +++ b/Libraries/Core/Timers/NativeTiming.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Core/setUpDeveloperTools.js b/Libraries/Core/setUpDeveloperTools.js index 3ee84d87273..9dc22072290 100644 --- a/Libraries/Core/setUpDeveloperTools.js +++ b/Libraries/Core/setUpDeveloperTools.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Platform from '../Utilities/Platform'; declare var console: typeof console & {_isPolyfilled: boolean, ...}; diff --git a/Libraries/EventEmitter/RCTDeviceEventEmitter.js b/Libraries/EventEmitter/RCTDeviceEventEmitter.js index 5fe2757a610..cfb778a5358 100644 --- a/Libraries/EventEmitter/RCTDeviceEventEmitter.js +++ b/Libraries/EventEmitter/RCTDeviceEventEmitter.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import EventEmitter from '../vendor/emitter/EventEmitter'; import type EmitterSubscription from '../vendor/emitter/_EmitterSubscription'; import EventSubscriptionVendor from '../vendor/emitter/_EventSubscriptionVendor'; diff --git a/Libraries/EventEmitter/RCTNativeAppEventEmitter.js b/Libraries/EventEmitter/RCTNativeAppEventEmitter.js index 0e3c4faf51c..9e7f4918450 100644 --- a/Libraries/EventEmitter/RCTNativeAppEventEmitter.js +++ b/Libraries/EventEmitter/RCTNativeAppEventEmitter.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import RCTDeviceEventEmitter from './RCTDeviceEventEmitter'; /** diff --git a/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js b/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js index fc303ff4e1a..fc010865138 100644 --- a/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +++ b/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import EventEmitter from '../../vendor/emitter/EventEmitter'; import RCTDeviceEventEmitter from '../RCTDeviceEventEmitter'; diff --git a/Libraries/HeapCapture/HeapCapture.js b/Libraries/HeapCapture/HeapCapture.js index d48368d8aa1..1e76fd2cb1b 100644 --- a/Libraries/HeapCapture/HeapCapture.js +++ b/Libraries/HeapCapture/HeapCapture.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - import NativeJSCHeapCapture from './NativeJSCHeapCapture'; const HeapCapture = { diff --git a/Libraries/HeapCapture/NativeJSCHeapCapture.js b/Libraries/HeapCapture/NativeJSCHeapCapture.js index 0605cd119e0..9a9b7abb0f0 100644 --- a/Libraries/HeapCapture/NativeJSCHeapCapture.js +++ b/Libraries/HeapCapture/NativeJSCHeapCapture.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Image/AssetUtils.js b/Libraries/Image/AssetUtils.js index 44c59ec5b85..a2f85473ffc 100644 --- a/Libraries/Image/AssetUtils.js +++ b/Libraries/Image/AssetUtils.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import PixelRatio from '../Utilities/PixelRatio'; let cacheBreaker; diff --git a/Libraries/Image/Image.android.js b/Libraries/Image/Image.android.js index 90b1a2652e7..08f81303528 100644 --- a/Libraries/Image/Image.android.js +++ b/Libraries/Image/Image.android.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const DeprecatedImageStylePropTypes = require('../DeprecatedPropTypes/DeprecatedImageStylePropTypes'); const DeprecatedStyleSheetPropType = require('../DeprecatedPropTypes/DeprecatedStyleSheetPropType'); const DeprecatedViewPropTypes = require('../DeprecatedPropTypes/DeprecatedViewPropTypes'); diff --git a/Libraries/Image/Image.ios.js b/Libraries/Image/Image.ios.js index 48b9c398717..8f8c63547dd 100644 --- a/Libraries/Image/Image.ios.js +++ b/Libraries/Image/Image.ios.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const DeprecatedImagePropType = require('../DeprecatedPropTypes/DeprecatedImagePropType'); const React = require('react'); const ReactNative = require('../Renderer/shims/ReactNative'); // eslint-disable-line no-unused-vars diff --git a/Libraries/Image/ImageAnalyticsTagContext.js b/Libraries/Image/ImageAnalyticsTagContext.js index 540ae6c02db..54d8b65a26b 100644 --- a/Libraries/Image/ImageAnalyticsTagContext.js +++ b/Libraries/Image/ImageAnalyticsTagContext.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; type ContextType = ?string; diff --git a/Libraries/Image/ImagePickerIOS.js b/Libraries/Image/ImagePickerIOS.js index a9127deaabf..1d7438f2b53 100644 --- a/Libraries/Image/ImagePickerIOS.js +++ b/Libraries/Image/ImagePickerIOS.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeImagePickerIOS from './NativeImagePickerIOS'; import invariant from 'invariant'; diff --git a/Libraries/Image/ImageViewNativeComponent.js b/Libraries/Image/ImageViewNativeComponent.js index b6ba39c8a16..7f26d89dcff 100644 --- a/Libraries/Image/ImageViewNativeComponent.js +++ b/Libraries/Image/ImageViewNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {ResolvedAssetSource} from './AssetSourceResolver'; import type {ImageProps} from './ImageProps'; import type {ViewProps} from '../Components/View/ViewPropTypes'; diff --git a/Libraries/Image/NativeImageEditor.js b/Libraries/Image/NativeImageEditor.js index c6fdc63f7d4..726bf2b0b9e 100644 --- a/Libraries/Image/NativeImageEditor.js +++ b/Libraries/Image/NativeImageEditor.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Image/NativeImageLoaderAndroid.js b/Libraries/Image/NativeImageLoaderAndroid.js index 5fc3d2709ac..c55fe6eb9d6 100644 --- a/Libraries/Image/NativeImageLoaderAndroid.js +++ b/Libraries/Image/NativeImageLoaderAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Image/NativeImageLoaderIOS.js b/Libraries/Image/NativeImageLoaderIOS.js index d0cf74846cf..cbebf34e2d1 100644 --- a/Libraries/Image/NativeImageLoaderIOS.js +++ b/Libraries/Image/NativeImageLoaderIOS.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Image/NativeImagePickerIOS.js b/Libraries/Image/NativeImagePickerIOS.js index fa64998c57b..8db58d407e2 100644 --- a/Libraries/Image/NativeImagePickerIOS.js +++ b/Libraries/Image/NativeImagePickerIOS.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Image/NativeImageStoreAndroid.js b/Libraries/Image/NativeImageStoreAndroid.js index 8ab6dc7c1a2..4f870f6c067 100644 --- a/Libraries/Image/NativeImageStoreAndroid.js +++ b/Libraries/Image/NativeImageStoreAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Image/NativeImageStoreIOS.js b/Libraries/Image/NativeImageStoreIOS.js index d94f1ef4f35..4b30843e9ca 100644 --- a/Libraries/Image/NativeImageStoreIOS.js +++ b/Libraries/Image/NativeImageStoreIOS.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Image/__tests__/AssetUtils-test.js b/Libraries/Image/__tests__/AssetUtils-test.js index c62e32d02c5..a5315293b9c 100644 --- a/Libraries/Image/__tests__/AssetUtils-test.js +++ b/Libraries/Image/__tests__/AssetUtils-test.js @@ -8,8 +8,6 @@ * @emails oncall+react_native */ -'use strict'; - import {getUrlCacheBreaker, setUrlCacheBreaker} from '../AssetUtils'; describe('AssetUtils', () => { diff --git a/Libraries/Image/nativeImageSource.js b/Libraries/Image/nativeImageSource.js index eaf3812d9c6..65a3169c50c 100644 --- a/Libraries/Image/nativeImageSource.js +++ b/Libraries/Image/nativeImageSource.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Platform from '../Utilities/Platform'; import type {ImageURISource} from './ImageSource'; diff --git a/Libraries/Interaction/FrameRateLogger.js b/Libraries/Interaction/FrameRateLogger.js index 434e962b027..cad15c2cac7 100644 --- a/Libraries/Interaction/FrameRateLogger.js +++ b/Libraries/Interaction/FrameRateLogger.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeFrameRateLogger from './NativeFrameRateLogger'; const invariant = require('invariant'); diff --git a/Libraries/Interaction/InteractionManager.js b/Libraries/Interaction/InteractionManager.js index c2bf262a401..c4ec9f4407f 100644 --- a/Libraries/Interaction/InteractionManager.js +++ b/Libraries/Interaction/InteractionManager.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const BatchedBridge = require('../BatchedBridge/BatchedBridge'); const TaskQueue = require('./TaskQueue'); diff --git a/Libraries/Interaction/InteractionMixin.js b/Libraries/Interaction/InteractionMixin.js index fcbd88f5a19..6c8356f3ec5 100644 --- a/Libraries/Interaction/InteractionMixin.js +++ b/Libraries/Interaction/InteractionMixin.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const InteractionManager = require('./InteractionManager'); import {type Handle} from './InteractionManager'; diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index 5dd517f4db3..d2de3d634b5 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeEventEmitter from '../EventEmitter/NativeEventEmitter'; import InteractionManager from '../Interaction/InteractionManager'; import Platform from '../Utilities/Platform'; diff --git a/Libraries/Linking/NativeIntentAndroid.js b/Libraries/Linking/NativeIntentAndroid.js index b5d61e975d4..7f045fd8f9c 100644 --- a/Libraries/Linking/NativeIntentAndroid.js +++ b/Libraries/Linking/NativeIntentAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Linking/NativeLinkingManager.js b/Libraries/Linking/NativeLinkingManager.js index 95a93817c32..2626ce0d3bc 100644 --- a/Libraries/Linking/NativeLinkingManager.js +++ b/Libraries/Linking/NativeLinkingManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index ed836c3dfde..19012b8c9e5 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const Platform = require('../Utilities/Platform'); const deepDiffer = require('../Utilities/differ/deepDiffer'); const React = require('react'); diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 78939ed26af..f57dfb9707a 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const Batchinator = require('../Interaction/Batchinator'); const FillRateHelper = require('./FillRateHelper'); const ReactNative = require('../Renderer/shims/ReactNative'); diff --git a/Libraries/Lists/VirtualizedListContext.js b/Libraries/Lists/VirtualizedListContext.js index eddb578ed71..b2f8d063dca 100644 --- a/Libraries/Lists/VirtualizedListContext.js +++ b/Libraries/Lists/VirtualizedListContext.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type VirtualizedList from './VirtualizedList.js'; import * as React from 'react'; import {useMemo, useContext} from 'react'; diff --git a/Libraries/LogBox/Data/LogBoxLog.js b/Libraries/LogBox/Data/LogBoxLog.js index 2d019518306..1617ba282ad 100644 --- a/Libraries/LogBox/Data/LogBoxLog.js +++ b/Libraries/LogBox/Data/LogBoxLog.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as LogBoxSymbolication from './LogBoxSymbolication'; import type { diff --git a/Libraries/LogBox/Data/LogBoxSymbolication.js b/Libraries/LogBox/Data/LogBoxSymbolication.js index 2ed86cc0420..36f6d8146bb 100644 --- a/Libraries/LogBox/Data/LogBoxSymbolication.js +++ b/Libraries/LogBox/Data/LogBoxSymbolication.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import symbolicateStackTrace from '../../Core/Devtools/symbolicateStackTrace'; import type {StackFrame} from '../../Core/NativeExceptionsManager'; diff --git a/Libraries/LogBox/Data/parseLogBoxLog.js b/Libraries/LogBox/Data/parseLogBoxLog.js index e9021e9b419..df75479bb5d 100644 --- a/Libraries/LogBox/Data/parseLogBoxLog.js +++ b/Libraries/LogBox/Data/parseLogBoxLog.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import UTFSequence from '../../UTFSequence'; import stringifySafe from '../../Utilities/stringifySafe'; import type {ExceptionData} from '../../Core/NativeExceptionsManager'; diff --git a/Libraries/LogBox/LogBox.js b/Libraries/LogBox/LogBox.js index e2754504c12..4e85842249c 100644 --- a/Libraries/LogBox/LogBox.js +++ b/Libraries/LogBox/LogBox.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Platform from '../Utilities/Platform'; import RCTLog from '../Utilities/RCTLog'; diff --git a/Libraries/LogBox/LogBoxInspectorContainer.js b/Libraries/LogBox/LogBoxInspectorContainer.js index 35f19628810..bb7fb4916cf 100644 --- a/Libraries/LogBox/LogBoxInspectorContainer.js +++ b/Libraries/LogBox/LogBoxInspectorContainer.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import {View, StyleSheet} from 'react-native'; import * as LogBoxData from './Data/LogBoxData'; diff --git a/Libraries/LogBox/LogBoxNotificationContainer.js b/Libraries/LogBox/LogBoxNotificationContainer.js index bc5237560a4..51f78fb7256 100644 --- a/Libraries/LogBox/LogBoxNotificationContainer.js +++ b/Libraries/LogBox/LogBoxNotificationContainer.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import StyleSheet from '../StyleSheet/StyleSheet'; import View from '../Components/View/View'; diff --git a/Libraries/LogBox/UI/LogBoxButton.js b/Libraries/LogBox/UI/LogBoxButton.js index 9fd149638fe..12f5845afc6 100644 --- a/Libraries/LogBox/UI/LogBoxButton.js +++ b/Libraries/LogBox/UI/LogBoxButton.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import TouchableWithoutFeedback from '../../Components/Touchable/TouchableWithoutFeedback'; diff --git a/Libraries/LogBox/UI/LogBoxInspector.js b/Libraries/LogBox/UI/LogBoxInspector.js index 68c591f11e3..d67a25ee3f6 100644 --- a/Libraries/LogBox/UI/LogBoxInspector.js +++ b/Libraries/LogBox/UI/LogBoxInspector.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import LogBoxInspectorCodeFrame from './LogBoxInspectorCodeFrame'; import * as React from 'react'; import ScrollView from '../../Components/ScrollView/ScrollView'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js b/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js index 2c4e1036a17..f9af7848e3c 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +++ b/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import Platform from '../../Utilities/Platform'; import ScrollView from '../../Components/ScrollView/ScrollView'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorFooter.js b/Libraries/LogBox/UI/LogBoxInspectorFooter.js index f0013f5fa89..fbb16682300 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorFooter.js +++ b/Libraries/LogBox/UI/LogBoxInspectorFooter.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {LogLevel} from '../Data/LogBoxLog'; import * as React from 'react'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorHeader.js b/Libraries/LogBox/UI/LogBoxInspectorHeader.js index be3db862b60..8ad4aa2d6f5 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorHeader.js +++ b/Libraries/LogBox/UI/LogBoxInspectorHeader.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Image from '../../Image/Image'; import Platform from '../../Utilities/Platform'; import * as React from 'react'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js b/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js index 991417e230f..5fde1f3d841 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +++ b/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import Text from '../../Text/Text'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js b/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js index 45f9574c554..dd47dda5ea0 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +++ b/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import Platform from '../../Utilities/Platform'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorSection.js b/Libraries/LogBox/UI/LogBoxInspectorSection.js index 896bccc7c73..28c2b1e1d49 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorSection.js +++ b/Libraries/LogBox/UI/LogBoxInspectorSection.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import Text from '../../Text/Text'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js b/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js index 4327ac8e068..15f24ed326b 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +++ b/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Animated from '../../Animated/Animated'; import Easing from '../../Animated/Easing'; import * as React from 'react'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js b/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js index c87feb08006..dc6208930b6 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +++ b/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import Text from '../../Text/Text'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js b/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js index e1fe8b2159b..40366775594 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +++ b/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import Text from '../../Text/Text'; diff --git a/Libraries/LogBox/UI/LogBoxMessage.js b/Libraries/LogBox/UI/LogBoxMessage.js index dd300c12a02..155fa468a30 100644 --- a/Libraries/LogBox/UI/LogBoxMessage.js +++ b/Libraries/LogBox/UI/LogBoxMessage.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import Text from '../../Text/Text'; diff --git a/Libraries/LogBox/UI/LogBoxNotification.js b/Libraries/LogBox/UI/LogBoxNotification.js index 26264ecb5e1..695a2f71f16 100644 --- a/Libraries/LogBox/UI/LogBoxNotification.js +++ b/Libraries/LogBox/UI/LogBoxNotification.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import Image from '../../Image/Image'; import StyleSheet from '../../StyleSheet/StyleSheet'; diff --git a/Libraries/LogBox/UI/LogBoxStyle.js b/Libraries/LogBox/UI/LogBoxStyle.js index c01f8cb7f31..ae0bc97c743 100644 --- a/Libraries/LogBox/UI/LogBoxStyle.js +++ b/Libraries/LogBox/UI/LogBoxStyle.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - export function getBackgroundColor(opacity?: number): string { return `rgba(51, 51, 51, ${opacity == null ? 1 : opacity})`; } diff --git a/Libraries/LogBox/UI/__tests__/LogBoxButton-test.js b/Libraries/LogBox/UI/__tests__/LogBoxButton-test.js index f2d537b8aea..5ffe42c0a50 100644 --- a/Libraries/LogBox/UI/__tests__/LogBoxButton-test.js +++ b/Libraries/LogBox/UI/__tests__/LogBoxButton-test.js @@ -9,8 +9,6 @@ * @flow strict-local */ -'use strict'; - const React = require('react'); const LogBoxButton = require('../LogBoxButton').default; const render = require('../../../../jest/renderer'); diff --git a/Libraries/LogBox/UI/__tests__/LogBoxInspectorSection-test.js b/Libraries/LogBox/UI/__tests__/LogBoxInspectorSection-test.js index 4ad2b5d9d01..6d41ee7e2c8 100644 --- a/Libraries/LogBox/UI/__tests__/LogBoxInspectorSection-test.js +++ b/Libraries/LogBox/UI/__tests__/LogBoxInspectorSection-test.js @@ -9,8 +9,6 @@ * @flow strict-local */ -'use strict'; - const React = require('react'); import Text from '../../../Text/Text'; const LogBoxInspectorSection = require('../LogBoxInspectorSection').default; diff --git a/Libraries/LogBox/UI/__tests__/LogBoxInspectorStackFrames-test.js b/Libraries/LogBox/UI/__tests__/LogBoxInspectorStackFrames-test.js index 96e4f3e88e2..8540f4543dc 100644 --- a/Libraries/LogBox/UI/__tests__/LogBoxInspectorStackFrames-test.js +++ b/Libraries/LogBox/UI/__tests__/LogBoxInspectorStackFrames-test.js @@ -9,8 +9,6 @@ * @flow strict-local */ -'use strict'; - const React = require('react'); import LogBoxInspectorStackFrames, { getCollapseMessage, diff --git a/Libraries/LogBox/__tests__/LogBox-integration-test.js b/Libraries/LogBox/__tests__/LogBox-integration-test.js index 8a02754df3d..22355633c8e 100644 --- a/Libraries/LogBox/__tests__/LogBox-integration-test.js +++ b/Libraries/LogBox/__tests__/LogBox-integration-test.js @@ -8,8 +8,6 @@ * @emails oncall+react_native */ -'use strict'; - const LogBoxData = require('../Data/LogBoxData'); const TestRenderer = require('react-test-renderer'); diff --git a/Libraries/LogBox/__tests__/__fixtures__/ReactWarningFixtures.js b/Libraries/LogBox/__tests__/__fixtures__/ReactWarningFixtures.js index f8962098c64..2b6c1573e70 100644 --- a/Libraries/LogBox/__tests__/__fixtures__/ReactWarningFixtures.js +++ b/Libraries/LogBox/__tests__/__fixtures__/ReactWarningFixtures.js @@ -8,8 +8,6 @@ * @emails oncall+react_native */ -'use strict'; - import {Text} from 'react-native'; import * as React from 'react'; diff --git a/Libraries/Modal/Modal.js b/Libraries/Modal/Modal.js index 9d1810741c2..8cdb52cb439 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const AppContainer = require('../ReactNative/AppContainer'); const I18nManager = require('../ReactNative/I18nManager'); import NativeEventEmitter from '../EventEmitter/NativeEventEmitter'; diff --git a/Libraries/Modal/NativeModalManager.js b/Libraries/Modal/NativeModalManager.js index 05fc5b2c73c..a64b677eb73 100644 --- a/Libraries/Modal/NativeModalManager.js +++ b/Libraries/Modal/NativeModalManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Modal/RCTModalHostViewNativeComponent.js b/Libraries/Modal/RCTModalHostViewNativeComponent.js index 7d8151eae25..53b28adeca7 100644 --- a/Libraries/Modal/RCTModalHostViewNativeComponent.js +++ b/Libraries/Modal/RCTModalHostViewNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import codegenNativeComponent from '../Utilities/codegenNativeComponent'; import type {HostComponent} from '../Renderer/shims/ReactNativeTypes'; import type { diff --git a/Libraries/NativeComponent/NativeComponentRegistry.js b/Libraries/NativeComponent/NativeComponentRegistry.js index 242cee6ddbd..59ee8e9fe15 100644 --- a/Libraries/NativeComponent/NativeComponentRegistry.js +++ b/Libraries/NativeComponent/NativeComponentRegistry.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {createViewConfig} from './ViewConfig'; import UIManager from '../ReactNative/UIManager'; import type { diff --git a/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js b/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js index 55c24c1f9d1..5f826cd8bdd 100644 --- a/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js +++ b/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/NativeModules/specs/NativeDevMenu.js b/Libraries/NativeModules/specs/NativeDevMenu.js index 20b858a1c7d..f2e32cd595b 100644 --- a/Libraries/NativeModules/specs/NativeDevMenu.js +++ b/Libraries/NativeModules/specs/NativeDevMenu.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/NativeModules/specs/NativeDevSettings.js b/Libraries/NativeModules/specs/NativeDevSettings.js index 44acbd3a50b..800820745e3 100644 --- a/Libraries/NativeModules/specs/NativeDevSettings.js +++ b/Libraries/NativeModules/specs/NativeDevSettings.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/NativeModules/specs/NativeDeviceEventManager.js b/Libraries/NativeModules/specs/NativeDeviceEventManager.js index 775767e7275..ca0a0863bcc 100644 --- a/Libraries/NativeModules/specs/NativeDeviceEventManager.js +++ b/Libraries/NativeModules/specs/NativeDeviceEventManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js b/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js index fcc476b3419..f24c2cf8238 100644 --- a/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js +++ b/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/NativeModules/specs/NativeLogBox.js b/Libraries/NativeModules/specs/NativeLogBox.js index 782d1b078d4..bdf4f09ce4c 100644 --- a/Libraries/NativeModules/specs/NativeLogBox.js +++ b/Libraries/NativeModules/specs/NativeLogBox.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/Libraries/NativeModules/specs/NativeRedBox.js b/Libraries/NativeModules/specs/NativeRedBox.js index 469465e3436..6df25078c36 100644 --- a/Libraries/NativeModules/specs/NativeRedBox.js +++ b/Libraries/NativeModules/specs/NativeRedBox.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/NativeModules/specs/NativeSourceCode.js b/Libraries/NativeModules/specs/NativeSourceCode.js index b1fb30fc292..5b4f8342de6 100644 --- a/Libraries/NativeModules/specs/NativeSourceCode.js +++ b/Libraries/NativeModules/specs/NativeSourceCode.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Network/NativeNetworkingAndroid.js b/Libraries/Network/NativeNetworkingAndroid.js index 3d65967736d..293d74afe89 100644 --- a/Libraries/Network/NativeNetworkingAndroid.js +++ b/Libraries/Network/NativeNetworkingAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Network/NativeNetworkingIOS.js b/Libraries/Network/NativeNetworkingIOS.js index 59b3da849a9..45d00320349 100644 --- a/Libraries/Network/NativeNetworkingIOS.js +++ b/Libraries/Network/NativeNetworkingIOS.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Network/RCTNetworking.android.js b/Libraries/Network/RCTNetworking.android.js index 87334689cae..67a2be5dc71 100644 --- a/Libraries/Network/RCTNetworking.android.js +++ b/Libraries/Network/RCTNetworking.android.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - // Do not require the native RCTNetworking module directly! Use this wrapper module instead. // It will add the necessary requestId, so that you don't have to generate it yourself. import NativeEventEmitter from '../EventEmitter/NativeEventEmitter'; diff --git a/Libraries/Network/__tests__/XMLHttpRequest-test.js b/Libraries/Network/__tests__/XMLHttpRequest-test.js index a708bdf844f..91d2ce1e252 100644 --- a/Libraries/Network/__tests__/XMLHttpRequest-test.js +++ b/Libraries/Network/__tests__/XMLHttpRequest-test.js @@ -8,8 +8,6 @@ * @emails oncall+react_native */ -'use strict'; - import createPerformanceLogger from '../../Utilities/createPerformanceLogger'; jest.unmock('../../Utilities/Platform'); diff --git a/Libraries/NewAppScreen/components/Colors.js b/Libraries/NewAppScreen/components/Colors.js index 471751de758..4179617bf64 100644 --- a/Libraries/NewAppScreen/components/Colors.js +++ b/Libraries/NewAppScreen/components/Colors.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - export default { primary: '#1292B4', white: '#FFF', diff --git a/Libraries/NewAppScreen/components/Header.js b/Libraries/NewAppScreen/components/Header.js index 541a51ebf64..860ca274336 100644 --- a/Libraries/NewAppScreen/components/Header.js +++ b/Libraries/NewAppScreen/components/Header.js @@ -8,7 +8,6 @@ * @format */ -'use strict'; import type {Node} from 'react'; import {ImageBackground, StyleSheet, Text, useColorScheme} from 'react-native'; import React from 'react'; diff --git a/Libraries/NewAppScreen/components/LearnMoreLinks.js b/Libraries/NewAppScreen/components/LearnMoreLinks.js index 9e12acc8ead..ab69dd888bc 100644 --- a/Libraries/NewAppScreen/components/LearnMoreLinks.js +++ b/Libraries/NewAppScreen/components/LearnMoreLinks.js @@ -8,7 +8,6 @@ * @format */ -'use strict'; import Colors from './Colors'; import type {Node} from 'react'; import openURLInBrowser from 'react-native/Libraries/Core/Devtools/openURLInBrowser'; diff --git a/Libraries/NewAppScreen/index.js b/Libraries/NewAppScreen/index.js index 9da6d362b32..fc7d7315f0b 100644 --- a/Libraries/NewAppScreen/index.js +++ b/Libraries/NewAppScreen/index.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Colors from './components/Colors'; import Header from './components/Header'; import HermesBadge from './components/HermesBadge'; diff --git a/Libraries/Performance/NativeJSCSamplingProfiler.js b/Libraries/Performance/NativeJSCSamplingProfiler.js index 9ef08c96159..4925e79d442 100644 --- a/Libraries/Performance/NativeJSCSamplingProfiler.js +++ b/Libraries/Performance/NativeJSCSamplingProfiler.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/PermissionsAndroid/NativePermissionsAndroid.js b/Libraries/PermissionsAndroid/NativePermissionsAndroid.js index 2e834fc725c..66596f9e97d 100644 --- a/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/NativePermissionsAndroid.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/PermissionsAndroid/PermissionsAndroid.js b/Libraries/PermissionsAndroid/PermissionsAndroid.js index d99ccd5ec83..9bb2a12c08d 100644 --- a/Libraries/PermissionsAndroid/PermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/PermissionsAndroid.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - const Platform = require('../Utilities/Platform'); import NativeDialogManagerAndroid from '../NativeModules/specs/NativeDialogManagerAndroid'; diff --git a/Libraries/Pressability/HoverState.js b/Libraries/Pressability/HoverState.js index ab9febf2b36..43e9aef50af 100644 --- a/Libraries/Pressability/HoverState.js +++ b/Libraries/Pressability/HoverState.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Platform from '../Utilities/Platform'; let isEnabled = false; diff --git a/Libraries/Pressability/Pressability.js b/Libraries/Pressability/Pressability.js index 17dae80c59c..041c589cf9b 100644 --- a/Libraries/Pressability/Pressability.js +++ b/Libraries/Pressability/Pressability.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {isHoverEnabled} from './HoverState'; import invariant from 'invariant'; import SoundManager from '../Components/Sound/SoundManager'; diff --git a/Libraries/Pressability/PressabilityDebug.js b/Libraries/Pressability/PressabilityDebug.js index 9b693dfd43e..27017a47608 100644 --- a/Libraries/Pressability/PressabilityDebug.js +++ b/Libraries/Pressability/PressabilityDebug.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import normalizeColor from '../StyleSheet/normalizeColor'; import type {ColorValue} from '../StyleSheet/StyleSheet'; diff --git a/Libraries/Pressability/__tests__/Pressability-test.js b/Libraries/Pressability/__tests__/Pressability-test.js index b0be50280ee..2740eeb360e 100644 --- a/Libraries/Pressability/__tests__/Pressability-test.js +++ b/Libraries/Pressability/__tests__/Pressability-test.js @@ -9,8 +9,6 @@ * @flow strict-local */ -'use strict'; - import type {PressEvent} from '../../Types/CoreEventTypes'; import * as HoverState from '../HoverState'; import Pressability from '../Pressability'; diff --git a/Libraries/Pressability/usePressability.js b/Libraries/Pressability/usePressability.js index 9ed4cc22197..605a9d8c406 100644 --- a/Libraries/Pressability/usePressability.js +++ b/Libraries/Pressability/usePressability.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import Pressability, { type EventHandlers, type PressabilityConfig, diff --git a/Libraries/PushNotificationIOS/PushNotificationIOS.js b/Libraries/PushNotificationIOS/PushNotificationIOS.js index 85ebf4b4ffc..c8c8e535ea4 100644 --- a/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import NativeEventEmitter from '../EventEmitter/NativeEventEmitter'; import NativePushNotificationManagerIOS from './NativePushNotificationManagerIOS'; import invariant from 'invariant'; diff --git a/Libraries/ReactNative/AppContainer.js b/Libraries/ReactNative/AppContainer.js index 68dd3169dd6..fb9263f6235 100644 --- a/Libraries/ReactNative/AppContainer.js +++ b/Libraries/ReactNative/AppContainer.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import View from '../Components/View/View'; import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter'; import StyleSheet from '../StyleSheet/StyleSheet'; diff --git a/Libraries/ReactNative/AppRegistry.js b/Libraries/ReactNative/AppRegistry.js index 389b2f5240f..c08d003ac05 100644 --- a/Libraries/ReactNative/AppRegistry.js +++ b/Libraries/ReactNative/AppRegistry.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const BatchedBridge = require('../BatchedBridge/BatchedBridge'); const BugReporting = require('../BugReporting/BugReporting'); const ReactNative = require('../Renderer/shims/ReactNative'); diff --git a/Libraries/ReactNative/HeadlessJsTaskError.js b/Libraries/ReactNative/HeadlessJsTaskError.js index 18789932b04..877ed3c9b73 100644 --- a/Libraries/ReactNative/HeadlessJsTaskError.js +++ b/Libraries/ReactNative/HeadlessJsTaskError.js @@ -8,6 +8,4 @@ * @format */ -'use strict'; - export default class HeadlessJsTaskError extends Error {} diff --git a/Libraries/ReactNative/I18nManager.js b/Libraries/ReactNative/I18nManager.js index 8fc7bce6c04..7c3dcd62318 100644 --- a/Libraries/ReactNative/I18nManager.js +++ b/Libraries/ReactNative/I18nManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import NativeI18nManager from './NativeI18nManager'; const i18nConstants: {| diff --git a/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js b/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js index 45f25deb211..de7c9912c1b 100644 --- a/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js +++ b/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/ReactNative/NativeI18nManager.js b/Libraries/ReactNative/NativeI18nManager.js index 28933d510b3..608eb679e70 100644 --- a/Libraries/ReactNative/NativeI18nManager.js +++ b/Libraries/ReactNative/NativeI18nManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/ReactNative/NativeUIManager.js b/Libraries/ReactNative/NativeUIManager.js index 30e2d1f2c7d..53fa251eed9 100644 --- a/Libraries/ReactNative/NativeUIManager.js +++ b/Libraries/ReactNative/NativeUIManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/ReactNative/PaperUIManager.js b/Libraries/ReactNative/PaperUIManager.js index 92f59e0a208..ce4a457caf1 100644 --- a/Libraries/ReactNative/PaperUIManager.js +++ b/Libraries/ReactNative/PaperUIManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const NativeModules = require('../BatchedBridge/NativeModules'); const Platform = require('../Utilities/Platform'); const UIManagerProperties = require('./UIManagerProperties'); diff --git a/Libraries/ReactNative/RootTag.js b/Libraries/ReactNative/RootTag.js index e36cafd5744..0470e42487e 100644 --- a/Libraries/ReactNative/RootTag.js +++ b/Libraries/ReactNative/RootTag.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; // TODO: Make this into an opaque type. diff --git a/Libraries/ReactNative/UIManager.js b/Libraries/ReactNative/UIManager.js index d25d3040d45..668961338d2 100644 --- a/Libraries/ReactNative/UIManager.js +++ b/Libraries/ReactNative/UIManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import UIManagerInjection from './UIManagerInjection'; import type {Spec} from './NativeUIManager'; diff --git a/Libraries/ReactNative/UIManagerInjection.js b/Libraries/ReactNative/UIManagerInjection.js index 2df06b2ecc6..00a16ac0457 100644 --- a/Libraries/ReactNative/UIManagerInjection.js +++ b/Libraries/ReactNative/UIManagerInjection.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - export default { unstable_UIManager: (null: ?any), }; diff --git a/Libraries/ReactNative/renderApplication.js b/Libraries/ReactNative/renderApplication.js index 8b39b288f64..747b8ac36f2 100644 --- a/Libraries/ReactNative/renderApplication.js +++ b/Libraries/ReactNative/renderApplication.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const AppContainer = require('./AppContainer'); import GlobalPerformanceLogger from '../Utilities/GlobalPerformanceLogger'; import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger'; diff --git a/Libraries/Renderer/shims/ReactFabric.js b/Libraries/Renderer/shims/ReactFabric.js index 536ce9a6f30..31edc17fd5e 100644 --- a/Libraries/Renderer/shims/ReactFabric.js +++ b/Libraries/Renderer/shims/ReactFabric.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import {BatchedBridge} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface'; // TODO @sema: Adjust types diff --git a/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js b/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js index 194a91e31ae..0b3b8cc3d01 100644 --- a/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +++ b/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import {type ViewConfig} from './ReactNativeTypes'; import invariant from 'invariant'; diff --git a/Libraries/Renderer/shims/createReactNativeComponentClass.js b/Libraries/Renderer/shims/createReactNativeComponentClass.js index f8f4c9284e4..0f893dfd24a 100644 --- a/Libraries/Renderer/shims/createReactNativeComponentClass.js +++ b/Libraries/Renderer/shims/createReactNativeComponentClass.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import {ReactNativeViewConfigRegistry} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface'; import {type ViewConfig} from './ReactNativeTypes'; diff --git a/Libraries/Settings/NativeSettingsManager.js b/Libraries/Settings/NativeSettingsManager.js index 1edd6187218..bd03861d0c8 100644 --- a/Libraries/Settings/NativeSettingsManager.js +++ b/Libraries/Settings/NativeSettingsManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Settings/Settings.ios.js b/Libraries/Settings/Settings.ios.js index cac0b3babd7..28609d25286 100644 --- a/Libraries/Settings/Settings.ios.js +++ b/Libraries/Settings/Settings.ios.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter'; import NativeSettingsManager from './NativeSettingsManager'; import invariant from 'invariant'; diff --git a/Libraries/Share/NativeShareModule.js b/Libraries/Share/NativeShareModule.js index 08d313d76d7..f8ca82a00dc 100644 --- a/Libraries/Share/NativeShareModule.js +++ b/Libraries/Share/NativeShareModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Share/Share.js b/Libraries/Share/Share.js index 5dad4772b7e..a971d20014d 100644 --- a/Libraries/Share/Share.js +++ b/Libraries/Share/Share.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const Platform = require('../Utilities/Platform'); const invariant = require('invariant'); diff --git a/Libraries/Storage/AsyncStorage.js b/Libraries/Storage/AsyncStorage.js index a4fcfd70a98..15080dbc42c 100644 --- a/Libraries/Storage/AsyncStorage.js +++ b/Libraries/Storage/AsyncStorage.js @@ -9,8 +9,6 @@ * @jsdoc */ -'use strict'; - import NativeAsyncLocalStorage from './NativeAsyncLocalStorage'; import NativeAsyncSQLiteDBStorage from './NativeAsyncSQLiteDBStorage'; import invariant from 'invariant'; diff --git a/Libraries/Storage/NativeAsyncLocalStorage.js b/Libraries/Storage/NativeAsyncLocalStorage.js index 39502dde329..bc66d23b8cc 100644 --- a/Libraries/Storage/NativeAsyncLocalStorage.js +++ b/Libraries/Storage/NativeAsyncLocalStorage.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Storage/NativeAsyncSQLiteDBStorage.js b/Libraries/Storage/NativeAsyncSQLiteDBStorage.js index d3431643370..519b1486565 100644 --- a/Libraries/Storage/NativeAsyncSQLiteDBStorage.js +++ b/Libraries/Storage/NativeAsyncSQLiteDBStorage.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/StyleSheet/PlatformColorValueTypes.android.js b/Libraries/StyleSheet/PlatformColorValueTypes.android.js index 82e7e55ec12..5985af468f8 100644 --- a/Libraries/StyleSheet/PlatformColorValueTypes.android.js +++ b/Libraries/StyleSheet/PlatformColorValueTypes.android.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ColorValue} from './StyleSheet'; import type {ProcessedColorValue} from './processColor'; diff --git a/Libraries/StyleSheet/PlatformColorValueTypes.ios.js b/Libraries/StyleSheet/PlatformColorValueTypes.ios.js index d2707ed5dfb..883f86e97cd 100644 --- a/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +++ b/Libraries/StyleSheet/PlatformColorValueTypes.ios.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ColorValue} from './StyleSheet'; import type {ProcessedColorValue} from './processColor'; diff --git a/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js b/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js index ebdbc7a078a..c9835a0ce14 100644 --- a/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +++ b/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ColorValue} from './StyleSheet'; import {DynamicColorIOSPrivate} from './PlatformColorValueTypes'; diff --git a/Libraries/StyleSheet/PlatformColorValueTypesIOS.js b/Libraries/StyleSheet/PlatformColorValueTypesIOS.js index a7f27e53e50..cfdf4ae0c0a 100644 --- a/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +++ b/Libraries/StyleSheet/PlatformColorValueTypesIOS.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ColorValue} from './StyleSheet'; export type DynamicColorIOSTuple = { diff --git a/Libraries/StyleSheet/Rect.js b/Libraries/StyleSheet/Rect.js index 164909c74d2..24a4281eda2 100644 --- a/Libraries/StyleSheet/Rect.js +++ b/Libraries/StyleSheet/Rect.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - export type Rect = $ReadOnly<{| bottom?: ?number, left?: ?number, diff --git a/Libraries/StyleSheet/normalizeColor.js b/Libraries/StyleSheet/normalizeColor.js index 94187dfa9fc..4ba0dae0085 100755 --- a/Libraries/StyleSheet/normalizeColor.js +++ b/Libraries/StyleSheet/normalizeColor.js @@ -10,8 +10,6 @@ /* eslint no-bitwise: 0 */ -'use strict'; - import normalizeColorBase from '@react-native/normalize-color/base'; import type {ColorValue} from './StyleSheet'; diff --git a/Libraries/StyleSheet/splitLayoutProps.js b/Libraries/StyleSheet/splitLayoutProps.js index 491da11c45f..7a13e04d44b 100644 --- a/Libraries/StyleSheet/splitLayoutProps.js +++ b/Libraries/StyleSheet/splitLayoutProps.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {____ViewStyle_Internal} from './StyleSheetTypes'; export default function splitLayoutProps( diff --git a/Libraries/Text/TextInjection.js b/Libraries/Text/TextInjection.js index 0297aa2d073..fc652bea12a 100644 --- a/Libraries/Text/TextInjection.js +++ b/Libraries/Text/TextInjection.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import typeof Text from './Text'; export default { diff --git a/Libraries/Text/TextNativeComponent.js b/Libraries/Text/TextNativeComponent.js index 58edbf595ec..858aaba750f 100644 --- a/Libraries/Text/TextNativeComponent.js +++ b/Libraries/Text/TextNativeComponent.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import ReactNativeViewAttributes from '../Components/View/ReactNativeViewAttributes'; import UIManager from '../ReactNative/UIManager'; import {type HostComponent} from '../Renderer/shims/ReactNativeTypes'; diff --git a/Libraries/TurboModule/TurboModuleRegistry.js b/Libraries/TurboModule/TurboModuleRegistry.js index 4fef584bb13..105089391ce 100644 --- a/Libraries/TurboModule/TurboModuleRegistry.js +++ b/Libraries/TurboModule/TurboModuleRegistry.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const NativeModules = require('../BatchedBridge/NativeModules'); import type {TurboModule} from './RCTExport'; import invariant from 'invariant'; diff --git a/Libraries/TurboModule/samples/NativeSampleTurboModule.js b/Libraries/TurboModule/samples/NativeSampleTurboModule.js index d240c4ad3ab..8b5b39eba18 100644 --- a/Libraries/TurboModule/samples/NativeSampleTurboModule.js +++ b/Libraries/TurboModule/samples/NativeSampleTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {UnsafeObject} from '../../Types/CodegenTypes'; import type {RootTag, TurboModule} from '../RCTExport'; import * as TurboModuleRegistry from '../TurboModuleRegistry'; diff --git a/Libraries/Types/CoreEventTypes.js b/Libraries/Types/CoreEventTypes.js index 906219cd75d..a49b3b583ea 100644 --- a/Libraries/Types/CoreEventTypes.js +++ b/Libraries/Types/CoreEventTypes.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import type {HostComponent} from '../Renderer/shims/ReactNativeTypes'; diff --git a/Libraries/Utilities/Appearance.js b/Libraries/Utilities/Appearance.js index 09a385d88e7..e6a4f9b7849 100644 --- a/Libraries/Utilities/Appearance.js +++ b/Libraries/Utilities/Appearance.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import EventEmitter from '../vendor/emitter/EventEmitter'; import NativeEventEmitter from '../EventEmitter/NativeEventEmitter'; import NativeAppearance, { diff --git a/Libraries/Utilities/BackHandler.android.js b/Libraries/Utilities/BackHandler.android.js index efb07ec5918..b4c14b1d783 100644 --- a/Libraries/Utilities/BackHandler.android.js +++ b/Libraries/Utilities/BackHandler.android.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import NativeDeviceEventManager from '../../Libraries/NativeModules/specs/NativeDeviceEventManager'; import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter'; diff --git a/Libraries/Utilities/DebugEnvironment.js b/Libraries/Utilities/DebugEnvironment.js index 3ec4eeaa491..2d432b6658e 100644 --- a/Libraries/Utilities/DebugEnvironment.js +++ b/Libraries/Utilities/DebugEnvironment.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - export let isAsyncDebugging: boolean = false; if (__DEV__) { diff --git a/Libraries/Utilities/DeviceInfo.js b/Libraries/Utilities/DeviceInfo.js index c3f59c5e88b..8274c109ff2 100644 --- a/Libraries/Utilities/DeviceInfo.js +++ b/Libraries/Utilities/DeviceInfo.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeDeviceInfo from './NativeDeviceInfo'; module.exports = NativeDeviceInfo; diff --git a/Libraries/Utilities/Dimensions.js b/Libraries/Utilities/Dimensions.js index d07cdddd625..d396e690482 100644 --- a/Libraries/Utilities/Dimensions.js +++ b/Libraries/Utilities/Dimensions.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import EventEmitter from '../vendor/emitter/EventEmitter'; import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter'; import NativeDeviceInfo, { diff --git a/Libraries/Utilities/GlobalPerformanceLogger.js b/Libraries/Utilities/GlobalPerformanceLogger.js index a186af3ecb7..66806926d5e 100644 --- a/Libraries/Utilities/GlobalPerformanceLogger.js +++ b/Libraries/Utilities/GlobalPerformanceLogger.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import createPerformanceLogger from './createPerformanceLogger'; import type {IPerformanceLogger} from './createPerformanceLogger'; diff --git a/Libraries/Utilities/HMRClient.js b/Libraries/Utilities/HMRClient.js index 6829fe87b89..e50b41eaebf 100644 --- a/Libraries/Utilities/HMRClient.js +++ b/Libraries/Utilities/HMRClient.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const DevSettings = require('./DevSettings'); const invariant = require('invariant'); const MetroHMRClient = require('metro-runtime/src/modules/HMRClient'); diff --git a/Libraries/Utilities/JSDevSupportModule.js b/Libraries/Utilities/JSDevSupportModule.js index 9e6d60dce01..396f1a2fb81 100644 --- a/Libraries/Utilities/JSDevSupportModule.js +++ b/Libraries/Utilities/JSDevSupportModule.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeJSDevSupport from './NativeJSDevSupport'; const ReactNative = require('../Renderer/shims/ReactNative'); diff --git a/Libraries/Utilities/LoadingView.android.js b/Libraries/Utilities/LoadingView.android.js index fc18394b144..ae369ccf860 100644 --- a/Libraries/Utilities/LoadingView.android.js +++ b/Libraries/Utilities/LoadingView.android.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import ToastAndroid from '../Components/ToastAndroid/ToastAndroid'; const TOAST_SHORT_DELAY = 2000; diff --git a/Libraries/Utilities/LoadingView.ios.js b/Libraries/Utilities/LoadingView.ios.js index bc423a822ae..0a0ebaeda02 100644 --- a/Libraries/Utilities/LoadingView.ios.js +++ b/Libraries/Utilities/LoadingView.ios.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import processColor from '../StyleSheet/processColor'; import NativeDevLoadingView from './NativeDevLoadingView'; import Appearance from './Appearance'; diff --git a/Libraries/Utilities/NativeAppearance.js b/Libraries/Utilities/NativeAppearance.js index 1f85cc30284..573bb96360a 100644 --- a/Libraries/Utilities/NativeAppearance.js +++ b/Libraries/Utilities/NativeAppearance.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Utilities/NativeDevLoadingView.js b/Libraries/Utilities/NativeDevLoadingView.js index a122e2c487d..8838f54d8da 100644 --- a/Libraries/Utilities/NativeDevLoadingView.js +++ b/Libraries/Utilities/NativeDevLoadingView.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Utilities/NativeDevSplitBundleLoader.js b/Libraries/Utilities/NativeDevSplitBundleLoader.js index 987d47a5330..5caa97a235a 100644 --- a/Libraries/Utilities/NativeDevSplitBundleLoader.js +++ b/Libraries/Utilities/NativeDevSplitBundleLoader.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Utilities/NativeDeviceInfo.js b/Libraries/Utilities/NativeDeviceInfo.js index 840b754414c..854fc966b9f 100644 --- a/Libraries/Utilities/NativeDeviceInfo.js +++ b/Libraries/Utilities/NativeDeviceInfo.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Utilities/NativeJSDevSupport.js b/Libraries/Utilities/NativeJSDevSupport.js index e609e1358ae..da94a62d77c 100644 --- a/Libraries/Utilities/NativeJSDevSupport.js +++ b/Libraries/Utilities/NativeJSDevSupport.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Utilities/NativePlatformConstantsAndroid.js b/Libraries/Utilities/NativePlatformConstantsAndroid.js index 993b8091ddb..afc0406dc98 100644 --- a/Libraries/Utilities/NativePlatformConstantsAndroid.js +++ b/Libraries/Utilities/NativePlatformConstantsAndroid.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Utilities/NativePlatformConstantsIOS.js b/Libraries/Utilities/NativePlatformConstantsIOS.js index 5b9d68bbc75..15055ca5e93 100644 --- a/Libraries/Utilities/NativePlatformConstantsIOS.js +++ b/Libraries/Utilities/NativePlatformConstantsIOS.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Utilities/PerformanceLoggerContext.js b/Libraries/Utilities/PerformanceLoggerContext.js index e32f6c249e7..6e58752ccec 100644 --- a/Libraries/Utilities/PerformanceLoggerContext.js +++ b/Libraries/Utilities/PerformanceLoggerContext.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import GlobalPerformanceLogger from './GlobalPerformanceLogger'; import type {IPerformanceLogger} from './createPerformanceLogger'; diff --git a/Libraries/Utilities/Platform.android.js b/Libraries/Utilities/Platform.android.js index 0ed8a36eaff..679dbb2a3a3 100644 --- a/Libraries/Utilities/Platform.android.js +++ b/Libraries/Utilities/Platform.android.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - import NativePlatformConstantsAndroid from './NativePlatformConstantsAndroid'; export type PlatformSelectSpec = { diff --git a/Libraries/Utilities/Platform.ios.js b/Libraries/Utilities/Platform.ios.js index fef93470ae1..f7ac62a5e14 100644 --- a/Libraries/Utilities/Platform.ios.js +++ b/Libraries/Utilities/Platform.ios.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - import NativePlatformConstantsIOS from './NativePlatformConstantsIOS'; export type PlatformSelectSpec = { diff --git a/Libraries/Utilities/ReactNativeTestTools.js b/Libraries/Utilities/ReactNativeTestTools.js index ea4e583e38f..b6b044dba15 100644 --- a/Libraries/Utilities/ReactNativeTestTools.js +++ b/Libraries/Utilities/ReactNativeTestTools.js @@ -10,8 +10,6 @@ /* eslint-env jest */ -'use strict'; - const React = require('react'); const ReactTestRenderer = require('react-test-renderer'); diff --git a/Libraries/Utilities/__tests__/PerformanceLogger-test.js b/Libraries/Utilities/__tests__/PerformanceLogger-test.js index 79981ad2671..549be83d1da 100644 --- a/Libraries/Utilities/__tests__/PerformanceLogger-test.js +++ b/Libraries/Utilities/__tests__/PerformanceLogger-test.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import GlobalPerformanceLogger from '../GlobalPerformanceLogger'; import createPerformanceLogger from '../createPerformanceLogger'; import type {IPerformanceLogger} from '../createPerformanceLogger'; diff --git a/Libraries/Utilities/__tests__/stringifySafe-test.js b/Libraries/Utilities/__tests__/stringifySafe-test.js index 9ab85e566cb..f6cb307cf22 100644 --- a/Libraries/Utilities/__tests__/stringifySafe-test.js +++ b/Libraries/Utilities/__tests__/stringifySafe-test.js @@ -9,8 +9,6 @@ * @emails oncall+react_native */ -'use strict'; - import stringifySafe, {createStringifySafeWithLimits} from '../stringifySafe'; describe('stringifySafe', () => { diff --git a/Libraries/Utilities/codegenNativeCommands.js b/Libraries/Utilities/codegenNativeCommands.js index 1a7532cfddc..a2e6298e169 100644 --- a/Libraries/Utilities/codegenNativeCommands.js +++ b/Libraries/Utilities/codegenNativeCommands.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import {dispatchCommand} from '../../Libraries/Renderer/shims/ReactNative'; type Options = $ReadOnly<{| diff --git a/Libraries/Utilities/codegenNativeComponent.js b/Libraries/Utilities/codegenNativeComponent.js index 8376d9b4032..129de1ad44a 100644 --- a/Libraries/Utilities/codegenNativeComponent.js +++ b/Libraries/Utilities/codegenNativeComponent.js @@ -10,8 +10,6 @@ // TODO: move this file to shims/ReactNative (requires React update and sync) -'use strict'; - import requireNativeComponent from '../../Libraries/ReactNative/requireNativeComponent'; import type {HostComponent} from '../../Libraries/Renderer/shims/ReactNativeTypes'; import UIManager from '../ReactNative/UIManager'; diff --git a/Libraries/Utilities/createPerformanceLogger.js b/Libraries/Utilities/createPerformanceLogger.js index 66c2183186c..e522647aa04 100644 --- a/Libraries/Utilities/createPerformanceLogger.js +++ b/Libraries/Utilities/createPerformanceLogger.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const Systrace = require('../Performance/Systrace'); const infoLog = require('./infoLog'); diff --git a/Libraries/Utilities/deprecatedPropType.js b/Libraries/Utilities/deprecatedPropType.js index 4fc73c836fe..454b9bc855e 100644 --- a/Libraries/Utilities/deprecatedPropType.js +++ b/Libraries/Utilities/deprecatedPropType.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import UIManager from '../ReactNative/UIManager'; /** diff --git a/Libraries/Utilities/registerGeneratedViewConfig.js b/Libraries/Utilities/registerGeneratedViewConfig.js index cb8449590a4..5e2944571a8 100644 --- a/Libraries/Utilities/registerGeneratedViewConfig.js +++ b/Libraries/Utilities/registerGeneratedViewConfig.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {createViewConfig} from '../NativeComponent/ViewConfig'; import {type PartialViewConfig} from '../Renderer/shims/ReactNativeTypes'; import ReactNativeViewConfigRegistry from '../Renderer/shims/ReactNativeViewConfigRegistry'; diff --git a/Libraries/Utilities/stringifySafe.js b/Libraries/Utilities/stringifySafe.js index e051f59f8f0..92b0c357872 100644 --- a/Libraries/Utilities/stringifySafe.js +++ b/Libraries/Utilities/stringifySafe.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - import invariant from 'invariant'; /** diff --git a/Libraries/Utilities/useColorScheme.js b/Libraries/Utilities/useColorScheme.js index 0b8cfef8396..2712a846e58 100644 --- a/Libraries/Utilities/useColorScheme.js +++ b/Libraries/Utilities/useColorScheme.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import {useMemo} from 'react'; import {useSubscription} from 'use-subscription'; import Appearance from './Appearance'; diff --git a/Libraries/Utilities/useWindowDimensions.js b/Libraries/Utilities/useWindowDimensions.js index f298649c943..afe831c3be8 100644 --- a/Libraries/Utilities/useWindowDimensions.js +++ b/Libraries/Utilities/useWindowDimensions.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import Dimensions from './Dimensions'; import {type DisplayMetrics} from './NativeDeviceInfo'; import {useEffect, useState} from 'react'; diff --git a/Libraries/Utilities/verifyComponentAttributeEquivalence.js b/Libraries/Utilities/verifyComponentAttributeEquivalence.js index acd459c1e12..489a6ca4aef 100644 --- a/Libraries/Utilities/verifyComponentAttributeEquivalence.js +++ b/Libraries/Utilities/verifyComponentAttributeEquivalence.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import ReactNativeViewViewConfig from '../Components/View/ReactNativeViewViewConfig'; import {type ViewConfig} from '../Renderer/shims/ReactNativeTypes'; diff --git a/Libraries/Vibration/NativeVibration.js b/Libraries/Vibration/NativeVibration.js index d2b2f2424e9..e627ba43adf 100644 --- a/Libraries/Vibration/NativeVibration.js +++ b/Libraries/Vibration/NativeVibration.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/Vibration/Vibration.js b/Libraries/Vibration/Vibration.js index ab7f466be62..797928a7d3d 100644 --- a/Libraries/Vibration/Vibration.js +++ b/Libraries/Vibration/Vibration.js @@ -9,8 +9,6 @@ * @jsdoc */ -'use strict'; - import NativeVibration from './NativeVibration'; const Platform = require('../Utilities/Platform'); diff --git a/Libraries/WebSocket/NativeWebSocketModule.js b/Libraries/WebSocket/NativeWebSocketModule.js index c2ce1b57807..95e838912f0 100644 --- a/Libraries/WebSocket/NativeWebSocketModule.js +++ b/Libraries/WebSocket/NativeWebSocketModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from '../TurboModule/RCTExport'; import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'; diff --git a/Libraries/WebSocket/WebSocket.js b/Libraries/WebSocket/WebSocket.js index fa2b8260eb7..cfa029f5380 100644 --- a/Libraries/WebSocket/WebSocket.js +++ b/Libraries/WebSocket/WebSocket.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import Blob from '../Blob/Blob'; import type {BlobData} from '../Blob/BlobTypes'; import BlobManager from '../Blob/BlobManager'; diff --git a/Libraries/WebSocket/WebSocketInterceptor.js b/Libraries/WebSocket/WebSocketInterceptor.js index 7882c46f3fd..d9afbe19fa0 100644 --- a/Libraries/WebSocket/WebSocketInterceptor.js +++ b/Libraries/WebSocket/WebSocketInterceptor.js @@ -7,8 +7,6 @@ * @format */ -'use strict'; - import NativeEventEmitter from '../EventEmitter/NativeEventEmitter'; import NativeWebSocketModule from './NativeWebSocketModule'; import base64 from 'base64-js'; diff --git a/Libraries/__flowtests__/ReactNativeTypes-flowtest.js b/Libraries/__flowtests__/ReactNativeTypes-flowtest.js index e6c0bb124d5..509cfea9093 100644 --- a/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +++ b/Libraries/__flowtests__/ReactNativeTypes-flowtest.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import type {HostComponent} from '../Renderer/shims/ReactNativeTypes'; diff --git a/Libraries/promiseRejectionTrackingOptions.js b/Libraries/promiseRejectionTrackingOptions.js index 7b30a9c66bb..a07c7409386 100644 --- a/Libraries/promiseRejectionTrackingOptions.js +++ b/Libraries/promiseRejectionTrackingOptions.js @@ -8,8 +8,6 @@ * @flow strict */ -'use strict'; - import typeof {enable} from 'promise/setimmediate/rejection-tracking'; type ExtractOptionsType =

((options?: ?P) => void) => P; diff --git a/Libraries/vendor/emitter/_EventEmitter.js b/Libraries/vendor/emitter/_EventEmitter.js index 4786dacd283..908499ec636 100644 --- a/Libraries/vendor/emitter/_EventEmitter.js +++ b/Libraries/vendor/emitter/_EventEmitter.js @@ -9,8 +9,6 @@ * @typecheck */ -'use strict'; - const invariant = require('invariant'); import EmitterSubscription from './_EmitterSubscription'; diff --git a/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js b/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js index 3047f21ff10..43a4a92e0e1 100644 --- a/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +++ b/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js @@ -5,8 +5,6 @@ * @format */ -'use strict'; - import EventEmitter from '../EventEmitter'; type MyEvents = { diff --git a/ReactCommon/hermes/inspector/tools/msggen/__tests__/CommandTest.js b/ReactCommon/hermes/inspector/tools/msggen/__tests__/CommandTest.js index 2b2690ed874..5be28381400 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/__tests__/CommandTest.js +++ b/ReactCommon/hermes/inspector/tools/msggen/__tests__/CommandTest.js @@ -5,9 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -'use strict'; - -import { Command } from '../src/Command.js'; +import {Command} from '../src/Command.js'; test('parses simple command', () => { let obj = { diff --git a/ReactCommon/hermes/inspector/tools/msggen/__tests__/EventTest.js b/ReactCommon/hermes/inspector/tools/msggen/__tests__/EventTest.js index da45f699636..00cdcb7e42f 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/__tests__/EventTest.js +++ b/ReactCommon/hermes/inspector/tools/msggen/__tests__/EventTest.js @@ -5,9 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -'use strict'; - -import { Event } from '../src/Event.js'; +import {Event} from '../src/Event.js'; test('parses simple event', () => { let obj = { diff --git a/ReactCommon/hermes/inspector/tools/msggen/__tests__/GraphTest.js b/ReactCommon/hermes/inspector/tools/msggen/__tests__/GraphTest.js index 5e0958ec856..5f443e47903 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/__tests__/GraphTest.js +++ b/ReactCommon/hermes/inspector/tools/msggen/__tests__/GraphTest.js @@ -5,9 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -'use strict'; - -import { Graph } from '../src/Graph.js'; +import {Graph} from '../src/Graph.js'; // graph looks like this before test: https://pxl.cl/9k8t let graph = null; diff --git a/ReactCommon/hermes/inspector/tools/msggen/__tests__/HeaderWriterTest.js b/ReactCommon/hermes/inspector/tools/msggen/__tests__/HeaderWriterTest.js index c6977e358cb..44bd13aac1a 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/__tests__/HeaderWriterTest.js +++ b/ReactCommon/hermes/inspector/tools/msggen/__tests__/HeaderWriterTest.js @@ -5,9 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -'use strict'; - -import { expectCodeIsEqual, FakeWritable } from '../src/TestHelpers'; +import {expectCodeIsEqual, FakeWritable} from '../src/TestHelpers'; import { emitNotificationDecl, emitRequestDecl, diff --git a/ReactCommon/hermes/inspector/tools/msggen/__tests__/ImplementationWriterTest.js b/ReactCommon/hermes/inspector/tools/msggen/__tests__/ImplementationWriterTest.js index 9f9decb9f15..4437bb144dc 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/__tests__/ImplementationWriterTest.js +++ b/ReactCommon/hermes/inspector/tools/msggen/__tests__/ImplementationWriterTest.js @@ -5,9 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -'use strict'; - -import { expectCodeIsEqual, FakeWritable } from '../src/TestHelpers'; +import {expectCodeIsEqual, FakeWritable} from '../src/TestHelpers'; import { emitNotificationDef, emitRequestDef, diff --git a/ReactCommon/hermes/inspector/tools/msggen/__tests__/PropertyTest.js b/ReactCommon/hermes/inspector/tools/msggen/__tests__/PropertyTest.js index 6131a14aaaf..583fcdf737b 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/__tests__/PropertyTest.js +++ b/ReactCommon/hermes/inspector/tools/msggen/__tests__/PropertyTest.js @@ -5,9 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -'use strict'; - -import { Property } from '../src/Property.js'; +import {Property} from '../src/Property.js'; test('parses required primitive prop', () => { let obj = { diff --git a/ReactCommon/hermes/inspector/tools/msggen/__tests__/TypeTest.js b/ReactCommon/hermes/inspector/tools/msggen/__tests__/TypeTest.js index 509745fac4a..6f5a8649ba1 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/__tests__/TypeTest.js +++ b/ReactCommon/hermes/inspector/tools/msggen/__tests__/TypeTest.js @@ -5,9 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -'use strict'; - -import { Type } from '../src/Type.js'; +import {Type} from '../src/Type.js'; test('parses primitive type', () => { let obj = { diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/Command.js b/ReactCommon/hermes/inspector/tools/msggen/src/Command.js index 2d1678f8ef5..08b74abcb73 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/Command.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/Command.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {Property} from './Property'; import {toCppNamespace, toCppType} from './Converters'; diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/Converters.js b/ReactCommon/hermes/inspector/tools/msggen/src/Converters.js index 277c9fd1631..2eb43df111b 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/Converters.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/Converters.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - export function toCppNamespace(domain: string): string { return domain.substr(0, 1).toLowerCase() + domain.substr(1); } diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/Event.js b/ReactCommon/hermes/inspector/tools/msggen/src/Event.js index 2f2849ba679..7e04311a686 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/Event.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/Event.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {Property} from './Property'; import {toCppNamespace, toCppType} from './Converters'; diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/Graph.js b/ReactCommon/hermes/inspector/tools/msggen/src/Graph.js index 3ceb3572bc3..98fc5e926da 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/Graph.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/Graph.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import invariant from 'assert'; type NodeId = string; diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js b/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js index d02a6ab6e28..d217c2e86b4 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {Writable} from 'stream'; import {GeneratedHeader} from './GeneratedHeader'; diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/ImplementationWriter.js b/ReactCommon/hermes/inspector/tools/msggen/src/ImplementationWriter.js index dc4c93a17ed..7dea2bb04d3 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/ImplementationWriter.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/ImplementationWriter.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {Writable} from 'stream'; import {GeneratedHeader} from './GeneratedHeader'; diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/Property.js b/ReactCommon/hermes/inspector/tools/msggen/src/Property.js index ab93dd05bae..a3673f05470 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/Property.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/Property.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import { jsTypeToCppType, toCppNamespace, diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/TestHelpers.js b/ReactCommon/hermes/inspector/tools/msggen/src/TestHelpers.js index 2600167e11a..476dc195734 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/TestHelpers.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/TestHelpers.js @@ -5,9 +5,7 @@ * LICENSE file in the root directory of this source tree. */ - /*global expect*/ - -'use strict'; +/*global expect*/ // munges string so that it's nice to look at in a test diff function strip(str) { diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/Type.js b/ReactCommon/hermes/inspector/tools/msggen/src/Type.js index 7866ecd0921..d91432f4569 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/Type.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/Type.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import {Property} from './Property'; import {jsTypeToCppType, toCppNamespace, toCppType} from './Converters'; diff --git a/ReactCommon/hermes/inspector/tools/msggen/src/index.js b/ReactCommon/hermes/inspector/tools/msggen/src/index.js index adcbdea071e..8245ef19e47 100644 --- a/ReactCommon/hermes/inspector/tools/msggen/src/index.js +++ b/ReactCommon/hermes/inspector/tools/msggen/src/index.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import fs from 'fs'; import yargs from 'yargs'; diff --git a/jest/renderer.js b/jest/renderer.js index 64d56830cf4..3f26e5b36c8 100644 --- a/jest/renderer.js +++ b/jest/renderer.js @@ -9,8 +9,6 @@ * @flow */ -'use strict'; - const React = require('react'); const ShallowRenderer = require('react-shallow-renderer'); diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/ArrayPropsNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/ArrayPropsNativeComponent.js index 63b0bbeefb7..6c9a09da677 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/ArrayPropsNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/ArrayPropsNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type { PointValue, EdgeInsetsValue, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/BooleanPropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/BooleanPropNativeComponent.js index bb17f3cfa6f..289b6ff1003 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/BooleanPropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/BooleanPropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {WithDefault} from '../../../../../Libraries/Types/CodegenTypes'; import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/ColorPropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/ColorPropNativeComponent.js index c00a934f6a8..b8dcdaf96db 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/ColorPropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/ColorPropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ColorValue} from '../../../../../Libraries/StyleSheet/StyleSheet'; import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/EdgeInsetsPropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/EdgeInsetsPropNativeComponent.js index 17f26c5588a..bad3a5a9825 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/EdgeInsetsPropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/EdgeInsetsPropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {EdgeInsetsValue} from '../../../../../Libraries/StyleSheet/StyleSheetTypes'; import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/EnumPropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/EnumPropNativeComponent.js index ae9a9212c31..72b1f5952fb 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/EnumPropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/EnumPropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {WithDefault} from '../../../../../Libraries/Types/CodegenTypes'; import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/EventNestedObjectPropsNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/EventNestedObjectPropsNativeComponent.js index 028d22ab7d6..a12ed0ce45f 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/EventNestedObjectPropsNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/EventNestedObjectPropsNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type { Int32, BubblingEventHandler, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/EventPropsNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/EventPropsNativeComponent.js index 0fafc1c3672..8de54ec1db1 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/EventPropsNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/EventPropsNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type { Int32, Float, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/FloatPropsNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/FloatPropsNativeComponent.js index 18a46489044..a0a31bf3de6 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/FloatPropsNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/FloatPropsNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type { WithDefault, Float, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/ImagePropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/ImagePropNativeComponent.js index 27b29d526fe..63b4a98a9e7 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/ImagePropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/ImagePropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ImageSource} from '../../../../../Libraries/Image/ImageSource'; import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/IntegerPropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/IntegerPropNativeComponent.js index cd2d6e53633..1718b8877bd 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/IntegerPropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/IntegerPropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type { WithDefault, Int32, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/InterfaceOnlyNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/InterfaceOnlyNativeComponent.js index 657e836e15d..aa33dfd4c81 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/InterfaceOnlyNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/InterfaceOnlyNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type { BubblingEventHandler, WithDefault, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/MultiNativePropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/MultiNativePropNativeComponent.js index 6965813f5dd..675ddf1942c 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/MultiNativePropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/MultiNativePropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {PointValue} from '../../../../../Libraries/StyleSheet/StyleSheetTypes'; import type {ColorValue} from '../../../../../Libraries/StyleSheet/StyleSheet'; import type {ImageSource} from '../../../../../Libraries/Image/ImageSource'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/NoPropsNoEventsNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/NoPropsNoEventsNativeComponent.js index 67d78b943a0..d5b821db8f6 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/NoPropsNoEventsNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/NoPropsNoEventsNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; import type {HostComponent} from '../../../../../Libraries/Renderer/shims/ReactNativeTypes'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/ObjectPropsNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/ObjectPropsNativeComponent.js index cfaf7d8b4bf..d39dbb5eb0f 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/ObjectPropsNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/ObjectPropsNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import type {ImageSource} from '../../../../../Libraries/Image/ImageSource'; import type {PointValue} from '../../../../../Libraries/StyleSheet/StyleSheetTypes'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/PointPropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/PointPropNativeComponent.js index 5b71252f433..0d450b8acd9 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/PointPropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/PointPropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {PointValue} from '../../../../../Libraries/StyleSheet/StyleSheetTypes'; import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/components/StringPropNativeComponent.js b/packages/react-native-codegen/e2e/__test_fixtures__/components/StringPropNativeComponent.js index dfdb145c611..2da62e34fbd 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/components/StringPropNativeComponent.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/components/StringPropNativeComponent.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import type {WithDefault} from '../../../../../Libraries/Types/CodegenTypes'; import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeArrayTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeArrayTurboModule.js index cd21a54d719..291f0f6887a 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeArrayTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeArrayTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeBooleanTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeBooleanTurboModule.js index fe3b3efad9c..4c417f55164 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeBooleanTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeBooleanTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeCallbackTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeCallbackTurboModule.js index 6e8a30a0ca7..753547d8cf4 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeCallbackTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeCallbackTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeNullableTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeNullableTurboModule.js index 3ccc8876b45..4272eb381f0 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeNullableTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeNullableTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeNumberTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeNumberTurboModule.js index a8c648185ff..1efc1b63213 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeNumberTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeNumberTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeObjectTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeObjectTurboModule.js index 6400942e175..ea7782d9710 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeObjectTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeObjectTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeOptionalObjectTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeOptionalObjectTurboModule.js index 02784457c3b..2408df34d5d 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeOptionalObjectTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeOptionalObjectTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativePromiseTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativePromiseTurboModule.js index 3b9ba540dc5..34a75f6e369 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativePromiseTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativePromiseTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModule.js index c950ed9e288..bda6ca6a913 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type { RootTag, TurboModule, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleArrays.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleArrays.js index fce6f7c0f0f..7ee503fdce5 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleArrays.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleArrays.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type { RootTag, TurboModule, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleNullable.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleNullable.js index ac7b57e386a..1c174e7f9a8 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleNullable.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleNullable.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type { RootTag, TurboModule, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleNullableAndOptional.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleNullableAndOptional.js index 29e54d8a5c3..7863aef4256 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleNullableAndOptional.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleNullableAndOptional.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type { RootTag, TurboModule, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleOptional.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleOptional.js index 9f12225a2d8..52343aebb42 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleOptional.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeSampleTurboModuleOptional.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type { RootTag, TurboModule, diff --git a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeStringTurboModule.js b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeStringTurboModule.js index 8810cb33540..684a867d695 100644 --- a/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeStringTurboModule.js +++ b/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeStringTurboModule.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/rn-tester/NativeModuleExample/NativeScreenshotManager.js b/packages/rn-tester/NativeModuleExample/NativeScreenshotManager.js index 862ffa5213f..2cb86684739 100644 --- a/packages/rn-tester/NativeModuleExample/NativeScreenshotManager.js +++ b/packages/rn-tester/NativeModuleExample/NativeScreenshotManager.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport'; import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/packages/rn-tester/js/RNTesterApp.android.js b/packages/rn-tester/js/RNTesterApp.android.js index ba0aa1846d0..5b0d85532c6 100644 --- a/packages/rn-tester/js/RNTesterApp.android.js +++ b/packages/rn-tester/js/RNTesterApp.android.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import {AppRegistry} from 'react-native'; import RNTesterApp from './RNTesterAppShared'; diff --git a/packages/rn-tester/js/RNTesterApp.ios.js b/packages/rn-tester/js/RNTesterApp.ios.js index 6e48c6ead2b..77a53983811 100644 --- a/packages/rn-tester/js/RNTesterApp.ios.js +++ b/packages/rn-tester/js/RNTesterApp.ios.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import {AppRegistry} from 'react-native'; import React from 'react'; diff --git a/packages/rn-tester/js/RNTesterAppShared.js b/packages/rn-tester/js/RNTesterAppShared.js index 70380c39699..1fca9c76e4b 100644 --- a/packages/rn-tester/js/RNTesterAppShared.js +++ b/packages/rn-tester/js/RNTesterAppShared.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import { BackHandler, StyleSheet, diff --git a/packages/rn-tester/js/components/ExamplePage.js b/packages/rn-tester/js/components/ExamplePage.js index 23dc5158799..ec407b08b09 100644 --- a/packages/rn-tester/js/components/ExamplePage.js +++ b/packages/rn-tester/js/components/ExamplePage.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; import {StyleSheet, View, Text} from 'react-native'; diff --git a/packages/rn-tester/js/components/RNTesterBlock.js b/packages/rn-tester/js/components/RNTesterBlock.js index 6acdcdd1828..486aa90f107 100644 --- a/packages/rn-tester/js/components/RNTesterBlock.js +++ b/packages/rn-tester/js/components/RNTesterBlock.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; import {RNTesterThemeContext} from './RNTesterTheme'; import {StyleSheet, Text, View} from 'react-native'; diff --git a/packages/rn-tester/js/components/RNTesterBookmarkButton.js b/packages/rn-tester/js/components/RNTesterBookmarkButton.js index 63de5a5b452..83868c8c990 100644 --- a/packages/rn-tester/js/components/RNTesterBookmarkButton.js +++ b/packages/rn-tester/js/components/RNTesterBookmarkButton.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const React = require('react'); import {TouchableOpacity, Image, StyleSheet} from 'react-native'; diff --git a/packages/rn-tester/js/components/RNTesterDocumentationURL.js b/packages/rn-tester/js/components/RNTesterDocumentationURL.js index 0a8b20823fb..8c95f9f9f67 100644 --- a/packages/rn-tester/js/components/RNTesterDocumentationURL.js +++ b/packages/rn-tester/js/components/RNTesterDocumentationURL.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; import {Image, StyleSheet, TouchableOpacity} from 'react-native'; import openURLInBrowser from 'react-native/Libraries/Core/Devtools/openURLInBrowser'; diff --git a/packages/rn-tester/js/components/RNTesterEmptyBookmarksState.js b/packages/rn-tester/js/components/RNTesterEmptyBookmarksState.js index dd6aa6a43aa..3a526168a56 100644 --- a/packages/rn-tester/js/components/RNTesterEmptyBookmarksState.js +++ b/packages/rn-tester/js/components/RNTesterEmptyBookmarksState.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; import {View, Image, Text, StyleSheet} from 'react-native'; diff --git a/packages/rn-tester/js/components/RNTesterExampleContainer.js b/packages/rn-tester/js/components/RNTesterExampleContainer.js index 271a61859b1..ad2501c3111 100644 --- a/packages/rn-tester/js/components/RNTesterExampleContainer.js +++ b/packages/rn-tester/js/components/RNTesterExampleContainer.js @@ -7,8 +7,6 @@ * @format */ -'use strict'; - const React = require('react'); const {Platform} = require('react-native'); const RNTesterBlock = require('./RNTesterBlock'); diff --git a/packages/rn-tester/js/components/RNTesterExampleFilter.js b/packages/rn-tester/js/components/RNTesterExampleFilter.js index efcefc5a271..2666580948b 100644 --- a/packages/rn-tester/js/components/RNTesterExampleFilter.js +++ b/packages/rn-tester/js/components/RNTesterExampleFilter.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const React = require('react'); const RNTesterListFilters = require('./RNTesterListFilters'); const { diff --git a/packages/rn-tester/js/components/RNTesterExampleList.js b/packages/rn-tester/js/components/RNTesterExampleList.js index 2b32664b785..74873e564ac 100644 --- a/packages/rn-tester/js/components/RNTesterExampleList.js +++ b/packages/rn-tester/js/components/RNTesterExampleList.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const RNTesterExampleFilter = require('./RNTesterExampleFilter'); const RNTesterComponentTitle = require('./RNTesterComponentTitle'); const React = require('react'); diff --git a/packages/rn-tester/js/components/RNTesterHeader.js b/packages/rn-tester/js/components/RNTesterHeader.js index 9a6293c1fec..73608150ea6 100644 --- a/packages/rn-tester/js/components/RNTesterHeader.js +++ b/packages/rn-tester/js/components/RNTesterHeader.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import { Text, View, diff --git a/packages/rn-tester/js/components/RNTesterPage.js b/packages/rn-tester/js/components/RNTesterPage.js index e599db011a8..b9f02264621 100644 --- a/packages/rn-tester/js/components/RNTesterPage.js +++ b/packages/rn-tester/js/components/RNTesterPage.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const RNTesterTitle = require('./RNTesterTitle'); const React = require('react'); const {ScrollView, StyleSheet, View} = require('react-native'); diff --git a/packages/rn-tester/js/components/RNTesterTheme.js b/packages/rn-tester/js/components/RNTesterTheme.js index 4a937129632..28bab6c1dce 100644 --- a/packages/rn-tester/js/components/RNTesterTheme.js +++ b/packages/rn-tester/js/components/RNTesterTheme.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - import * as React from 'react'; import {Appearance} from 'react-native'; import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet'; diff --git a/packages/rn-tester/js/components/RNTesterTitle.js b/packages/rn-tester/js/components/RNTesterTitle.js index 44c1abac2f0..a9955654043 100644 --- a/packages/rn-tester/js/components/RNTesterTitle.js +++ b/packages/rn-tester/js/components/RNTesterTitle.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const React = require('react'); const {StyleSheet, Text, View} = require('react-native'); diff --git a/packages/rn-tester/js/components/TextLegend.js b/packages/rn-tester/js/components/TextLegend.js index 2f513038390..c948dc3e17f 100644 --- a/packages/rn-tester/js/components/TextLegend.js +++ b/packages/rn-tester/js/components/TextLegend.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const React = require('react'); const {Text, View} = require('react-native'); diff --git a/packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js b/packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js index 793fac7bfa0..871bf1cb465 100644 --- a/packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js +++ b/packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js @@ -8,7 +8,6 @@ * @flow strict-local */ -'use strict'; import type {Node} from 'React'; import {ActivityIndicator, StyleSheet, View} from 'react-native'; import React, {Component} from 'react'; diff --git a/packages/rn-tester/js/examples/Alert/AlertExample.js b/packages/rn-tester/js/examples/Alert/AlertExample.js index 4139bbb9249..d17f8ed9357 100644 --- a/packages/rn-tester/js/examples/Alert/AlertExample.js +++ b/packages/rn-tester/js/examples/Alert/AlertExample.js @@ -7,8 +7,6 @@ * @format */ -'use strict'; - import React, {useState} from 'react'; import {Alert, StyleSheet, Text, TouchableHighlight, View} from 'react-native'; diff --git a/packages/rn-tester/js/examples/Appearance/AppearanceExample.js b/packages/rn-tester/js/examples/Appearance/AppearanceExample.js index 38a7e68fd8f..c7cc76fec7e 100644 --- a/packages/rn-tester/js/examples/Appearance/AppearanceExample.js +++ b/packages/rn-tester/js/examples/Appearance/AppearanceExample.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; import {Appearance, Text, useColorScheme, View} from 'react-native'; import type {AppearancePreferences} from 'react-native/Libraries/Utilities/NativeAppearance'; diff --git a/packages/rn-tester/js/examples/Crash/CrashExample.js b/packages/rn-tester/js/examples/Crash/CrashExample.js index 5d45b571510..6ac4f8fa90e 100644 --- a/packages/rn-tester/js/examples/Crash/CrashExample.js +++ b/packages/rn-tester/js/examples/Crash/CrashExample.js @@ -8,7 +8,6 @@ * @flow strict-local */ -'use strict'; import type {Node} from 'React'; import {NativeModules, Button} from 'react-native'; import React from 'react'; diff --git a/packages/rn-tester/js/examples/DevSettings/DevSettingsExample.js b/packages/rn-tester/js/examples/DevSettings/DevSettingsExample.js index 9b8d267f946..4993b662125 100644 --- a/packages/rn-tester/js/examples/DevSettings/DevSettingsExample.js +++ b/packages/rn-tester/js/examples/DevSettings/DevSettingsExample.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; import {Alert, Button, DevSettings} from 'react-native'; diff --git a/packages/rn-tester/js/examples/Dimensions/DimensionsExample.js b/packages/rn-tester/js/examples/Dimensions/DimensionsExample.js index 64167e6c2e5..07722596f25 100644 --- a/packages/rn-tester/js/examples/Dimensions/DimensionsExample.js +++ b/packages/rn-tester/js/examples/Dimensions/DimensionsExample.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import {Dimensions, Text, useWindowDimensions} from 'react-native'; import * as React from 'react'; diff --git a/packages/rn-tester/js/examples/JSResponderHandlerExample/JSResponderHandlerExample.js b/packages/rn-tester/js/examples/JSResponderHandlerExample/JSResponderHandlerExample.js index cbfffbf266b..e3fa336cb81 100644 --- a/packages/rn-tester/js/examples/JSResponderHandlerExample/JSResponderHandlerExample.js +++ b/packages/rn-tester/js/examples/JSResponderHandlerExample/JSResponderHandlerExample.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - const React = require('react'); const {Text, View, StyleSheet} = require('react-native'); diff --git a/packages/rn-tester/js/examples/OrientationChange/OrientationChangeExample.js b/packages/rn-tester/js/examples/OrientationChange/OrientationChangeExample.js index c8b2df92d3e..70da9fff850 100644 --- a/packages/rn-tester/js/examples/OrientationChange/OrientationChangeExample.js +++ b/packages/rn-tester/js/examples/OrientationChange/OrientationChangeExample.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const React = require('react'); const {DeviceEventEmitter, Text, View} = require('react-native'); diff --git a/packages/rn-tester/js/examples/PlatformColor/PlatformColorExample.js b/packages/rn-tester/js/examples/PlatformColor/PlatformColorExample.js index e542f70ff3b..ebed5b1fdfa 100644 --- a/packages/rn-tester/js/examples/PlatformColor/PlatformColorExample.js +++ b/packages/rn-tester/js/examples/PlatformColor/PlatformColorExample.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const React = require('react'); const ReactNative = require('react-native'); import Platform from 'react-native/Libraries/Utilities/Platform'; diff --git a/packages/rn-tester/js/examples/Pressable/PressableExample.js b/packages/rn-tester/js/examples/Pressable/PressableExample.js index f7a1e4dc33d..3407d7afdcd 100644 --- a/packages/rn-tester/js/examples/Pressable/PressableExample.js +++ b/packages/rn-tester/js/examples/Pressable/PressableExample.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import * as React from 'react'; import { Animated, diff --git a/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js b/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js index 3c85eb457bc..f34e6544bf7 100644 --- a/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js +++ b/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js @@ -8,8 +8,6 @@ * @format */ -'use strict'; - const React = require('react'); const { diff --git a/packages/rn-tester/js/examples/Touchable/TouchableExample.js b/packages/rn-tester/js/examples/Touchable/TouchableExample.js index 7c06a2b830b..bd5fb8450d7 100644 --- a/packages/rn-tester/js/examples/Touchable/TouchableExample.js +++ b/packages/rn-tester/js/examples/Touchable/TouchableExample.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const React = require('react'); const { diff --git a/packages/rn-tester/js/examples/Transform/TransformExample.js b/packages/rn-tester/js/examples/Transform/TransformExample.js index 350f1c6c3fd..cc25fe4636d 100644 --- a/packages/rn-tester/js/examples/Transform/TransformExample.js +++ b/packages/rn-tester/js/examples/Transform/TransformExample.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import React, {useEffect, useState} from 'react'; import {Animated, StyleSheet, Text, View} from 'react-native'; diff --git a/packages/rn-tester/js/examples/TurboModule/SampleTurboModuleExample.js b/packages/rn-tester/js/examples/TurboModule/SampleTurboModuleExample.js index 09fdd06f9af..4e46ecbbef4 100644 --- a/packages/rn-tester/js/examples/TurboModule/SampleTurboModuleExample.js +++ b/packages/rn-tester/js/examples/TurboModule/SampleTurboModuleExample.js @@ -8,8 +8,6 @@ * @flow strict-local */ -'use strict'; - import NativeSampleTurboModule from 'react-native/Libraries/TurboModule/samples/NativeSampleTurboModule'; import type {RootTag} from 'react-native/Libraries/ReactNative/RootTag'; import { diff --git a/packages/rn-tester/js/types/RNTesterTypes.js b/packages/rn-tester/js/types/RNTesterTypes.js index d7cb3061325..2c86c550fbb 100644 --- a/packages/rn-tester/js/types/RNTesterTypes.js +++ b/packages/rn-tester/js/types/RNTesterTypes.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; export type RNTesterExampleModuleItem = $ReadOnly<{| diff --git a/packages/rn-tester/js/utils/RNTesterReducer.js b/packages/rn-tester/js/utils/RNTesterReducer.js index a4f204e00fe..b34b1b1f212 100644 --- a/packages/rn-tester/js/utils/RNTesterReducer.js +++ b/packages/rn-tester/js/utils/RNTesterReducer.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import type {RNTesterState, ComponentList} from '../types/RNTesterTypes'; export const RNTesterActionsType = { diff --git a/packages/rn-tester/js/utils/RNTesterStatePersister.js b/packages/rn-tester/js/utils/RNTesterStatePersister.js index cc5084c6d0c..65be7ff46f2 100644 --- a/packages/rn-tester/js/utils/RNTesterStatePersister.js +++ b/packages/rn-tester/js/utils/RNTesterStatePersister.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - const React = require('react'); import {AsyncStorage} from 'react-native'; diff --git a/packages/rn-tester/js/utils/testerStateUtils.js b/packages/rn-tester/js/utils/testerStateUtils.js index 3dc729e2521..a990dfad0cb 100644 --- a/packages/rn-tester/js/utils/testerStateUtils.js +++ b/packages/rn-tester/js/utils/testerStateUtils.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import {AsyncStorage} from 'react-native'; import RNTesterList from './RNTesterList'; diff --git a/packages/rn-tester/js/utils/useAsyncStorageReducer.js b/packages/rn-tester/js/utils/useAsyncStorageReducer.js index ceb8ef8eb36..01ff9d5cdcb 100644 --- a/packages/rn-tester/js/utils/useAsyncStorageReducer.js +++ b/packages/rn-tester/js/utils/useAsyncStorageReducer.js @@ -8,8 +8,6 @@ * @flow */ -'use strict'; - import * as React from 'react'; import {AsyncStorage} from 'react-native';