mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Relocate manual .d.ts definitions under types_DEPRECATED/ (#57513)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57513 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] Reviewed By: christophpurrer Differential Revision: D110602194 fbshipit-source-id: 14fbd9128821516e629f7e5b07cbfc7588fc335e
This commit is contained in:
1 parent
189bb445f6
commit
7cdac2a15c
99 files changed
+229
-212
No files matched your search
@@ -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"]
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
@@ -128,7 +128,7 @@
|
||||
"src",
|
||||
"!src/private/testing",
|
||||
"third-party-podspecs",
|
||||
"types",
|
||||
"types_DEPRECATED",
|
||||
"types_generated",
|
||||
"!**/__docs__/**",
|
||||
"!**/__fixtures__/**",
|
||||
|
||||
+17
@@ -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;
|
||||
}
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import type {ErrorUtils} from '../../Libraries/vendor/core/ErrorUtils';
|
||||
import type {ErrorUtils} from './ErrorUtils';
|
||||
|
||||
declare global {
|
||||
interface NodeRequire {
|
||||
|
||||
-165
@@ -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 <https://github.com/alloy>
|
||||
// HuHuanming <https://github.com/huhuanming>
|
||||
// Kyle Roach <https://github.com/iRoachie>
|
||||
// Tim Wang <https://github.com/timwangdev>
|
||||
// Kamal Mahyuddin <https://github.com/kamal>
|
||||
// Alex Dunne <https://github.com/alexdunne>
|
||||
// Manuel Alabor <https://github.com/swissmanu>
|
||||
// Michele Bombardi <https://github.com/bm-software>
|
||||
// Martin van Dam <https://github.com/mvdam>
|
||||
// Kacper Wiszczuk <https://github.com/esemesek>
|
||||
// Ryan Nickel <https://github.com/mrnickel>
|
||||
// Souvik Ghosh <https://github.com/souvik-ghosh>
|
||||
// Cheng Gibson <https://github.com/nossbigg>
|
||||
// Saransh Kataria <https://github.com/saranshkataria>
|
||||
// Wojciech Tyczynski <https://github.com/tykus160>
|
||||
// Jake Bloom <https://github.com/jakebloom>
|
||||
// Ceyhun Ozugur <https://github.com/ceyhun>
|
||||
// Mike Martin <https://github.com/mcmar>
|
||||
// Theo Henry de Villeneuve <https://github.com/theohdv>
|
||||
// Romain Faust <https://github.com/romain-faust>
|
||||
// Be Birchall <https://github.com/bebebebebe>
|
||||
// Jesse Katsumata <https://github.com/Naturalclar>
|
||||
// Xianming Zhong <https://github.com/chinesedfan>
|
||||
// Valentyn Tolochko <https://github.com/vtolochk>
|
||||
// Sergey Sychev <https://github.com/SychevSP>
|
||||
// Kelvin Chu <https://github.com/RageBill>
|
||||
// Daiki Ihara <https://github.com/sasurau4>
|
||||
// Abe Dolinger <https://github.com/256hz>
|
||||
// Dominique Richard <https://github.com/doumart>
|
||||
// Mohamed Shaban <https://github.com/drmas>
|
||||
// Jérémy Barbet <https://github.com/jeremybarbet>
|
||||
// David Sheldrick <https://github.com/ds300>
|
||||
// Natsathorn Yuthakovit <https://github.com/natsathorn>
|
||||
// ConnectDotz <https://github.com/connectdotz>
|
||||
// Alexey Molchan <https://github.com/alexeymolchan>
|
||||
// Alex Brazier <https://github.com/alexbrazier>
|
||||
// Arafat Zahan <https://github.com/kuasha420>
|
||||
// Pedro Hernández <https://github.com/phvillegas>
|
||||
// Sebastian Silbermann <https://github.com/eps1lon>
|
||||
// Zihan Chen <https://github.com/ZihanChen-MSFT>
|
||||
// Lorenzo Sciandra <https://github.com/kelset>
|
||||
// Mateusz Wit <https://github.com/MateWW>
|
||||
// Saad Najmi <https://github.com/saadnajmi>
|
||||
// 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
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// <reference path="modules/BatchedBridge.d.ts" />
|
||||
/// <reference path="modules/Codegen.d.ts" />
|
||||
/// <reference path="modules/Devtools.d.ts" />
|
||||
/// <reference path="../src/types/globals.d.ts" />
|
||||
|
||||
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';
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {HostInstance} from '../../../types/public/ReactNativeTypes';
|
||||
import {HostInstance} from '../../../public/ReactNativeTypes';
|
||||
import {EmitterSubscription} from '../../vendor/emitter/EventEmitter';
|
||||
|
||||
type AccessibilityChangeEventName =
|
||||
+2
-2
@@ -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';
|
||||
File renamed without changes.
File renamed without changes.
+2
-2
@@ -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,
|
||||
File renamed without changes.
+2
-2
@@ -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';
|
||||
File renamed without changes.
+1
-1
@@ -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 {
|
||||
+2
-2
@@ -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';
|
||||
|
||||
+2
-2
@@ -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';
|
||||
|
||||
+2
-2
@@ -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';
|
||||
|
||||
/**
|
||||
+3
-3
@@ -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 {
|
||||
File renamed without changes.
+2
-2
@@ -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';
|
||||
File renamed without changes.
+3
-3
@@ -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 {
|
||||
File renamed without changes.
+1
-1
@@ -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';
|
||||
|
||||
/**
|
||||
File renamed without changes.
+1
-1
@@ -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';
|
||||
|
||||
File renamed without changes.
+3
-3
@@ -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 {
|
||||
+2
-2
@@ -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,
|
||||
File renamed without changes.
+2
-2
@@ -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 {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3
-3
@@ -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';
|
||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {GestureResponderHandlers} from '../../types/public/ReactNativeRenderer';
|
||||
import {GestureResponderHandlers} from '../../public/ReactNativeRenderer';
|
||||
import {GestureResponderEvent} from '../Types/CoreEventTypes';
|
||||
|
||||
export interface PanResponderGestureState {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import type {HostComponent} from '../../types/public/ReactNativeTypes';
|
||||
import type {HostComponent} from '../../public/ReactNativeTypes';
|
||||
import * as React from 'react';
|
||||
|
||||
/**
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -12,7 +12,7 @@ import {
|
||||
MeasureInWindowOnSuccessCallback,
|
||||
MeasureLayoutOnSuccessCallback,
|
||||
MeasureOnSuccessCallback,
|
||||
} from '../../types/public/ReactNativeTypes';
|
||||
} from '../../public/ReactNativeTypes';
|
||||
|
||||
export interface UIManagerStatic {
|
||||
/**
|
||||
+1
-1
@@ -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
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -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 {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -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;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+165
@@ -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 <https://github.com/alloy>
|
||||
// HuHuanming <https://github.com/huhuanming>
|
||||
// Kyle Roach <https://github.com/iRoachie>
|
||||
// Tim Wang <https://github.com/timwangdev>
|
||||
// Kamal Mahyuddin <https://github.com/kamal>
|
||||
// Alex Dunne <https://github.com/alexdunne>
|
||||
// Manuel Alabor <https://github.com/swissmanu>
|
||||
// Michele Bombardi <https://github.com/bm-software>
|
||||
// Martin van Dam <https://github.com/mvdam>
|
||||
// Kacper Wiszczuk <https://github.com/esemesek>
|
||||
// Ryan Nickel <https://github.com/mrnickel>
|
||||
// Souvik Ghosh <https://github.com/souvik-ghosh>
|
||||
// Cheng Gibson <https://github.com/nossbigg>
|
||||
// Saransh Kataria <https://github.com/saranshkataria>
|
||||
// Wojciech Tyczynski <https://github.com/tykus160>
|
||||
// Jake Bloom <https://github.com/jakebloom>
|
||||
// Ceyhun Ozugur <https://github.com/ceyhun>
|
||||
// Mike Martin <https://github.com/mcmar>
|
||||
// Theo Henry de Villeneuve <https://github.com/theohdv>
|
||||
// Romain Faust <https://github.com/romain-faust>
|
||||
// Be Birchall <https://github.com/bebebebebe>
|
||||
// Jesse Katsumata <https://github.com/Naturalclar>
|
||||
// Xianming Zhong <https://github.com/chinesedfan>
|
||||
// Valentyn Tolochko <https://github.com/vtolochk>
|
||||
// Sergey Sychev <https://github.com/SychevSP>
|
||||
// Kelvin Chu <https://github.com/RageBill>
|
||||
// Daiki Ihara <https://github.com/sasurau4>
|
||||
// Abe Dolinger <https://github.com/256hz>
|
||||
// Dominique Richard <https://github.com/doumart>
|
||||
// Mohamed Shaban <https://github.com/drmas>
|
||||
// Jérémy Barbet <https://github.com/jeremybarbet>
|
||||
// David Sheldrick <https://github.com/ds300>
|
||||
// Natsathorn Yuthakovit <https://github.com/natsathorn>
|
||||
// ConnectDotz <https://github.com/connectdotz>
|
||||
// Alexey Molchan <https://github.com/alexeymolchan>
|
||||
// Alex Brazier <https://github.com/alexbrazier>
|
||||
// Arafat Zahan <https://github.com/kuasha420>
|
||||
// Pedro Hernández <https://github.com/phvillegas>
|
||||
// Sebastian Silbermann <https://github.com/eps1lon>
|
||||
// Zihan Chen <https://github.com/ZihanChen-MSFT>
|
||||
// Lorenzo Sciandra <https://github.com/kelset>
|
||||
// Mateusz Wit <https://github.com/MateWW>
|
||||
// Saad Najmi <https://github.com/saadnajmi>
|
||||
// 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
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// <reference path="modules/BatchedBridge.d.ts" />
|
||||
/// <reference path="modules/Codegen.d.ts" />
|
||||
/// <reference path="modules/Devtools.d.ts" />
|
||||
/// <reference path="../src/types/globals.d.ts" />
|
||||
|
||||
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';
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -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.
|
||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user