react-native-windows 0.72.1 → 0.72.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Network/RCTNetworking.windows.js +10 -16
- package/Microsoft.ReactNative/Fabric/ImageRequest.cpp +11 -14
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.cpp +1 -1
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +1 -3
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +0 -7
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +11 -10
- package/Microsoft.ReactNative.Cxx/JSValueReader.h +1 -1
- package/Microsoft.ReactNative.Cxx/JSValueWriter.h +1 -1
- package/Microsoft.ReactNative.Cxx/ModuleRegistration.h +22 -0
- package/Microsoft.ReactNative.Cxx/NativeModules.h +5 -0
- package/Microsoft.ReactNative.Cxx/StructInfo.h +4 -4
- package/Microsoft.ReactNative.Managed/packages.lock.json +2 -71
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/React.Cpp.props +2 -3
- package/Shared/BaseFileReaderResource.cpp +95 -0
- package/Shared/BaseFileReaderResource.h +41 -0
- package/Shared/CreateModules.h +27 -5
- package/Shared/IFileReaderResource.h +36 -0
- package/Shared/Modules/BlobModule.cpp +93 -297
- package/Shared/Modules/BlobModule.h +25 -87
- package/Shared/Modules/CxxModuleUtilities.cpp +32 -0
- package/Shared/Modules/CxxModuleUtilities.h +17 -0
- package/Shared/Modules/FileReaderModule.cpp +118 -51
- package/Shared/Modules/FileReaderModule.h +27 -1
- package/Shared/Modules/HttpModule.cpp +133 -9
- package/Shared/Modules/HttpModule.h +33 -0
- package/Shared/Modules/IRequestBodyHandler.h +6 -4
- package/Shared/Modules/IResponseHandler.h +3 -3
- package/Shared/Modules/IUriHandler.h +3 -3
- package/Shared/Modules/IWebSocketModuleContentHandler.h +6 -4
- package/Shared/Modules/WebSocketModule.cpp +190 -7
- package/Shared/Modules/WebSocketTurboModule.h +52 -0
- package/Shared/Networking/DefaultBlobResource.cpp +323 -0
- package/Shared/Networking/DefaultBlobResource.h +133 -0
- package/Shared/Networking/IBlobResource.h +56 -0
- package/Shared/Networking/IHttpResource.h +6 -5
- package/Shared/Networking/WinRTHttpResource.cpp +40 -32
- package/Shared/Networking/WinRTHttpResource.h +4 -3
- package/Shared/Networking/WinRTTypes.h +3 -3
- package/Shared/Shared.vcxitems +8 -1
- package/Shared/Shared.vcxitems.filters +24 -3
- package/package.json +13 -13
- package/types/experimental.d.ts +101 -0
- package/types/index.d.ts +216 -0
- package/types/modules/BatchedBridge.d.ts +32 -0
- package/types/modules/Codegen.d.ts +74 -0
- package/types/modules/Devtools.d.ts +31 -0
- package/types/modules/LaunchScreen.d.ts +18 -0
- package/types/modules/globals.d.ts +579 -0
- package/types/private/TimerMixin.d.ts +19 -0
- package/types/private/Utilities.d.ts +10 -0
- package/types/public/DeprecatedPropertiesAlias.d.ts +185 -0
- package/types/public/Insets.d.ts +15 -0
- package/types/public/ReactNativeRenderer.d.ts +144 -0
- package/types/public/ReactNativeTypes.d.ts +143 -0
- package/Microsoft.ReactNative/Base/CoreNativeModules.cpp +0 -44
- package/Microsoft.ReactNative/Base/CoreNativeModules.h +0 -30
- /package/Shared/{Modules/IBlobPersistor.h → IBlobPersistor.h} +0 -0
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
// Definitions by: Eloy Durán <https://github.com/alloy>
|
|
11
|
+
// HuHuanming <https://github.com/huhuanming>
|
|
12
|
+
// Kyle Roach <https://github.com/iRoachie>
|
|
13
|
+
// Tim Wang <https://github.com/timwangdev>
|
|
14
|
+
// Kamal Mahyuddin <https://github.com/kamal>
|
|
15
|
+
// Alex Dunne <https://github.com/alexdunne>
|
|
16
|
+
// Manuel Alabor <https://github.com/swissmanu>
|
|
17
|
+
// Michele Bombardi <https://github.com/bm-software>
|
|
18
|
+
// Martin van Dam <https://github.com/mvdam>
|
|
19
|
+
// Kacper Wiszczuk <https://github.com/esemesek>
|
|
20
|
+
// Ryan Nickel <https://github.com/mrnickel>
|
|
21
|
+
// Souvik Ghosh <https://github.com/souvik-ghosh>
|
|
22
|
+
// Cheng Gibson <https://github.com/nossbigg>
|
|
23
|
+
// Saransh Kataria <https://github.com/saranshkataria>
|
|
24
|
+
// Wojciech Tyczynski <https://github.com/tykus160>
|
|
25
|
+
// Jake Bloom <https://github.com/jakebloom>
|
|
26
|
+
// Ceyhun Ozugur <https://github.com/ceyhun>
|
|
27
|
+
// Mike Martin <https://github.com/mcmar>
|
|
28
|
+
// Theo Henry de Villeneuve <https://github.com/theohdv>
|
|
29
|
+
// Romain Faust <https://github.com/romain-faust>
|
|
30
|
+
// Be Birchall <https://github.com/bebebebebe>
|
|
31
|
+
// Jesse Katsumata <https://github.com/Naturalclar>
|
|
32
|
+
// Xianming Zhong <https://github.com/chinesedfan>
|
|
33
|
+
// Valentyn Tolochko <https://github.com/vtolochk>
|
|
34
|
+
// Sergey Sychev <https://github.com/SychevSP>
|
|
35
|
+
// Kelvin Chu <https://github.com/RageBill>
|
|
36
|
+
// Daiki Ihara <https://github.com/sasurau4>
|
|
37
|
+
// Abe Dolinger <https://github.com/256hz>
|
|
38
|
+
// Dominique Richard <https://github.com/doumart>
|
|
39
|
+
// Mohamed Shaban <https://github.com/drmas>
|
|
40
|
+
// Jérémy Barbet <https://github.com/jeremybarbet>
|
|
41
|
+
// David Sheldrick <https://github.com/ds300>
|
|
42
|
+
// Natsathorn Yuthakovit <https://github.com/natsathorn>
|
|
43
|
+
// ConnectDotz <https://github.com/connectdotz>
|
|
44
|
+
// Alexey Molchan <https://github.com/alexeymolchan>
|
|
45
|
+
// Alex Brazier <https://github.com/alexbrazier>
|
|
46
|
+
// Arafat Zahan <https://github.com/kuasha420>
|
|
47
|
+
// Pedro Hernández <https://github.com/phvillegas>
|
|
48
|
+
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
49
|
+
// Zihan Chen <https://github.com/ZihanChen-MSFT>
|
|
50
|
+
// Lorenzo Sciandra <https://github.com/kelset>
|
|
51
|
+
// Mateusz Wit <https://github.com/MateWW>
|
|
52
|
+
// Saad Najmi <https://github.com/saadnajmi>
|
|
53
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
54
|
+
// Minimum TypeScript Version: 4.1
|
|
55
|
+
|
|
56
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
57
|
+
//
|
|
58
|
+
// USING: these definitions are meant to be used with the TSC compiler target set to at least ES2015.
|
|
59
|
+
//
|
|
60
|
+
// USAGE EXAMPLES: check the RNTSExplorer project at https://github.com/bgrieder/RNTSExplorer
|
|
61
|
+
//
|
|
62
|
+
// CONTRIBUTING: please open pull requests
|
|
63
|
+
//
|
|
64
|
+
// CREDITS: This work is based on an original work made by Bernd Paradies: https://github.com/bparadie
|
|
65
|
+
//
|
|
66
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
67
|
+
|
|
68
|
+
/// <reference path="modules/BatchedBridge.d.ts" />
|
|
69
|
+
/// <reference path="modules/Codegen.d.ts" />
|
|
70
|
+
/// <reference path="modules/Devtools.d.ts" />
|
|
71
|
+
/// <reference path="modules/globals.d.ts" />
|
|
72
|
+
/// <reference path="modules/LaunchScreen.d.ts" />
|
|
73
|
+
|
|
74
|
+
export * from '../Libraries/ActionSheetIOS/ActionSheetIOS';
|
|
75
|
+
export * from '../Libraries/Alert/Alert';
|
|
76
|
+
export * from '../Libraries/Animated/Animated';
|
|
77
|
+
export * from '../Libraries/Animated/Easing';
|
|
78
|
+
export * from '../Libraries/Animated/useAnimatedValue';
|
|
79
|
+
export * from '../Libraries/AppState/AppState';
|
|
80
|
+
export * from '../Libraries/BatchedBridge/NativeModules';
|
|
81
|
+
export * from '../Libraries/Components/AccessibilityInfo/AccessibilityInfo';
|
|
82
|
+
export * from '../Libraries/Components/ActivityIndicator/ActivityIndicator';
|
|
83
|
+
export * from '../Libraries/Components/Clipboard/Clipboard';
|
|
84
|
+
export * from '../Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
|
|
85
|
+
export * from '../Libraries/Components/Keyboard/Keyboard';
|
|
86
|
+
export * from '../Libraries/Components/Keyboard/KeyboardAvoidingView';
|
|
87
|
+
export * from '../Libraries/Components/Pressable/Pressable';
|
|
88
|
+
export * from '../Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
|
89
|
+
export * from '../Libraries/Components/RefreshControl/RefreshControl';
|
|
90
|
+
export * from '../Libraries/Components/SafeAreaView/SafeAreaView';
|
|
91
|
+
export * from '../Libraries/Components/ScrollView/ScrollView';
|
|
92
|
+
export * from '../Libraries/Components/StatusBar/StatusBar';
|
|
93
|
+
export * from '../Libraries/Components/Switch/Switch';
|
|
94
|
+
export * from '../Libraries/Components/TextInput/InputAccessoryView';
|
|
95
|
+
export * from '../Libraries/Components/TextInput/TextInput';
|
|
96
|
+
export * from '../Libraries/Components/ToastAndroid/ToastAndroid';
|
|
97
|
+
export * from '../Libraries/Components/Touchable/Touchable';
|
|
98
|
+
export * from '../Libraries/Components/Touchable/TouchableHighlight';
|
|
99
|
+
export * from '../Libraries/Components/Touchable/TouchableNativeFeedback';
|
|
100
|
+
export * from '../Libraries/Components/Touchable/TouchableOpacity';
|
|
101
|
+
export * from '../Libraries/Components/Touchable/TouchableWithoutFeedback';
|
|
102
|
+
export * from '../Libraries/Components/View/View';
|
|
103
|
+
export * from '../Libraries/Components/View/ViewAccessibility';
|
|
104
|
+
export * from '../Libraries/Components/View/ViewPropTypes';
|
|
105
|
+
export * from '../Libraries/Components/Button';
|
|
106
|
+
export * from '../Libraries/EventEmitter/NativeEventEmitter';
|
|
107
|
+
export * from '../Libraries/EventEmitter/RCTDeviceEventEmitter';
|
|
108
|
+
export * from '../Libraries/EventEmitter/RCTNativeAppEventEmitter';
|
|
109
|
+
export * from '../Libraries/Image/Image';
|
|
110
|
+
export * from '../Libraries/Image/ImageResizeMode';
|
|
111
|
+
export * from '../Libraries/Image/ImageSource';
|
|
112
|
+
export * from '../Libraries/Interaction/InteractionManager';
|
|
113
|
+
export * from '../Libraries/Interaction/PanResponder';
|
|
114
|
+
export * from '../Libraries/LayoutAnimation/LayoutAnimation';
|
|
115
|
+
export * from '../Libraries/Linking/Linking';
|
|
116
|
+
export * from '../Libraries/Lists/FlatList';
|
|
117
|
+
export * from '../Libraries/Lists/SectionList';
|
|
118
|
+
export * from '@react-native/virtualized-lists';
|
|
119
|
+
export * from '../Libraries/LogBox/LogBox';
|
|
120
|
+
export * from '../Libraries/Modal/Modal';
|
|
121
|
+
export * as Systrace from '../Libraries/Performance/Systrace';
|
|
122
|
+
export * from '../Libraries/PermissionsAndroid/PermissionsAndroid';
|
|
123
|
+
export * from '../Libraries/PushNotificationIOS/PushNotificationIOS';
|
|
124
|
+
export * from '../Libraries/ReactNative/AppRegistry';
|
|
125
|
+
export * from '../Libraries/ReactNative/I18nManager';
|
|
126
|
+
export * from '../Libraries/ReactNative/RendererProxy';
|
|
127
|
+
export * from '../Libraries/ReactNative/RootTag';
|
|
128
|
+
export * from '../Libraries/ReactNative/UIManager';
|
|
129
|
+
export * from '../Libraries/ReactNative/requireNativeComponent';
|
|
130
|
+
export * from '../Libraries/Settings/Settings';
|
|
131
|
+
export * from '../Libraries/Share/Share';
|
|
132
|
+
export * from '../Libraries/StyleSheet/PlatformColorValueTypesIOS';
|
|
133
|
+
export * from '../Libraries/StyleSheet/PlatformColorValueTypes';
|
|
134
|
+
export * from '../Libraries/StyleSheet/StyleSheet';
|
|
135
|
+
export * from '../Libraries/StyleSheet/StyleSheetTypes';
|
|
136
|
+
export * from '../Libraries/StyleSheet/processColor';
|
|
137
|
+
export * from '../Libraries/Text/Text';
|
|
138
|
+
export * from '../Libraries/TurboModule/RCTExport';
|
|
139
|
+
export * as TurboModuleRegistry from '../Libraries/TurboModule/TurboModuleRegistry';
|
|
140
|
+
export * from '../Libraries/Types/CoreEventTypes';
|
|
141
|
+
export * from '../Libraries/Utilities/Appearance';
|
|
142
|
+
export * from '../Libraries/Utilities/BackHandler';
|
|
143
|
+
export * from '../Libraries/Utilities/DevSettings';
|
|
144
|
+
export * from '../Libraries/Utilities/Dimensions';
|
|
145
|
+
export * from '../Libraries/Utilities/PixelRatio';
|
|
146
|
+
export * from '../Libraries/Utilities/Platform';
|
|
147
|
+
export * from '../Libraries/Vibration/Vibration';
|
|
148
|
+
export * from '../Libraries/YellowBox/YellowBoxDeprecated';
|
|
149
|
+
export * from '../Libraries/vendor/core/ErrorUtils';
|
|
150
|
+
export {
|
|
151
|
+
EmitterSubscription,
|
|
152
|
+
EventSubscription,
|
|
153
|
+
} from '../Libraries/vendor/emitter/EventEmitter';
|
|
154
|
+
|
|
155
|
+
export * from './public/DeprecatedPropertiesAlias';
|
|
156
|
+
export * from './public/Insets';
|
|
157
|
+
export * from './public/ReactNativeRenderer';
|
|
158
|
+
export * from './public/ReactNativeTypes';
|
|
159
|
+
|
|
160
|
+
import type {ErrorUtils} from '../Libraries/vendor/core/ErrorUtils';
|
|
161
|
+
|
|
162
|
+
declare global {
|
|
163
|
+
interface NodeRequire {
|
|
164
|
+
(id: string): any;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
var require: NodeRequire;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Console polyfill
|
|
171
|
+
* @see https://reactnative.dev/docs/javascript-environment#polyfills
|
|
172
|
+
*/
|
|
173
|
+
interface Console {
|
|
174
|
+
error(message?: any, ...optionalParams: any[]): void;
|
|
175
|
+
info(message?: any, ...optionalParams: any[]): void;
|
|
176
|
+
log(message?: any, ...optionalParams: any[]): void;
|
|
177
|
+
warn(message?: any, ...optionalParams: any[]): void;
|
|
178
|
+
trace(message?: any, ...optionalParams: any[]): void;
|
|
179
|
+
debug(message?: any, ...optionalParams: any[]): void;
|
|
180
|
+
table(...data: any[]): void;
|
|
181
|
+
groupCollapsed(label?: string): void;
|
|
182
|
+
groupEnd(): void;
|
|
183
|
+
group(label?: string): void;
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated Use LogBox.ignoreLogs(patterns) instead
|
|
186
|
+
*/
|
|
187
|
+
ignoredYellowBox: string[];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
var console: Console;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* This contains the non-native `XMLHttpRequest` object, which you can use if you want to route network requests
|
|
194
|
+
* through DevTools (to trace them):
|
|
195
|
+
*
|
|
196
|
+
* global.XMLHttpRequest = global.originalXMLHttpRequest;
|
|
197
|
+
*
|
|
198
|
+
* @see https://github.com/facebook/react-native/issues/934
|
|
199
|
+
*/
|
|
200
|
+
const originalXMLHttpRequest: any;
|
|
201
|
+
|
|
202
|
+
const __BUNDLE_START_TIME__: number;
|
|
203
|
+
const ErrorUtils: ErrorUtils;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* This variable is set to true when react-native is running in Dev mode
|
|
207
|
+
* @example
|
|
208
|
+
* if (__DEV__) console.log('Running in dev mode')
|
|
209
|
+
*/
|
|
210
|
+
const __DEV__: boolean;
|
|
211
|
+
|
|
212
|
+
const HermesInternal: null | {};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Export platform specific types
|
|
216
|
+
export * from '../Libraries/platform-types';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
interface SpyData {
|
|
11
|
+
type: number;
|
|
12
|
+
module?: string | undefined;
|
|
13
|
+
method: string | number;
|
|
14
|
+
args: any[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class MessageQueue {
|
|
18
|
+
static spy(spyOrToggle: boolean | ((data: SpyData) => void)): void;
|
|
19
|
+
|
|
20
|
+
getCallableModule(name: string): Object;
|
|
21
|
+
registerCallableModule(name: string, module: Object): void;
|
|
22
|
+
registerLazyCallableModule(name: string, factory: () => Object): void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module 'react-native/Libraries/BatchedBridge/BatchedBridge' {
|
|
26
|
+
const BatchedBridge: MessageQueue;
|
|
27
|
+
export default BatchedBridge;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare module 'react-native/Libraries/BatchedBridge/MessageQueue' {
|
|
31
|
+
export default MessageQueue;
|
|
32
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
declare module 'react-native/Libraries/Utilities/codegenNativeCommands' {
|
|
11
|
+
export interface Options<T extends string> {
|
|
12
|
+
readonly supportedCommands: ReadonlyArray<T>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function codegenNativeCommands<T extends object>(
|
|
16
|
+
options: Options<keyof T extends string ? keyof T : never>,
|
|
17
|
+
): T;
|
|
18
|
+
|
|
19
|
+
export default codegenNativeCommands;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare module 'react-native/Libraries/Utilities/codegenNativeComponent' {
|
|
23
|
+
import type {HostComponent} from 'react-native';
|
|
24
|
+
|
|
25
|
+
export interface Options {
|
|
26
|
+
readonly interfaceOnly?: boolean | undefined;
|
|
27
|
+
readonly paperComponentName?: string | undefined;
|
|
28
|
+
readonly paperComponentNameDeprecated?: string | undefined;
|
|
29
|
+
readonly excludedPlatforms?: ReadonlyArray<'iOS' | 'android'> | undefined;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type NativeComponentType<T> = HostComponent<T>;
|
|
33
|
+
|
|
34
|
+
function codegenNativeComponent<Props extends object>(
|
|
35
|
+
componentName: string,
|
|
36
|
+
options?: Options,
|
|
37
|
+
): NativeComponentType<Props>;
|
|
38
|
+
|
|
39
|
+
export default codegenNativeComponent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare module 'react-native/Libraries/Types/CodegenTypes' {
|
|
43
|
+
import type {NativeSyntheticEvent} from 'react-native';
|
|
44
|
+
|
|
45
|
+
// Event types
|
|
46
|
+
// We're not using the PaperName, it is only used to codegen view config settings
|
|
47
|
+
|
|
48
|
+
export type BubblingEventHandler<
|
|
49
|
+
T,
|
|
50
|
+
PaperName extends string | never = never,
|
|
51
|
+
> = (event: NativeSyntheticEvent<T>) => void | Promise<void>;
|
|
52
|
+
export type DirectEventHandler<
|
|
53
|
+
T,
|
|
54
|
+
PaperName extends string | never = never,
|
|
55
|
+
> = (event: NativeSyntheticEvent<T>) => void | Promise<void>;
|
|
56
|
+
|
|
57
|
+
// Prop types
|
|
58
|
+
export type Double = number;
|
|
59
|
+
export type Float = number;
|
|
60
|
+
export type Int32 = number;
|
|
61
|
+
export type UnsafeObject = object;
|
|
62
|
+
|
|
63
|
+
type DefaultTypes = number | boolean | string | ReadonlyArray<string>;
|
|
64
|
+
// Default handling, ignore the unused value
|
|
65
|
+
// we're only using it for type checking
|
|
66
|
+
//
|
|
67
|
+
// TODO: (rickhanlonii) T44881457 If a default is provided, it should always be optional
|
|
68
|
+
// but that is currently not supported in the codegen since we require a default
|
|
69
|
+
|
|
70
|
+
export type WithDefault<
|
|
71
|
+
Type extends DefaultTypes,
|
|
72
|
+
Value extends Type | string | undefined | null,
|
|
73
|
+
> = Type | undefined | null;
|
|
74
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
declare module 'react-native/Libraries/Core/Devtools/parseErrorStack' {
|
|
11
|
+
export type StackFrame = {
|
|
12
|
+
file: string;
|
|
13
|
+
methodName: string;
|
|
14
|
+
lineNumber: number;
|
|
15
|
+
column: number | null;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export interface ExtendedError extends Error {
|
|
19
|
+
framesToPop?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default function parseErrorStack(error: ExtendedError): StackFrame[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module 'react-native/Libraries/Core/Devtools/symbolicateStackTrace' {
|
|
26
|
+
import {StackFrame} from 'react-native/Libraries/Core/Devtools/parseErrorStack';
|
|
27
|
+
|
|
28
|
+
export default function symbolicateStackTrace(
|
|
29
|
+
stack: ReadonlyArray<StackFrame>,
|
|
30
|
+
): Promise<StackFrame[]>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
// Adds the JSX elements used in the launch screen.
|
|
11
|
+
|
|
12
|
+
declare module 'react-native/Libraries/NewAppScreen' {
|
|
13
|
+
export const Header: any;
|
|
14
|
+
export const LearnMoreLinks: any;
|
|
15
|
+
export const Colors: any;
|
|
16
|
+
export const DebugInstructions: any;
|
|
17
|
+
export const ReloadInstructions: any;
|
|
18
|
+
}
|