From afcb942bd5c430e23595be6f5fe1fc11f2d284c5 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Fri, 10 Jul 2026 11:02:50 -0700 Subject: [PATCH] Relocate manual .d.ts definitions under types_DEPRECATED/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: See [**RFC0894: Removing deep imports from react-native**](https://github.com/react-native-community/discussions-and-proposals/pull/894) **Changes** Rename the hand-written `types/` directory to `types_DEPRECATED/` and consolidate the co-located `.d.ts` declarations beneath it. - This is a pure relocation with **no change** to the public type surface. The package `"exports"` map is updated so that every `types` condition resolves to the new location (`.` → `./types_DEPRECATED/index.d.ts`, `./Libraries/*` → `./types_DEPRECATED/Libraries/*.d.ts`) — consumers resolve the exact same types and runtime modules through the same import specifiers. - Relative imports between the moved declarations, and the references from the moved `types/` files into `Libraries/`, were rewritten so the type graph continues to resolve. **Downsides** Risk of structural code drift if/when source modules in `Libraries/` move around. **Counterpoint**: The aim here is to feature-lock the legacy JS API and remove deep `Libraries/` imports by projects. Changelog: [Internal] Differential Revision: D110602194 --- .../__typetests__/tsconfig.legacy.json | 2 +- packages/react-native/package.json | 6 +- .../react-native/src/types/ErrorUtils.d.ts | 17 ++ packages/react-native/src/types/globals.d.ts | 2 +- packages/react-native/types/index.d.ts | 165 ------------------ .../ActionSheetIOS/ActionSheetIOS.d.ts | 0 .../Libraries/Alert/Alert.d.ts | 0 .../Libraries/Animated/Animated.d.ts | 0 .../Libraries/Animated/Easing.d.ts | 0 .../Libraries/Animated/useAnimatedColor.d.ts | 0 .../Libraries/Animated/useAnimatedValue.d.ts | 0 .../Animated/useAnimatedValueXY.d.ts | 0 .../Libraries/AppState/AppState.d.ts | 0 .../BatchedBridge/NativeModules.d.ts | 0 .../AccessibilityInfo/AccessibilityInfo.d.ts | 2 +- .../ActivityIndicator/ActivityIndicator.d.ts | 4 +- .../Libraries/Components/Button.d.ts | 0 .../Components/Clipboard/Clipboard.d.ts | 0 .../DrawerAndroid/DrawerLayoutAndroid.d.ts | 4 +- .../Components/Keyboard/Keyboard.d.ts | 0 .../Keyboard/KeyboardAvoidingView.d.ts | 4 +- .../LayoutConformance/LayoutConformance.d.ts | 0 .../Components/Pressable/Pressable.d.ts | 2 +- .../ProgressBarAndroid.d.ts | 4 +- .../RefreshControl/RefreshControl.d.ts | 4 +- .../Components/SafeAreaView/SafeAreaView.d.ts | 4 +- .../Components/ScrollView/ScrollView.d.ts | 6 +- .../Components/StatusBar/StatusBar.d.ts | 0 .../Libraries/Components/Switch/Switch.d.ts | 4 +- .../TextInput/InputAccessoryView.d.ts | 0 .../Components/TextInput/TextInput.d.ts | 6 +- .../Components/ToastAndroid/ToastAndroid.d.ts | 0 .../Components/Touchable/Touchable.d.ts | 2 +- .../Touchable/TouchableHighlight.d.ts | 0 .../Touchable/TouchableNativeFeedback.d.ts | 2 +- .../Touchable/TouchableOpacity.d.ts | 0 .../Touchable/TouchableWithoutFeedback.d.ts | 6 +- .../Libraries/Components/View/View.d.ts | 4 +- .../Components/View/ViewAccessibility.d.ts | 0 .../Components/View/ViewPropTypes.d.ts | 4 +- .../Core/registerCallableModule.d.ts | 0 .../EventEmitter/NativeEventEmitter.d.ts | 0 .../EventEmitter/RCTDeviceEventEmitter.d.ts | 0 .../RCTNativeAppEventEmitter.d.ts | 0 .../Libraries/Image/Image.d.ts | 6 +- .../Libraries/Image/ImageResizeMode.d.ts | 0 .../Libraries/Image/ImageSource.d.ts | 0 .../Libraries/Interaction/PanResponder.d.ts | 2 +- .../LayoutAnimation/LayoutAnimation.d.ts | 0 .../Libraries/Linking/Linking.d.ts | 0 .../Libraries/Lists/FlatList.d.ts | 0 .../Libraries/Lists/SectionList.d.ts | 0 .../Libraries/LogBox/LogBox.d.ts | 0 .../Libraries/Modal/Modal.d.ts | 0 .../NativeComponentRegistry.d.ts | 2 +- .../Libraries/Performance/Systrace.d.ts | 0 .../PermissionsAndroid.d.ts | 0 .../PushNotificationIOS.d.ts | 0 .../Libraries/ReactNative/AppRegistry.d.ts | 0 .../Libraries/ReactNative/I18nManager.d.ts | 0 .../ReactNative/IPerformanceLogger.d.ts | 0 .../Libraries/ReactNative/RendererProxy.d.ts | 0 .../Libraries/ReactNative/RootTag.d.ts | 0 .../Libraries/ReactNative/UIManager.d.ts | 2 +- .../ReactNative/requireNativeComponent.d.ts | 2 +- .../Libraries/Settings/Settings.d.ts | 0 .../Libraries/Share/Share.d.ts | 0 .../StyleSheet/PlatformColorValueTypes.d.ts | 0 .../PlatformColorValueTypesIOS.d.ts | 0 .../Libraries/StyleSheet/StyleSheet.d.ts | 0 .../Libraries/StyleSheet/StyleSheetTypes.d.ts | 0 .../Libraries/StyleSheet/processColor.d.ts | 0 .../Libraries/Text/Text.d.ts | 4 +- .../Libraries/TurboModule/RCTExport.d.ts | 0 .../TurboModule/TurboModuleRegistry.d.ts | 0 .../Types/CodegenTypesNamespace.d.ts | 0 .../Libraries/Types/CoreEventTypes.d.ts | 2 +- .../Libraries/Utilities/Appearance.d.ts | 0 .../Libraries/Utilities/BackHandler.d.ts | 0 .../Libraries/Utilities/DevSettings.d.ts | 0 .../Libraries/Utilities/Dimensions.d.ts | 0 .../Libraries/Utilities/PixelRatio.d.ts | 0 .../Libraries/Utilities/Platform.d.ts | 0 .../Utilities/codegenNativeCommands.d.ts | 0 .../Utilities/codegenNativeComponent.d.ts | 0 .../Libraries/Vibration/Vibration.d.ts | 0 .../Libraries/vendor/core/ErrorUtils.d.ts | 0 .../vendor/emitter/EventEmitter.d.ts | 0 .../react-native/types_DEPRECATED/index.d.ts | 165 ++++++++++++++++++ .../modules/BatchedBridge.d.ts | 0 .../modules/Codegen.d.ts | 0 .../modules/Devtools.d.ts | 0 .../private/TimerMixin.d.ts | 0 .../private/Utilities.d.ts | 0 .../public/DeprecatedPropertiesAlias.d.ts | 0 .../public/Insets.d.ts | 0 .../public/ReactNativeRenderer.d.ts | 2 +- .../public/ReactNativeTypes.d.ts | 0 .../private/devsupport/devmenu/DevMenu.d.ts | 0 99 files changed, 229 insertions(+), 212 deletions(-) create mode 100644 packages/react-native/src/types/ErrorUtils.d.ts delete mode 100644 packages/react-native/types/index.d.ts rename packages/react-native/{ => types_DEPRECATED}/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Alert/Alert.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Animated/Animated.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Animated/Easing.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Animated/useAnimatedColor.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Animated/useAnimatedValue.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Animated/useAnimatedValueXY.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/AppState/AppState.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/BatchedBridge/NativeModules.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts (94%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Button.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Clipboard/Clipboard.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts (97%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Keyboard/Keyboard.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts (92%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/LayoutConformance/LayoutConformance.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Pressable/Pressable.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts (94%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/RefreshControl/RefreshControl.d.ts (94%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/SafeAreaView/SafeAreaView.d.ts (89%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/ScrollView/ScrollView.d.ts (99%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/StatusBar/StatusBar.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Switch/Switch.d.ts (95%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/TextInput/InputAccessoryView.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/TextInput/TextInput.d.ts (99%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/ToastAndroid/ToastAndroid.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Touchable/Touchable.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Touchable/TouchableHighlight.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Touchable/TouchableOpacity.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts (96%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/View/View.d.ts (88%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/View/ViewAccessibility.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Components/View/ViewPropTypes.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Core/registerCallableModule.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/EventEmitter/NativeEventEmitter.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Image/Image.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Image/ImageResizeMode.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Image/ImageSource.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Interaction/PanResponder.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/LayoutAnimation/LayoutAnimation.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Linking/Linking.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Lists/FlatList.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Lists/SectionList.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/LogBox/LogBox.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Modal/Modal.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/NativeComponent/NativeComponentRegistry.d.ts (97%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Performance/Systrace.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/ReactNative/AppRegistry.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/ReactNative/I18nManager.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/ReactNative/IPerformanceLogger.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/ReactNative/RendererProxy.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/ReactNative/RootTag.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/ReactNative/UIManager.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/ReactNative/requireNativeComponent.d.ts (91%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Settings/Settings.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Share/Share.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/StyleSheet/PlatformColorValueTypes.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/StyleSheet/StyleSheet.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/StyleSheet/StyleSheetTypes.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/StyleSheet/processColor.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Text/Text.d.ts (98%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/TurboModule/RCTExport.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/TurboModule/TurboModuleRegistry.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Types/CodegenTypesNamespace.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Types/CoreEventTypes.d.ts (99%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Utilities/Appearance.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Utilities/BackHandler.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Utilities/DevSettings.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Utilities/Dimensions.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Utilities/PixelRatio.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Utilities/Platform.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Utilities/codegenNativeCommands.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Utilities/codegenNativeComponent.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/Vibration/Vibration.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/vendor/core/ErrorUtils.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/Libraries/vendor/emitter/EventEmitter.d.ts (100%) create mode 100644 packages/react-native/types_DEPRECATED/index.d.ts rename packages/react-native/{types => types_DEPRECATED}/modules/BatchedBridge.d.ts (100%) rename packages/react-native/{types => types_DEPRECATED}/modules/Codegen.d.ts (100%) rename packages/react-native/{types => types_DEPRECATED}/modules/Devtools.d.ts (100%) rename packages/react-native/{types => types_DEPRECATED}/private/TimerMixin.d.ts (100%) rename packages/react-native/{types => types_DEPRECATED}/private/Utilities.d.ts (100%) rename packages/react-native/{types => types_DEPRECATED}/public/DeprecatedPropertiesAlias.d.ts (100%) rename packages/react-native/{types => types_DEPRECATED}/public/Insets.d.ts (100%) rename packages/react-native/{types => types_DEPRECATED}/public/ReactNativeRenderer.d.ts (98%) rename packages/react-native/{types => types_DEPRECATED}/public/ReactNativeTypes.d.ts (100%) rename packages/react-native/{ => types_DEPRECATED}/src/private/devsupport/devmenu/DevMenu.d.ts (100%) diff --git a/packages/react-native/__typetests__/tsconfig.legacy.json b/packages/react-native/__typetests__/tsconfig.legacy.json index 3aea5153dceb..6f5e91b9e551 100644 --- a/packages/react-native/__typetests__/tsconfig.legacy.json +++ b/packages/react-native/__typetests__/tsconfig.legacy.json @@ -2,7 +2,7 @@ "$schema": "https://json.schemastore.org/tsconfig", // Legacy variant: Opts into the `"react-native-legacy-deep-imports"` export // condition so `react-native` and `react-native/Libraries/*` resolve to the - // hand-written types in `types/`. + // hand-written types in `types_DEPRECATED/`. "extends": "./tsconfig.json", "compilerOptions": { "customConditions": ["react-native-legacy-deep-imports"] diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 8b761ac0ff60..d2edc6fe5c13 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -29,12 +29,12 @@ "main": "./index.js", "exports": { ".": { - "react-native-legacy-deep-imports": "./types/index.d.ts", + "react-native-legacy-deep-imports": "./types_DEPRECATED/index.d.ts", "types": "./types_generated/index.d.ts", "default": "./index.js" }, "./Libraries/*": { - "react-native-legacy-deep-imports": "./Libraries/*.d.ts", + "react-native-legacy-deep-imports": "./types_DEPRECATED/Libraries/*.d.ts", "types": null, "default": "./Libraries/*.js" }, @@ -123,7 +123,7 @@ "src", "!src/private/testing", "third-party-podspecs", - "types", + "types_DEPRECATED", "types_generated", "!**/__docs__/**", "!**/__fixtures__/**", diff --git a/packages/react-native/src/types/ErrorUtils.d.ts b/packages/react-native/src/types/ErrorUtils.d.ts new file mode 100644 index 000000000000..b97d0ede44e0 --- /dev/null +++ b/packages/react-native/src/types/ErrorUtils.d.ts @@ -0,0 +1,17 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + +// From @react-native/js-polyfills + +type ErrorHandlerCallback = (error: any, isFatal?: boolean) => void; + +export interface ErrorUtils { + setGlobalHandler: (callback: ErrorHandlerCallback) => void; + getGlobalHandler: () => ErrorHandlerCallback; +} diff --git a/packages/react-native/src/types/globals.d.ts b/packages/react-native/src/types/globals.d.ts index 98f824c62b84..a3614af9e5f9 100644 --- a/packages/react-native/src/types/globals.d.ts +++ b/packages/react-native/src/types/globals.d.ts @@ -7,7 +7,7 @@ * @format */ -import type {ErrorUtils} from '../../Libraries/vendor/core/ErrorUtils'; +import type {ErrorUtils} from './ErrorUtils'; declare global { interface NodeRequire { diff --git a/packages/react-native/types/index.d.ts b/packages/react-native/types/index.d.ts deleted file mode 100644 index f410d3304588..000000000000 --- a/packages/react-native/types/index.d.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -// Definitions by: Eloy Durán -// HuHuanming -// Kyle Roach -// Tim Wang -// Kamal Mahyuddin -// Alex Dunne -// Manuel Alabor -// Michele Bombardi -// Martin van Dam -// Kacper Wiszczuk -// Ryan Nickel -// Souvik Ghosh -// Cheng Gibson -// Saransh Kataria -// Wojciech Tyczynski -// Jake Bloom -// Ceyhun Ozugur -// Mike Martin -// Theo Henry de Villeneuve -// Romain Faust -// Be Birchall -// Jesse Katsumata -// Xianming Zhong -// Valentyn Tolochko -// Sergey Sychev -// Kelvin Chu -// Daiki Ihara -// Abe Dolinger -// Dominique Richard -// Mohamed Shaban -// Jérémy Barbet -// David Sheldrick -// Natsathorn Yuthakovit -// ConnectDotz -// Alexey Molchan -// Alex Brazier -// Arafat Zahan -// Pedro Hernández -// Sebastian Silbermann -// Zihan Chen -// Lorenzo Sciandra -// Mateusz Wit -// Saad Najmi -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Minimum TypeScript Version: 4.9 - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// USING: these definitions are meant to be used with the TSC compiler target set to at least ES2015. -// -// USAGE EXAMPLES: check the RNTSExplorer project at https://github.com/bgrieder/RNTSExplorer -// -// CONTRIBUTING: please open pull requests -// -// CREDITS: This work is based on an original work made by Bernd Paradies: https://github.com/bparadie -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/// -/// -/// -/// - -export * from '../Libraries/ActionSheetIOS/ActionSheetIOS'; -export * from '../Libraries/Alert/Alert'; -export * from '../Libraries/Animated/Animated'; -export * from '../Libraries/Animated/Easing'; -export * from '../Libraries/Animated/useAnimatedValue'; -export * from '../Libraries/Animated/useAnimatedValueXY'; -export * from '../Libraries/Animated/useAnimatedColor'; -export * from '../Libraries/AppState/AppState'; -export * from '../Libraries/BatchedBridge/NativeModules'; -export * from '../Libraries/Components/AccessibilityInfo/AccessibilityInfo'; -export * from '../Libraries/Components/ActivityIndicator/ActivityIndicator'; -export * from '../Libraries/Components/Clipboard/Clipboard'; -export * from '../Libraries/Components/DrawerAndroid/DrawerLayoutAndroid'; -export * from '../Libraries/Components/Keyboard/Keyboard'; -export * from '../Libraries/Components/Keyboard/KeyboardAvoidingView'; -export * from '../Libraries/Components/LayoutConformance/LayoutConformance'; -export * from '../Libraries/Components/Pressable/Pressable'; -export * from '../Libraries/Components/ProgressBarAndroid/ProgressBarAndroid'; -export * from '../Libraries/Components/RefreshControl/RefreshControl'; -export * from '../Libraries/Components/SafeAreaView/SafeAreaView'; -export * from '../Libraries/Components/ScrollView/ScrollView'; -export * from '../Libraries/Components/StatusBar/StatusBar'; -export * from '../Libraries/Components/Switch/Switch'; -export * from '../Libraries/Components/TextInput/InputAccessoryView'; -export * from '../Libraries/Components/TextInput/TextInput'; -export * from '../Libraries/Components/ToastAndroid/ToastAndroid'; -export * from '../Libraries/Components/Touchable/Touchable'; -export * from '../Libraries/Components/Touchable/TouchableHighlight'; -export * from '../Libraries/Components/Touchable/TouchableNativeFeedback'; -export * from '../Libraries/Components/Touchable/TouchableOpacity'; -export * from '../Libraries/Components/Touchable/TouchableWithoutFeedback'; -export * from '../Libraries/Components/View/View'; -export * from '../Libraries/Components/View/ViewAccessibility'; -export * from '../Libraries/Components/View/ViewPropTypes'; -export * from '../Libraries/Components/Button'; -export * from '../Libraries/Core/registerCallableModule'; -export * as NativeComponentRegistry from '../Libraries/NativeComponent/NativeComponentRegistry'; -export * from '../Libraries/EventEmitter/NativeEventEmitter'; -export * from '../Libraries/EventEmitter/RCTDeviceEventEmitter'; -export * from '../Libraries/EventEmitter/RCTNativeAppEventEmitter'; -export * from '../Libraries/Image/Image'; -export * from '../Libraries/Image/ImageResizeMode'; -export * from '../Libraries/Image/ImageSource'; -export * from '../Libraries/Interaction/PanResponder'; -export * from '../Libraries/LayoutAnimation/LayoutAnimation'; -export * from '../Libraries/Linking/Linking'; -export * from '../Libraries/Lists/FlatList'; -export * from '../Libraries/Lists/SectionList'; -export * from '@react-native/virtualized-lists'; -export * from '../Libraries/LogBox/LogBox'; -export * from '../Libraries/Modal/Modal'; -export * as Systrace from '../Libraries/Performance/Systrace'; -export * from '../Libraries/PermissionsAndroid/PermissionsAndroid'; -export * from '../Libraries/PushNotificationIOS/PushNotificationIOS'; -export * from '../Libraries/ReactNative/AppRegistry'; -export * from '../Libraries/ReactNative/I18nManager'; -export * from '../Libraries/ReactNative/RendererProxy'; -export * from '../Libraries/ReactNative/RootTag'; -export * from '../Libraries/ReactNative/UIManager'; -export * from '../Libraries/ReactNative/requireNativeComponent'; -export * from '../Libraries/Settings/Settings'; -export * from '../Libraries/Share/Share'; -export * from '../Libraries/StyleSheet/PlatformColorValueTypesIOS'; -export * from '../Libraries/StyleSheet/PlatformColorValueTypes'; -export * from '../Libraries/StyleSheet/StyleSheet'; -export * from '../Libraries/StyleSheet/StyleSheetTypes'; -export * from '../Libraries/StyleSheet/processColor'; -export * from '../Libraries/Text/Text'; -export * from '../Libraries/TurboModule/RCTExport'; -export * as TurboModuleRegistry from '../Libraries/TurboModule/TurboModuleRegistry'; -export * as CodegenTypes from '../Libraries/Types/CodegenTypesNamespace'; -export * from '../Libraries/Types/CoreEventTypes'; -export * from '../Libraries/Utilities/Appearance'; -export * from '../Libraries/Utilities/BackHandler'; -export * from '../src/private/devsupport/devmenu/DevMenu'; -export * from '../Libraries/Utilities/DevSettings'; -export * from '../Libraries/Utilities/Dimensions'; -export * from '../Libraries/Utilities/PixelRatio'; -export * from '../Libraries/Utilities/Platform'; -export * from '../Libraries/Vibration/Vibration'; -export * from '../Libraries/vendor/core/ErrorUtils'; -export { - EmitterSubscription, - EventSubscription, -} from '../Libraries/vendor/emitter/EventEmitter'; - -export * from './public/DeprecatedPropertiesAlias'; -export * from './public/Insets'; -export * from './public/ReactNativeRenderer'; -export * from './public/ReactNativeTypes'; - -export {default as codegenNativeCommands} from '../Libraries/Utilities/codegenNativeCommands'; -export {default as codegenNativeComponent} from '../Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts b/packages/react-native/types_DEPRECATED/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts similarity index 100% rename from packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts diff --git a/packages/react-native/Libraries/Alert/Alert.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Alert/Alert.d.ts similarity index 100% rename from packages/react-native/Libraries/Alert/Alert.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Alert/Alert.d.ts diff --git a/packages/react-native/Libraries/Animated/Animated.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Animated/Animated.d.ts similarity index 100% rename from packages/react-native/Libraries/Animated/Animated.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Animated/Animated.d.ts diff --git a/packages/react-native/Libraries/Animated/Easing.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Animated/Easing.d.ts similarity index 100% rename from packages/react-native/Libraries/Animated/Easing.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Animated/Easing.d.ts diff --git a/packages/react-native/Libraries/Animated/useAnimatedColor.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Animated/useAnimatedColor.d.ts similarity index 100% rename from packages/react-native/Libraries/Animated/useAnimatedColor.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Animated/useAnimatedColor.d.ts diff --git a/packages/react-native/Libraries/Animated/useAnimatedValue.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Animated/useAnimatedValue.d.ts similarity index 100% rename from packages/react-native/Libraries/Animated/useAnimatedValue.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Animated/useAnimatedValue.d.ts diff --git a/packages/react-native/Libraries/Animated/useAnimatedValueXY.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Animated/useAnimatedValueXY.d.ts similarity index 100% rename from packages/react-native/Libraries/Animated/useAnimatedValueXY.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Animated/useAnimatedValueXY.d.ts diff --git a/packages/react-native/Libraries/AppState/AppState.d.ts b/packages/react-native/types_DEPRECATED/Libraries/AppState/AppState.d.ts similarity index 100% rename from packages/react-native/Libraries/AppState/AppState.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/AppState/AppState.d.ts diff --git a/packages/react-native/Libraries/BatchedBridge/NativeModules.d.ts b/packages/react-native/types_DEPRECATED/Libraries/BatchedBridge/NativeModules.d.ts similarity index 100% rename from packages/react-native/Libraries/BatchedBridge/NativeModules.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/BatchedBridge/NativeModules.d.ts diff --git a/packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts similarity index 98% rename from packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts index f2405fd59b5e..80e5fe6a3295 100644 --- a/packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts @@ -7,7 +7,7 @@ * @format */ -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {EmitterSubscription} from '../../vendor/emitter/EventEmitter'; type AccessibilityChangeEventName = diff --git a/packages/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts similarity index 94% rename from packages/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts index 717e4312c7d8..089d87e61b1b 100644 --- a/packages/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts @@ -8,8 +8,8 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {Constructor} from '../../../private/Utilities'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {ColorValue, StyleProp} from '../../StyleSheet/StyleSheet'; import {ViewStyle} from '../../StyleSheet/StyleSheetTypes'; import {LayoutChangeEvent} from '../../Types/CoreEventTypes'; diff --git a/packages/react-native/Libraries/Components/Button.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Button.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/Button.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Button.d.ts diff --git a/packages/react-native/Libraries/Components/Clipboard/Clipboard.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Clipboard/Clipboard.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/Clipboard/Clipboard.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Clipboard/Clipboard.d.ts diff --git a/packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts similarity index 97% rename from packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts index 6a5f7a7adb15..17315a0e8480 100644 --- a/packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts @@ -8,8 +8,8 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {Constructor} from '../../../private/Utilities'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {ColorValue} from '../../StyleSheet/StyleSheet'; import { NativeSyntheticEvent, diff --git a/packages/react-native/Libraries/Components/Keyboard/Keyboard.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Keyboard/Keyboard.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/Keyboard/Keyboard.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Keyboard/Keyboard.d.ts diff --git a/packages/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts similarity index 92% rename from packages/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts index 42bff4a51912..7b7b8c9bf459 100644 --- a/packages/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts @@ -8,8 +8,8 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {TimerMixin} from '../../../types/private/TimerMixin'; +import {Constructor} from '../../../private/Utilities'; +import {TimerMixin} from '../../../private/TimerMixin'; import {StyleProp} from '../../StyleSheet/StyleSheet'; import {ViewStyle} from '../../StyleSheet/StyleSheetTypes'; import {ViewProps} from '../View/ViewPropTypes'; diff --git a/packages/react-native/Libraries/Components/LayoutConformance/LayoutConformance.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/LayoutConformance/LayoutConformance.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/LayoutConformance/LayoutConformance.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/LayoutConformance/LayoutConformance.d.ts diff --git a/packages/react-native/Libraries/Components/Pressable/Pressable.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Pressable/Pressable.d.ts similarity index 98% rename from packages/react-native/Libraries/Components/Pressable/Pressable.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Pressable/Pressable.d.ts index aad64fe3183e..bd5144fe08da 100644 --- a/packages/react-native/Libraries/Components/Pressable/Pressable.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/Pressable/Pressable.d.ts @@ -8,7 +8,7 @@ */ import type * as React from 'react'; -import {Insets} from '../../../types/public/Insets'; +import {Insets} from '../../../public/Insets'; import {ColorValue, StyleProp} from '../../StyleSheet/StyleSheet'; import {ViewStyle} from '../../StyleSheet/StyleSheetTypes'; import { diff --git a/packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts similarity index 94% rename from packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts index f7f4995703d4..102613ace46b 100644 --- a/packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts @@ -8,8 +8,8 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {Constructor} from '../../../private/Utilities'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {ColorValue} from '../../StyleSheet/StyleSheet'; import {ViewProps} from '../View/ViewPropTypes'; diff --git a/packages/react-native/Libraries/Components/RefreshControl/RefreshControl.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/RefreshControl/RefreshControl.d.ts similarity index 94% rename from packages/react-native/Libraries/Components/RefreshControl/RefreshControl.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/RefreshControl/RefreshControl.d.ts index 99a1357825f7..d49a78d8dc7b 100644 --- a/packages/react-native/Libraries/Components/RefreshControl/RefreshControl.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/RefreshControl/RefreshControl.d.ts @@ -8,8 +8,8 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {Constructor} from '../../../private/Utilities'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {ColorValue} from '../../StyleSheet/StyleSheet'; import {ViewProps} from '../View/ViewPropTypes'; diff --git a/packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/SafeAreaView/SafeAreaView.d.ts similarity index 89% rename from packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/SafeAreaView/SafeAreaView.d.ts index 03c5dced183f..590928373daf 100644 --- a/packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/SafeAreaView/SafeAreaView.d.ts @@ -8,8 +8,8 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {Constructor} from '../../../private/Utilities'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {ViewProps} from '../View/ViewPropTypes'; /** diff --git a/packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/ScrollView/ScrollView.d.ts similarity index 99% rename from packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/ScrollView/ScrollView.d.ts index 6d9a90b3d5a9..d57d50b425e3 100644 --- a/packages/react-native/Libraries/Components/ScrollView/ScrollView.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/ScrollView/ScrollView.d.ts @@ -8,9 +8,9 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {Insets} from '../../../types/public/Insets'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {Constructor} from '../../../private/Utilities'; +import {Insets} from '../../../public/Insets'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {ColorValue, StyleProp} from '../../StyleSheet/StyleSheet'; import {ViewStyle} from '../../StyleSheet/StyleSheetTypes'; import { diff --git a/packages/react-native/Libraries/Components/StatusBar/StatusBar.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/StatusBar/StatusBar.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/StatusBar/StatusBar.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/StatusBar/StatusBar.d.ts diff --git a/packages/react-native/Libraries/Components/Switch/Switch.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Switch/Switch.d.ts similarity index 95% rename from packages/react-native/Libraries/Components/Switch/Switch.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Switch/Switch.d.ts index 35f501b70b66..955f1466f9c2 100644 --- a/packages/react-native/Libraries/Components/Switch/Switch.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/Switch/Switch.d.ts @@ -8,8 +8,8 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {Constructor} from '../../../private/Utilities'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {ColorValue, StyleProp} from '../../StyleSheet/StyleSheet'; import {ViewStyle} from '../../StyleSheet/StyleSheetTypes'; import {ViewProps} from '../View/ViewPropTypes'; diff --git a/packages/react-native/Libraries/Components/TextInput/InputAccessoryView.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/TextInput/InputAccessoryView.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/TextInput/InputAccessoryView.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/TextInput/InputAccessoryView.d.ts diff --git a/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/TextInput/TextInput.d.ts similarity index 99% rename from packages/react-native/Libraries/Components/TextInput/TextInput.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/TextInput/TextInput.d.ts index 9cb01c24c646..cc5dc34dd6bb 100644 --- a/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/TextInput/TextInput.d.ts @@ -8,9 +8,9 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {TimerMixin} from '../../../types/private/TimerMixin'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {Constructor} from '../../../private/Utilities'; +import {TimerMixin} from '../../../private/TimerMixin'; +import {HostInstance} from '../../../public/ReactNativeTypes'; import {ColorValue, StyleProp} from '../../StyleSheet/StyleSheet'; import {TextStyle} from '../../StyleSheet/StyleSheetTypes'; import { diff --git a/packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/ToastAndroid/ToastAndroid.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/ToastAndroid/ToastAndroid.d.ts diff --git a/packages/react-native/Libraries/Components/Touchable/Touchable.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/Touchable.d.ts similarity index 98% rename from packages/react-native/Libraries/Components/Touchable/Touchable.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/Touchable.d.ts index 3c0065c9e02b..932c51937430 100644 --- a/packages/react-native/Libraries/Components/Touchable/Touchable.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/Touchable.d.ts @@ -8,7 +8,7 @@ */ import type * as React from 'react'; -import {Insets} from '../../../types/public/Insets'; +import {Insets} from '../../../public/Insets'; import {GestureResponderEvent} from '../../Types/CoreEventTypes'; /** diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableHighlight.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableHighlight.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/Touchable/TouchableHighlight.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableHighlight.d.ts diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts similarity index 98% rename from packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts index e4b600844546..78f41f4c7663 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts @@ -8,7 +8,7 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; +import {Constructor} from '../../../private/Utilities'; import {ColorValue} from '../../StyleSheet/StyleSheet'; import {TouchableMixin} from './Touchable'; diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableOpacity.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/Touchable/TouchableOpacity.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableOpacity.d.ts diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts similarity index 96% rename from packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts index c47baa7c57d8..b6eb2ee65845 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts @@ -8,9 +8,9 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; -import {TimerMixin} from '../../../types/private/TimerMixin'; -import {Insets} from '../../../types/public/Insets'; +import {Constructor} from '../../../private/Utilities'; +import {TimerMixin} from '../../../private/TimerMixin'; +import {Insets} from '../../../public/Insets'; import {StyleProp} from '../../StyleSheet/StyleSheet'; import {ViewStyle} from '../../StyleSheet/StyleSheetTypes'; import { diff --git a/packages/react-native/Libraries/Components/View/View.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/View/View.d.ts similarity index 88% rename from packages/react-native/Libraries/Components/View/View.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/View/View.d.ts index 8a0556dfd030..fa6d80823bd9 100644 --- a/packages/react-native/Libraries/Components/View/View.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/View/View.d.ts @@ -8,9 +8,9 @@ */ import type * as React from 'react'; -import {Constructor} from '../../../types/private/Utilities'; +import {Constructor} from '../../../private/Utilities'; import {ViewProps} from './ViewPropTypes'; -import {HostInstance} from '../../../types/public/ReactNativeTypes'; +import {HostInstance} from '../../../public/ReactNativeTypes'; /** * The most fundamental component for building UI, View is a container that supports layout with flexbox, style, some touch handling, diff --git a/packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/View/ViewAccessibility.d.ts similarity index 100% rename from packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/View/ViewAccessibility.d.ts diff --git a/packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Components/View/ViewPropTypes.d.ts similarity index 98% rename from packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Components/View/ViewPropTypes.d.ts index 86e72f419fdd..36221d845bf4 100644 --- a/packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Components/View/ViewPropTypes.d.ts @@ -8,8 +8,8 @@ */ import type * as React from 'react'; -import {Insets} from '../../../types/public/Insets'; -import {GestureResponderHandlers} from '../../../types/public/ReactNativeRenderer'; +import {Insets} from '../../../public/Insets'; +import {GestureResponderHandlers} from '../../../public/ReactNativeRenderer'; import {StyleProp} from '../../StyleSheet/StyleSheet'; import {ViewStyle} from '../../StyleSheet/StyleSheetTypes'; import { diff --git a/packages/react-native/Libraries/Core/registerCallableModule.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Core/registerCallableModule.d.ts similarity index 100% rename from packages/react-native/Libraries/Core/registerCallableModule.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Core/registerCallableModule.d.ts diff --git a/packages/react-native/Libraries/EventEmitter/NativeEventEmitter.d.ts b/packages/react-native/types_DEPRECATED/Libraries/EventEmitter/NativeEventEmitter.d.ts similarity index 100% rename from packages/react-native/Libraries/EventEmitter/NativeEventEmitter.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/EventEmitter/NativeEventEmitter.d.ts diff --git a/packages/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts b/packages/react-native/types_DEPRECATED/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts similarity index 100% rename from packages/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts diff --git a/packages/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts b/packages/react-native/types_DEPRECATED/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts similarity index 100% rename from packages/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts diff --git a/packages/react-native/Libraries/Image/Image.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Image/Image.d.ts similarity index 98% rename from packages/react-native/Libraries/Image/Image.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Image/Image.d.ts index e889dcbb0e3b..5f9da1e65657 100644 --- a/packages/react-native/Libraries/Image/Image.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Image/Image.d.ts @@ -8,10 +8,10 @@ */ import * as React from 'react'; -import {Constructor} from '../../types/private/Utilities'; +import {Constructor} from '../../private/Utilities'; import {AccessibilityProps} from '../Components/View/ViewAccessibility'; -import {Insets} from '../../types/public/Insets'; -import {HostInstance} from '../../types/public/ReactNativeTypes'; +import {Insets} from '../../public/Insets'; +import {HostInstance} from '../../public/ReactNativeTypes'; import {ColorValue, StyleProp} from '../StyleSheet/StyleSheet'; import {ImageStyle, ViewStyle} from '../StyleSheet/StyleSheetTypes'; import {LayoutChangeEvent, NativeSyntheticEvent} from '../Types/CoreEventTypes'; diff --git a/packages/react-native/Libraries/Image/ImageResizeMode.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Image/ImageResizeMode.d.ts similarity index 100% rename from packages/react-native/Libraries/Image/ImageResizeMode.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Image/ImageResizeMode.d.ts diff --git a/packages/react-native/Libraries/Image/ImageSource.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Image/ImageSource.d.ts similarity index 100% rename from packages/react-native/Libraries/Image/ImageSource.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Image/ImageSource.d.ts diff --git a/packages/react-native/Libraries/Interaction/PanResponder.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Interaction/PanResponder.d.ts similarity index 98% rename from packages/react-native/Libraries/Interaction/PanResponder.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Interaction/PanResponder.d.ts index 8a2d4f2a0ef1..e615314048d6 100644 --- a/packages/react-native/Libraries/Interaction/PanResponder.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Interaction/PanResponder.d.ts @@ -7,7 +7,7 @@ * @format */ -import {GestureResponderHandlers} from '../../types/public/ReactNativeRenderer'; +import {GestureResponderHandlers} from '../../public/ReactNativeRenderer'; import {GestureResponderEvent} from '../Types/CoreEventTypes'; export interface PanResponderGestureState { diff --git a/packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.d.ts b/packages/react-native/types_DEPRECATED/Libraries/LayoutAnimation/LayoutAnimation.d.ts similarity index 100% rename from packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/LayoutAnimation/LayoutAnimation.d.ts diff --git a/packages/react-native/Libraries/Linking/Linking.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Linking/Linking.d.ts similarity index 100% rename from packages/react-native/Libraries/Linking/Linking.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Linking/Linking.d.ts diff --git a/packages/react-native/Libraries/Lists/FlatList.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Lists/FlatList.d.ts similarity index 100% rename from packages/react-native/Libraries/Lists/FlatList.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Lists/FlatList.d.ts diff --git a/packages/react-native/Libraries/Lists/SectionList.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Lists/SectionList.d.ts similarity index 100% rename from packages/react-native/Libraries/Lists/SectionList.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Lists/SectionList.d.ts diff --git a/packages/react-native/Libraries/LogBox/LogBox.d.ts b/packages/react-native/types_DEPRECATED/Libraries/LogBox/LogBox.d.ts similarity index 100% rename from packages/react-native/Libraries/LogBox/LogBox.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/LogBox/LogBox.d.ts diff --git a/packages/react-native/Libraries/Modal/Modal.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Modal/Modal.d.ts similarity index 100% rename from packages/react-native/Libraries/Modal/Modal.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Modal/Modal.d.ts diff --git a/packages/react-native/Libraries/NativeComponent/NativeComponentRegistry.d.ts b/packages/react-native/types_DEPRECATED/Libraries/NativeComponent/NativeComponentRegistry.d.ts similarity index 97% rename from packages/react-native/Libraries/NativeComponent/NativeComponentRegistry.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/NativeComponent/NativeComponentRegistry.d.ts index 22c412f05fec..6e5db59dde16 100644 --- a/packages/react-native/Libraries/NativeComponent/NativeComponentRegistry.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/NativeComponent/NativeComponentRegistry.d.ts @@ -7,7 +7,7 @@ * @format */ -import type {HostComponent} from '../../types/public/ReactNativeTypes'; +import type {HostComponent} from '../../public/ReactNativeTypes'; import * as React from 'react'; /** diff --git a/packages/react-native/Libraries/Performance/Systrace.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Performance/Systrace.d.ts similarity index 100% rename from packages/react-native/Libraries/Performance/Systrace.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Performance/Systrace.d.ts diff --git a/packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts b/packages/react-native/types_DEPRECATED/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts similarity index 100% rename from packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts diff --git a/packages/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts b/packages/react-native/types_DEPRECATED/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts similarity index 100% rename from packages/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts diff --git a/packages/react-native/Libraries/ReactNative/AppRegistry.d.ts b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/AppRegistry.d.ts similarity index 100% rename from packages/react-native/Libraries/ReactNative/AppRegistry.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/ReactNative/AppRegistry.d.ts diff --git a/packages/react-native/Libraries/ReactNative/I18nManager.d.ts b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/I18nManager.d.ts similarity index 100% rename from packages/react-native/Libraries/ReactNative/I18nManager.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/ReactNative/I18nManager.d.ts diff --git a/packages/react-native/Libraries/ReactNative/IPerformanceLogger.d.ts b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/IPerformanceLogger.d.ts similarity index 100% rename from packages/react-native/Libraries/ReactNative/IPerformanceLogger.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/ReactNative/IPerformanceLogger.d.ts diff --git a/packages/react-native/Libraries/ReactNative/RendererProxy.d.ts b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/RendererProxy.d.ts similarity index 100% rename from packages/react-native/Libraries/ReactNative/RendererProxy.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/ReactNative/RendererProxy.d.ts diff --git a/packages/react-native/Libraries/ReactNative/RootTag.d.ts b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/RootTag.d.ts similarity index 100% rename from packages/react-native/Libraries/ReactNative/RootTag.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/ReactNative/RootTag.d.ts diff --git a/packages/react-native/Libraries/ReactNative/UIManager.d.ts b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/UIManager.d.ts similarity index 98% rename from packages/react-native/Libraries/ReactNative/UIManager.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/ReactNative/UIManager.d.ts index f6c59166b5f7..b277186888c8 100644 --- a/packages/react-native/Libraries/ReactNative/UIManager.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/UIManager.d.ts @@ -12,7 +12,7 @@ import { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback, -} from '../../types/public/ReactNativeTypes'; +} from '../../public/ReactNativeTypes'; export interface UIManagerStatic { /** diff --git a/packages/react-native/Libraries/ReactNative/requireNativeComponent.d.ts b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/requireNativeComponent.d.ts similarity index 91% rename from packages/react-native/Libraries/ReactNative/requireNativeComponent.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/ReactNative/requireNativeComponent.d.ts index 7f90a05b8352..e455725878ce 100644 --- a/packages/react-native/Libraries/ReactNative/requireNativeComponent.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/ReactNative/requireNativeComponent.d.ts @@ -7,7 +7,7 @@ * @format */ -import {HostComponent} from '../../types/public/ReactNativeTypes'; +import {HostComponent} from '../../public/ReactNativeTypes'; /** * Creates values that can be used like React components which represent native diff --git a/packages/react-native/Libraries/Settings/Settings.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Settings/Settings.d.ts similarity index 100% rename from packages/react-native/Libraries/Settings/Settings.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Settings/Settings.d.ts diff --git a/packages/react-native/Libraries/Share/Share.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Share/Share.d.ts similarity index 100% rename from packages/react-native/Libraries/Share/Share.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Share/Share.d.ts diff --git a/packages/react-native/Libraries/StyleSheet/PlatformColorValueTypes.d.ts b/packages/react-native/types_DEPRECATED/Libraries/StyleSheet/PlatformColorValueTypes.d.ts similarity index 100% rename from packages/react-native/Libraries/StyleSheet/PlatformColorValueTypes.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/StyleSheet/PlatformColorValueTypes.d.ts diff --git a/packages/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts b/packages/react-native/types_DEPRECATED/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts similarity index 100% rename from packages/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts diff --git a/packages/react-native/Libraries/StyleSheet/StyleSheet.d.ts b/packages/react-native/types_DEPRECATED/Libraries/StyleSheet/StyleSheet.d.ts similarity index 100% rename from packages/react-native/Libraries/StyleSheet/StyleSheet.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/StyleSheet/StyleSheet.d.ts diff --git a/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts b/packages/react-native/types_DEPRECATED/Libraries/StyleSheet/StyleSheetTypes.d.ts similarity index 100% rename from packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/StyleSheet/StyleSheetTypes.d.ts diff --git a/packages/react-native/Libraries/StyleSheet/processColor.d.ts b/packages/react-native/types_DEPRECATED/Libraries/StyleSheet/processColor.d.ts similarity index 100% rename from packages/react-native/Libraries/StyleSheet/processColor.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/StyleSheet/processColor.d.ts diff --git a/packages/react-native/Libraries/Text/Text.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Text/Text.d.ts similarity index 98% rename from packages/react-native/Libraries/Text/Text.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Text/Text.d.ts index cdb26800b76c..25d8d8abe1ef 100644 --- a/packages/react-native/Libraries/Text/Text.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Text/Text.d.ts @@ -8,9 +8,9 @@ */ import type * as React from 'react'; -import {Constructor} from '../../types/private/Utilities'; +import {Constructor} from '../../private/Utilities'; import {AccessibilityProps} from '../Components/View/ViewAccessibility'; -import {HostInstance} from '../../types/public/ReactNativeTypes'; +import {HostInstance} from '../../public/ReactNativeTypes'; import {ColorValue, StyleProp} from '../StyleSheet/StyleSheet'; import {TextStyle, ViewStyle} from '../StyleSheet/StyleSheetTypes'; import { diff --git a/packages/react-native/Libraries/TurboModule/RCTExport.d.ts b/packages/react-native/types_DEPRECATED/Libraries/TurboModule/RCTExport.d.ts similarity index 100% rename from packages/react-native/Libraries/TurboModule/RCTExport.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/TurboModule/RCTExport.d.ts diff --git a/packages/react-native/Libraries/TurboModule/TurboModuleRegistry.d.ts b/packages/react-native/types_DEPRECATED/Libraries/TurboModule/TurboModuleRegistry.d.ts similarity index 100% rename from packages/react-native/Libraries/TurboModule/TurboModuleRegistry.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/TurboModule/TurboModuleRegistry.d.ts diff --git a/packages/react-native/Libraries/Types/CodegenTypesNamespace.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Types/CodegenTypesNamespace.d.ts similarity index 100% rename from packages/react-native/Libraries/Types/CodegenTypesNamespace.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Types/CodegenTypesNamespace.d.ts diff --git a/packages/react-native/Libraries/Types/CoreEventTypes.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Types/CoreEventTypes.d.ts similarity index 99% rename from packages/react-native/Libraries/Types/CoreEventTypes.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Types/CoreEventTypes.d.ts index e55fae6b7b8d..8f47aacbff13 100644 --- a/packages/react-native/Libraries/Types/CoreEventTypes.d.ts +++ b/packages/react-native/types_DEPRECATED/Libraries/Types/CoreEventTypes.d.ts @@ -8,7 +8,7 @@ */ import type * as React from 'react'; -import {HostInstance} from '../../types/public/ReactNativeTypes'; +import {HostInstance} from '../../public/ReactNativeTypes'; export interface LayoutRectangle { x: number; diff --git a/packages/react-native/Libraries/Utilities/Appearance.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Utilities/Appearance.d.ts similarity index 100% rename from packages/react-native/Libraries/Utilities/Appearance.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Utilities/Appearance.d.ts diff --git a/packages/react-native/Libraries/Utilities/BackHandler.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Utilities/BackHandler.d.ts similarity index 100% rename from packages/react-native/Libraries/Utilities/BackHandler.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Utilities/BackHandler.d.ts diff --git a/packages/react-native/Libraries/Utilities/DevSettings.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Utilities/DevSettings.d.ts similarity index 100% rename from packages/react-native/Libraries/Utilities/DevSettings.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Utilities/DevSettings.d.ts diff --git a/packages/react-native/Libraries/Utilities/Dimensions.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Utilities/Dimensions.d.ts similarity index 100% rename from packages/react-native/Libraries/Utilities/Dimensions.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Utilities/Dimensions.d.ts diff --git a/packages/react-native/Libraries/Utilities/PixelRatio.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Utilities/PixelRatio.d.ts similarity index 100% rename from packages/react-native/Libraries/Utilities/PixelRatio.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Utilities/PixelRatio.d.ts diff --git a/packages/react-native/Libraries/Utilities/Platform.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Utilities/Platform.d.ts similarity index 100% rename from packages/react-native/Libraries/Utilities/Platform.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Utilities/Platform.d.ts diff --git a/packages/react-native/Libraries/Utilities/codegenNativeCommands.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Utilities/codegenNativeCommands.d.ts similarity index 100% rename from packages/react-native/Libraries/Utilities/codegenNativeCommands.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Utilities/codegenNativeCommands.d.ts diff --git a/packages/react-native/Libraries/Utilities/codegenNativeComponent.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Utilities/codegenNativeComponent.d.ts similarity index 100% rename from packages/react-native/Libraries/Utilities/codegenNativeComponent.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Utilities/codegenNativeComponent.d.ts diff --git a/packages/react-native/Libraries/Vibration/Vibration.d.ts b/packages/react-native/types_DEPRECATED/Libraries/Vibration/Vibration.d.ts similarity index 100% rename from packages/react-native/Libraries/Vibration/Vibration.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/Vibration/Vibration.d.ts diff --git a/packages/react-native/Libraries/vendor/core/ErrorUtils.d.ts b/packages/react-native/types_DEPRECATED/Libraries/vendor/core/ErrorUtils.d.ts similarity index 100% rename from packages/react-native/Libraries/vendor/core/ErrorUtils.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/vendor/core/ErrorUtils.d.ts diff --git a/packages/react-native/Libraries/vendor/emitter/EventEmitter.d.ts b/packages/react-native/types_DEPRECATED/Libraries/vendor/emitter/EventEmitter.d.ts similarity index 100% rename from packages/react-native/Libraries/vendor/emitter/EventEmitter.d.ts rename to packages/react-native/types_DEPRECATED/Libraries/vendor/emitter/EventEmitter.d.ts diff --git a/packages/react-native/types_DEPRECATED/index.d.ts b/packages/react-native/types_DEPRECATED/index.d.ts new file mode 100644 index 000000000000..b5541260cb62 --- /dev/null +++ b/packages/react-native/types_DEPRECATED/index.d.ts @@ -0,0 +1,165 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + +// Definitions by: Eloy Durán +// HuHuanming +// Kyle Roach +// Tim Wang +// Kamal Mahyuddin +// Alex Dunne +// Manuel Alabor +// Michele Bombardi +// Martin van Dam +// Kacper Wiszczuk +// Ryan Nickel +// Souvik Ghosh +// Cheng Gibson +// Saransh Kataria +// Wojciech Tyczynski +// Jake Bloom +// Ceyhun Ozugur +// Mike Martin +// Theo Henry de Villeneuve +// Romain Faust +// Be Birchall +// Jesse Katsumata +// Xianming Zhong +// Valentyn Tolochko +// Sergey Sychev +// Kelvin Chu +// Daiki Ihara +// Abe Dolinger +// Dominique Richard +// Mohamed Shaban +// Jérémy Barbet +// David Sheldrick +// Natsathorn Yuthakovit +// ConnectDotz +// Alexey Molchan +// Alex Brazier +// Arafat Zahan +// Pedro Hernández +// Sebastian Silbermann +// Zihan Chen +// Lorenzo Sciandra +// Mateusz Wit +// Saad Najmi +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// Minimum TypeScript Version: 4.9 + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// USING: these definitions are meant to be used with the TSC compiler target set to at least ES2015. +// +// USAGE EXAMPLES: check the RNTSExplorer project at https://github.com/bgrieder/RNTSExplorer +// +// CONTRIBUTING: please open pull requests +// +// CREDITS: This work is based on an original work made by Bernd Paradies: https://github.com/bparadie +// +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +/// +/// +/// +/// + +export * from './Libraries/ActionSheetIOS/ActionSheetIOS'; +export * from './Libraries/Alert/Alert'; +export * from './Libraries/Animated/Animated'; +export * from './Libraries/Animated/Easing'; +export * from './Libraries/Animated/useAnimatedValue'; +export * from './Libraries/Animated/useAnimatedValueXY'; +export * from './Libraries/Animated/useAnimatedColor'; +export * from './Libraries/AppState/AppState'; +export * from './Libraries/BatchedBridge/NativeModules'; +export * from './Libraries/Components/AccessibilityInfo/AccessibilityInfo'; +export * from './Libraries/Components/ActivityIndicator/ActivityIndicator'; +export * from './Libraries/Components/Clipboard/Clipboard'; +export * from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid'; +export * from './Libraries/Components/Keyboard/Keyboard'; +export * from './Libraries/Components/Keyboard/KeyboardAvoidingView'; +export * from './Libraries/Components/LayoutConformance/LayoutConformance'; +export * from './Libraries/Components/Pressable/Pressable'; +export * from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid'; +export * from './Libraries/Components/RefreshControl/RefreshControl'; +export * from './Libraries/Components/SafeAreaView/SafeAreaView'; +export * from './Libraries/Components/ScrollView/ScrollView'; +export * from './Libraries/Components/StatusBar/StatusBar'; +export * from './Libraries/Components/Switch/Switch'; +export * from './Libraries/Components/TextInput/InputAccessoryView'; +export * from './Libraries/Components/TextInput/TextInput'; +export * from './Libraries/Components/ToastAndroid/ToastAndroid'; +export * from './Libraries/Components/Touchable/Touchable'; +export * from './Libraries/Components/Touchable/TouchableHighlight'; +export * from './Libraries/Components/Touchable/TouchableNativeFeedback'; +export * from './Libraries/Components/Touchable/TouchableOpacity'; +export * from './Libraries/Components/Touchable/TouchableWithoutFeedback'; +export * from './Libraries/Components/View/View'; +export * from './Libraries/Components/View/ViewAccessibility'; +export * from './Libraries/Components/View/ViewPropTypes'; +export * from './Libraries/Components/Button'; +export * from './Libraries/Core/registerCallableModule'; +export * as NativeComponentRegistry from './Libraries/NativeComponent/NativeComponentRegistry'; +export * from './Libraries/EventEmitter/NativeEventEmitter'; +export * from './Libraries/EventEmitter/RCTDeviceEventEmitter'; +export * from './Libraries/EventEmitter/RCTNativeAppEventEmitter'; +export * from './Libraries/Image/Image'; +export * from './Libraries/Image/ImageResizeMode'; +export * from './Libraries/Image/ImageSource'; +export * from './Libraries/Interaction/PanResponder'; +export * from './Libraries/LayoutAnimation/LayoutAnimation'; +export * from './Libraries/Linking/Linking'; +export * from './Libraries/Lists/FlatList'; +export * from './Libraries/Lists/SectionList'; +export * from '@react-native/virtualized-lists'; +export * from './Libraries/LogBox/LogBox'; +export * from './Libraries/Modal/Modal'; +export * as Systrace from './Libraries/Performance/Systrace'; +export * from './Libraries/PermissionsAndroid/PermissionsAndroid'; +export * from './Libraries/PushNotificationIOS/PushNotificationIOS'; +export * from './Libraries/ReactNative/AppRegistry'; +export * from './Libraries/ReactNative/I18nManager'; +export * from './Libraries/ReactNative/RendererProxy'; +export * from './Libraries/ReactNative/RootTag'; +export * from './Libraries/ReactNative/UIManager'; +export * from './Libraries/ReactNative/requireNativeComponent'; +export * from './Libraries/Settings/Settings'; +export * from './Libraries/Share/Share'; +export * from './Libraries/StyleSheet/PlatformColorValueTypesIOS'; +export * from './Libraries/StyleSheet/PlatformColorValueTypes'; +export * from './Libraries/StyleSheet/StyleSheet'; +export * from './Libraries/StyleSheet/StyleSheetTypes'; +export * from './Libraries/StyleSheet/processColor'; +export * from './Libraries/Text/Text'; +export * from './Libraries/TurboModule/RCTExport'; +export * as TurboModuleRegistry from './Libraries/TurboModule/TurboModuleRegistry'; +export * as CodegenTypes from './Libraries/Types/CodegenTypesNamespace'; +export * from './Libraries/Types/CoreEventTypes'; +export * from './Libraries/Utilities/Appearance'; +export * from './Libraries/Utilities/BackHandler'; +export * from './src/private/devsupport/devmenu/DevMenu'; +export * from './Libraries/Utilities/DevSettings'; +export * from './Libraries/Utilities/Dimensions'; +export * from './Libraries/Utilities/PixelRatio'; +export * from './Libraries/Utilities/Platform'; +export * from './Libraries/Vibration/Vibration'; +export * from './Libraries/vendor/core/ErrorUtils'; +export { + EmitterSubscription, + EventSubscription, +} from './Libraries/vendor/emitter/EventEmitter'; + +export * from './public/DeprecatedPropertiesAlias'; +export * from './public/Insets'; +export * from './public/ReactNativeRenderer'; +export * from './public/ReactNativeTypes'; + +export {default as codegenNativeCommands} from './Libraries/Utilities/codegenNativeCommands'; +export {default as codegenNativeComponent} from './Libraries/Utilities/codegenNativeComponent'; diff --git a/packages/react-native/types/modules/BatchedBridge.d.ts b/packages/react-native/types_DEPRECATED/modules/BatchedBridge.d.ts similarity index 100% rename from packages/react-native/types/modules/BatchedBridge.d.ts rename to packages/react-native/types_DEPRECATED/modules/BatchedBridge.d.ts diff --git a/packages/react-native/types/modules/Codegen.d.ts b/packages/react-native/types_DEPRECATED/modules/Codegen.d.ts similarity index 100% rename from packages/react-native/types/modules/Codegen.d.ts rename to packages/react-native/types_DEPRECATED/modules/Codegen.d.ts diff --git a/packages/react-native/types/modules/Devtools.d.ts b/packages/react-native/types_DEPRECATED/modules/Devtools.d.ts similarity index 100% rename from packages/react-native/types/modules/Devtools.d.ts rename to packages/react-native/types_DEPRECATED/modules/Devtools.d.ts diff --git a/packages/react-native/types/private/TimerMixin.d.ts b/packages/react-native/types_DEPRECATED/private/TimerMixin.d.ts similarity index 100% rename from packages/react-native/types/private/TimerMixin.d.ts rename to packages/react-native/types_DEPRECATED/private/TimerMixin.d.ts diff --git a/packages/react-native/types/private/Utilities.d.ts b/packages/react-native/types_DEPRECATED/private/Utilities.d.ts similarity index 100% rename from packages/react-native/types/private/Utilities.d.ts rename to packages/react-native/types_DEPRECATED/private/Utilities.d.ts diff --git a/packages/react-native/types/public/DeprecatedPropertiesAlias.d.ts b/packages/react-native/types_DEPRECATED/public/DeprecatedPropertiesAlias.d.ts similarity index 100% rename from packages/react-native/types/public/DeprecatedPropertiesAlias.d.ts rename to packages/react-native/types_DEPRECATED/public/DeprecatedPropertiesAlias.d.ts diff --git a/packages/react-native/types/public/Insets.d.ts b/packages/react-native/types_DEPRECATED/public/Insets.d.ts similarity index 100% rename from packages/react-native/types/public/Insets.d.ts rename to packages/react-native/types_DEPRECATED/public/Insets.d.ts diff --git a/packages/react-native/types/public/ReactNativeRenderer.d.ts b/packages/react-native/types_DEPRECATED/public/ReactNativeRenderer.d.ts similarity index 98% rename from packages/react-native/types/public/ReactNativeRenderer.d.ts rename to packages/react-native/types_DEPRECATED/public/ReactNativeRenderer.d.ts index aa2959a04c99..830898537f09 100644 --- a/packages/react-native/types/public/ReactNativeRenderer.d.ts +++ b/packages/react-native/types_DEPRECATED/public/ReactNativeRenderer.d.ts @@ -7,7 +7,7 @@ * @format */ -import {GestureResponderEvent} from '../../Libraries/Types/CoreEventTypes'; +import {GestureResponderEvent} from '../Libraries/Types/CoreEventTypes'; /** * Gesture recognition on mobile devices is much more complicated than web. diff --git a/packages/react-native/types/public/ReactNativeTypes.d.ts b/packages/react-native/types_DEPRECATED/public/ReactNativeTypes.d.ts similarity index 100% rename from packages/react-native/types/public/ReactNativeTypes.d.ts rename to packages/react-native/types_DEPRECATED/public/ReactNativeTypes.d.ts diff --git a/packages/react-native/src/private/devsupport/devmenu/DevMenu.d.ts b/packages/react-native/types_DEPRECATED/src/private/devsupport/devmenu/DevMenu.d.ts similarity index 100% rename from packages/react-native/src/private/devsupport/devmenu/DevMenu.d.ts rename to packages/react-native/types_DEPRECATED/src/private/devsupport/devmenu/DevMenu.d.ts