react-native-tvos 0.81.4-0 → 0.81.5-0
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/Components/Button.js +0 -1
- package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
- package/Libraries/Components/Pressable/Pressable.js +14 -12
- package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
- package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
- package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
- package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
- package/Libraries/Components/View/View.js +21 -1
- package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
- package/Libraries/Components/View/ViewPropTypes.js +5 -86
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTUtils.mm +5 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +3 -4
- package/React/Views/RCTSwitchManager.m +24 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +25 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +13 -26
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
- package/ReactAndroid/src/main/jni/react/jni/TransformHelper.cpp +3 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +0 -3
- package/ReactCommon/react/renderer/components/view/tests/ResolveTransformTest.cpp +377 -0
- package/package.json +8 -8
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
- package/types/public/ReactNativeTVTypes.d.ts +1 -43
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
- package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
- package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
- package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
- package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
- package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
- package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
- package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
- package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
- package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
- package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
- package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
- package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
- package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
- package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
- package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
- package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
- package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
- package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
- package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
- package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
- package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
- package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
- package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
- package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
- package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
- package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
- package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
- package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
- package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
- package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
- package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
- package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
- package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
- package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
- package/types_generated/Libraries/Components/Button.d.ts +0 -251
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
- package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
- package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
- package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
- package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
- package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
- package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
- package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
- package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
- package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
- package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
- package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
- package/types_generated/Libraries/Components/View/View.d.ts +0 -30
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
- package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
- package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
- package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
- package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
- package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
- package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
- package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
- package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
- package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
- package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
- package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
- package/types_generated/Libraries/Image/Image.d.ts +0 -18
- package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
- package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
- package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
- package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
- package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
- package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
- package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
- package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
- package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
- package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
- package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
- package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
- package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
- package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
- package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
- package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
- package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
- package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
- package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
- package/types_generated/Libraries/Network/FormData.d.ts +0 -56
- package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
- package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
- package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
- package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
- package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
- package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
- package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
- package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
- package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
- package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
- package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
- package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
- package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
- package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
- package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
- package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
- package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
- package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
- package/types_generated/Libraries/Share/Share.d.ts +0 -85
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
- package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
- package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
- package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
- package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
- package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
- package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
- package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
- package/types_generated/Libraries/Text/Text.d.ts +0 -30
- package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
- package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
- package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
- package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
- package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
- package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
- package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
- package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
- package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
- package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
- package/types_generated/Libraries/UTFSequence.d.ts +0 -39
- package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
- package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
- package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
- package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
- package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
- package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
- package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
- package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
- package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
- package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
- package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
- package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
- package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
- package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
- package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
- package/types_generated/index.d.ts +0 -164
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
- package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
- package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
- package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
- package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
- package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
- package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
- package/types_generated/src/private/types/HostComponent.d.ts +0 -19
- package/types_generated/src/private/types/HostInstance.d.ts +0 -91
- package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
- package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
- package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
- package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
- package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
- package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
- package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
- package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
- package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
- package/types_generated/tsconfig.json +0 -3
- package/types_generated/tsconfig.test.json +0 -16
|
@@ -1,88 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<42d1c4e4d80bb818b5a33af94fb6fffe>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/LogBox/Data/LogBoxLog.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { Stack } from "./LogBoxSymbolication";
|
|
14
|
-
import type { Category, CodeFrame, ComponentStack, ComponentStackType, Message } from "./parseLogBoxLog";
|
|
15
|
-
type SymbolicationStatus = "NONE" | "PENDING" | "COMPLETE" | "FAILED";
|
|
16
|
-
export type LogLevel = "warn" | "error" | "fatal" | "syntax";
|
|
17
|
-
export type LogBoxLogData = Readonly<{
|
|
18
|
-
level: LogLevel;
|
|
19
|
-
type?: string | undefined;
|
|
20
|
-
message: Message;
|
|
21
|
-
stack: Stack;
|
|
22
|
-
category: string;
|
|
23
|
-
componentStackType?: ComponentStackType;
|
|
24
|
-
componentStack: ComponentStack;
|
|
25
|
-
codeFrame?: CodeFrame | undefined;
|
|
26
|
-
isComponentError: boolean;
|
|
27
|
-
extraData?: unknown;
|
|
28
|
-
onNotificationPress?: (() => void) | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
declare class LogBoxLog {
|
|
31
|
-
message: Message;
|
|
32
|
-
type: null | undefined | string;
|
|
33
|
-
category: Category;
|
|
34
|
-
componentStack: ComponentStack;
|
|
35
|
-
componentStackType: ComponentStackType;
|
|
36
|
-
stack: Stack;
|
|
37
|
-
count: number;
|
|
38
|
-
level: LogLevel;
|
|
39
|
-
codeFrame: null | undefined | CodeFrame;
|
|
40
|
-
componentCodeFrame: null | undefined | CodeFrame;
|
|
41
|
-
isComponentError: boolean;
|
|
42
|
-
extraData: unknown | void;
|
|
43
|
-
symbolicated: Readonly<{
|
|
44
|
-
error: null;
|
|
45
|
-
stack: null;
|
|
46
|
-
status: "NONE";
|
|
47
|
-
}> | Readonly<{
|
|
48
|
-
error: null;
|
|
49
|
-
stack: null;
|
|
50
|
-
status: "PENDING";
|
|
51
|
-
}> | Readonly<{
|
|
52
|
-
error: null;
|
|
53
|
-
stack: Stack;
|
|
54
|
-
status: "COMPLETE";
|
|
55
|
-
}> | Readonly<{
|
|
56
|
-
error: Error;
|
|
57
|
-
stack: null;
|
|
58
|
-
status: "FAILED";
|
|
59
|
-
}>;
|
|
60
|
-
symbolicatedComponentStack: Readonly<{
|
|
61
|
-
error: null;
|
|
62
|
-
componentStack: null;
|
|
63
|
-
status: "NONE";
|
|
64
|
-
}> | Readonly<{
|
|
65
|
-
error: null;
|
|
66
|
-
componentStack: null;
|
|
67
|
-
status: "PENDING";
|
|
68
|
-
}> | Readonly<{
|
|
69
|
-
error: null;
|
|
70
|
-
componentStack: ComponentStack;
|
|
71
|
-
status: "COMPLETE";
|
|
72
|
-
}> | Readonly<{
|
|
73
|
-
error: Error;
|
|
74
|
-
componentStack: null;
|
|
75
|
-
status: "FAILED";
|
|
76
|
-
}>;
|
|
77
|
-
onNotificationPress: null | undefined | (() => void);
|
|
78
|
-
constructor(data: LogBoxLogData);
|
|
79
|
-
incrementCount(): void;
|
|
80
|
-
getAvailableStack(): Stack;
|
|
81
|
-
getAvailableComponentStack(): ComponentStack;
|
|
82
|
-
retrySymbolicate(callback?: (status: SymbolicationStatus) => void): void;
|
|
83
|
-
symbolicate(callback?: (status: SymbolicationStatus) => void): void;
|
|
84
|
-
handleSymbolicate(callback?: (status: SymbolicationStatus) => void): void;
|
|
85
|
-
updateStatus(error: null | undefined | Error, stack: null | undefined | Stack, codeFrame: null | undefined | CodeFrame, callback?: (status: SymbolicationStatus) => void): void;
|
|
86
|
-
updateComponentStackStatus(error: null | undefined | Error, componentStack: null | undefined | ComponentStack, codeFrame: null | undefined | CodeFrame, callback?: (status: SymbolicationStatus) => void): void;
|
|
87
|
-
}
|
|
88
|
-
export default LogBoxLog;
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<f9e9e91a02ecd9b761a59418859a98a3>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/LogBox/Data/LogBoxSymbolication.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { SymbolicatedStackTrace } from "../../Core/Devtools/symbolicateStackTrace";
|
|
14
|
-
import type { StackFrame } from "../../Core/NativeExceptionsManager";
|
|
15
|
-
export type Stack = Array<StackFrame>;
|
|
16
|
-
export declare function deleteStack(stack: Stack): void;
|
|
17
|
-
export declare function symbolicate(stack: Stack, extraData?: unknown): Promise<SymbolicatedStackTrace>;
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<9dac1853989d2f50d619f9a7306c70c2>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/LogBox/Data/parseLogBoxLog.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { ExceptionData } from "../../Core/NativeExceptionsManager";
|
|
14
|
-
import type { LogBoxLogData } from "./LogBoxLog";
|
|
15
|
-
export declare function hasComponentStack(args: ReadonlyArray<unknown>): boolean;
|
|
16
|
-
export type ExtendedExceptionData = ExceptionData & {
|
|
17
|
-
isComponentError: boolean;
|
|
18
|
-
};
|
|
19
|
-
export type Category = string;
|
|
20
|
-
export type CodeFrame = Readonly<{
|
|
21
|
-
content: string;
|
|
22
|
-
location: {
|
|
23
|
-
row: number;
|
|
24
|
-
column: number;
|
|
25
|
-
} | undefined;
|
|
26
|
-
fileName: string;
|
|
27
|
-
collapse?: boolean;
|
|
28
|
-
}>;
|
|
29
|
-
export type Message = Readonly<{
|
|
30
|
-
content: string;
|
|
31
|
-
substitutions: ReadonlyArray<Readonly<{
|
|
32
|
-
length: number;
|
|
33
|
-
offset: number;
|
|
34
|
-
}>>;
|
|
35
|
-
}>;
|
|
36
|
-
export type ComponentStack = ReadonlyArray<CodeFrame>;
|
|
37
|
-
export type ComponentStackType = "legacy" | "stack";
|
|
38
|
-
export declare function parseInterpolation(args: ReadonlyArray<unknown>): Readonly<{
|
|
39
|
-
category: Category;
|
|
40
|
-
message: Message;
|
|
41
|
-
}>;
|
|
42
|
-
export declare function parseComponentStack(message: string): {
|
|
43
|
-
type: ComponentStackType;
|
|
44
|
-
stack: ComponentStack;
|
|
45
|
-
};
|
|
46
|
-
export declare function parseLogBoxException(error: ExtendedExceptionData): LogBoxLogData;
|
|
47
|
-
export declare function withoutANSIColorStyles(message: unknown): unknown;
|
|
48
|
-
export declare function parseLogBoxLog(args: ReadonlyArray<unknown>): {
|
|
49
|
-
componentStack: ComponentStack;
|
|
50
|
-
componentStackType: ComponentStackType;
|
|
51
|
-
category: Category;
|
|
52
|
-
message: Message;
|
|
53
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<7cf4d721fb5a7731bd3ece5458aeb171>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/LogBox/LogBox.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { IgnorePattern, LogData } from "./Data/LogBoxData";
|
|
14
|
-
import type { ExtendedExceptionData } from "./Data/parseLogBoxLog";
|
|
15
|
-
export type { LogData, ExtendedExceptionData, IgnorePattern };
|
|
16
|
-
interface ILogBox {
|
|
17
|
-
install(): void;
|
|
18
|
-
uninstall(): void;
|
|
19
|
-
isInstalled(): boolean;
|
|
20
|
-
ignoreLogs($$PARAM_0$$: ReadonlyArray<IgnorePattern>): void;
|
|
21
|
-
ignoreAllLogs(value?: boolean): void;
|
|
22
|
-
clearAllLogs(): void;
|
|
23
|
-
addLog(log: LogData): void;
|
|
24
|
-
addConsoleLog(level: "warn" | "error", ...args: Array<unknown>): void;
|
|
25
|
-
addException(error: ExtendedExceptionData): void;
|
|
26
|
-
}
|
|
27
|
-
declare const $$LogBox: ILogBox;
|
|
28
|
-
declare type $$LogBox = typeof $$LogBox;
|
|
29
|
-
export default $$LogBox;
|
|
@@ -1,110 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<99c27228d733471f1b9cb82953de6078>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Modal/Modal.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { HostInstance } from "../../src/private/types/HostInstance";
|
|
14
|
-
import type { ViewProps } from "../Components/View/ViewPropTypes";
|
|
15
|
-
import type { DirectEventHandler } from "../Types/CodegenTypes";
|
|
16
|
-
import { type ColorValue } from "../StyleSheet/StyleSheet";
|
|
17
|
-
import * as React from "react";
|
|
18
|
-
export type PublicModalInstance = HostInstance;
|
|
19
|
-
type OrientationChangeEvent = Readonly<{
|
|
20
|
-
orientation: "portrait" | "landscape";
|
|
21
|
-
}>;
|
|
22
|
-
export type ModalBaseProps = {
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated Use animationType instead
|
|
25
|
-
*/
|
|
26
|
-
animated?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The `animationType` prop controls how the modal animates.
|
|
29
|
-
*
|
|
30
|
-
* - `slide` slides in from the bottom
|
|
31
|
-
* - `fade` fades into view
|
|
32
|
-
* - `none` appears without an animation
|
|
33
|
-
*/
|
|
34
|
-
animationType?: ("none" | "slide" | "fade") | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The `transparent` prop determines whether your modal will fill the entire view.
|
|
37
|
-
* Setting this to `true` will render the modal over a transparent background.
|
|
38
|
-
*/
|
|
39
|
-
transparent?: boolean | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* The `visible` prop determines whether your modal is visible.
|
|
42
|
-
*/
|
|
43
|
-
visible?: boolean | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* The `onRequestClose` callback is called when the user taps the hardware back button on Android, dismisses the sheet using a gesture on iOS (when `allowSwipeDismissal` is set to true) or the menu button on Apple TV.
|
|
46
|
-
*
|
|
47
|
-
* This is required on iOS and Android.
|
|
48
|
-
*/
|
|
49
|
-
onRequestClose?: DirectEventHandler<null> | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* The `onShow` prop allows passing a function that will be called once the modal has been shown.
|
|
52
|
-
*/
|
|
53
|
-
onShow?: DirectEventHandler<null> | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* The `backdropColor` props sets the background color of the modal's container.
|
|
56
|
-
* Defaults to `white` if not provided and transparent is `false`. Ignored if `transparent` is `true`.
|
|
57
|
-
*/
|
|
58
|
-
backdropColor?: ColorValue;
|
|
59
|
-
/**
|
|
60
|
-
* A ref to the native Modal component.
|
|
61
|
-
*/
|
|
62
|
-
modalRef?: React.Ref<PublicModalInstance>;
|
|
63
|
-
};
|
|
64
|
-
export type ModalPropsIOS = {
|
|
65
|
-
/**
|
|
66
|
-
* The `presentationStyle` determines the style of modal to show
|
|
67
|
-
*/
|
|
68
|
-
presentationStyle?: ("fullScreen" | "pageSheet" | "formSheet" | "overFullScreen") | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations.
|
|
71
|
-
* On iOS, the modal is still restricted by what's specified in your app's Info.plist's UISupportedInterfaceOrientations field.
|
|
72
|
-
*/
|
|
73
|
-
supportedOrientations?: ReadonlyArray<"portrait" | "portrait-upside-down" | "landscape" | "landscape-left" | "landscape-right"> | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* The `onDismiss` prop allows passing a function that will be called once the modal has been dismissed.
|
|
76
|
-
*/
|
|
77
|
-
onDismiss?: (() => void) | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed.
|
|
80
|
-
* The orientation provided is only 'portrait' or 'landscape'. This callback is also called on initial render, regardless of the current orientation.
|
|
81
|
-
*/
|
|
82
|
-
onOrientationChange?: DirectEventHandler<OrientationChangeEvent> | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* Controls whether the modal can be dismissed by swiping down on iOS.
|
|
85
|
-
* This requires you to implement the `onRequestClose` prop to handle the dismissal.
|
|
86
|
-
*/
|
|
87
|
-
allowSwipeDismissal?: boolean | undefined;
|
|
88
|
-
};
|
|
89
|
-
export type ModalPropsAndroid = {
|
|
90
|
-
/**
|
|
91
|
-
* Controls whether to force hardware acceleration for the underlying window.
|
|
92
|
-
*/
|
|
93
|
-
hardwareAccelerated?: boolean | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Determines whether your modal should go under the system statusbar.
|
|
96
|
-
*/
|
|
97
|
-
statusBarTranslucent?: boolean | undefined;
|
|
98
|
-
/**
|
|
99
|
-
* Determines whether your modal should go under the system navigationbar.
|
|
100
|
-
*/
|
|
101
|
-
navigationBarTranslucent?: boolean | undefined;
|
|
102
|
-
};
|
|
103
|
-
export type ModalProps = Omit<ModalBaseProps, keyof ModalPropsIOS | keyof ModalPropsAndroid | keyof ViewProps | keyof {}> & Omit<ModalPropsIOS, keyof ModalPropsAndroid | keyof ViewProps | keyof {}> & Omit<ModalPropsAndroid, keyof ViewProps | keyof {}> & Omit<ViewProps, keyof {}> & {};
|
|
104
|
-
type ModalRefProps = Readonly<{
|
|
105
|
-
ref?: React.Ref<PublicModalInstance>;
|
|
106
|
-
}>;
|
|
107
|
-
declare function Wrapper($$PARAM_0$$: Omit<ModalRefProps, keyof ModalProps | keyof {}> & Omit<ModalProps, keyof {}> & {}): React.ReactNode;
|
|
108
|
-
declare const $$Modal: typeof Wrapper;
|
|
109
|
-
declare type $$Modal = typeof $$Modal;
|
|
110
|
-
export default $$Modal;
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<f487a5c07b14844a12641cc26cf7500f>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export * from "../../../src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid";
|
|
14
|
-
import NativeDialogManagerAndroid from "../../../src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid";
|
|
15
|
-
declare const $$NativeDialogManagerAndroid: typeof NativeDialogManagerAndroid;
|
|
16
|
-
declare type $$NativeDialogManagerAndroid = typeof $$NativeDialogManagerAndroid;
|
|
17
|
-
export default $$NativeDialogManagerAndroid;
|
|
@@ -1,56 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<198d3a369a49a9243a1bd29386d93a0c>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Network/FormData.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
type FormDataValue = string | {
|
|
14
|
-
name?: string;
|
|
15
|
-
type?: string;
|
|
16
|
-
uri: string;
|
|
17
|
-
};
|
|
18
|
-
type Headers = {
|
|
19
|
-
[name: string]: string;
|
|
20
|
-
};
|
|
21
|
-
type FormDataPart = {
|
|
22
|
-
string: string;
|
|
23
|
-
headers: Headers;
|
|
24
|
-
} | {
|
|
25
|
-
uri: string;
|
|
26
|
-
headers: Headers;
|
|
27
|
-
name?: string;
|
|
28
|
-
type?: string;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Polyfill for XMLHttpRequest2 FormData API, allowing multipart POST requests
|
|
32
|
-
* with mixed data (string, native files) to be submitted via XMLHttpRequest.
|
|
33
|
-
*
|
|
34
|
-
* Example:
|
|
35
|
-
*
|
|
36
|
-
* var photo = {
|
|
37
|
-
* uri: uriFromCameraRoll,
|
|
38
|
-
* type: 'image/jpeg',
|
|
39
|
-
* name: 'photo.jpg',
|
|
40
|
-
* };
|
|
41
|
-
*
|
|
42
|
-
* var body = new FormData();
|
|
43
|
-
* body.append('authToken', 'secret');
|
|
44
|
-
* body.append('photo', photo);
|
|
45
|
-
* body.append('title', 'A beautiful photo!');
|
|
46
|
-
*
|
|
47
|
-
* xhr.open('POST', serverURL);
|
|
48
|
-
* xhr.send(body);
|
|
49
|
-
*/
|
|
50
|
-
declare class FormData {
|
|
51
|
-
constructor();
|
|
52
|
-
append(key: string, value: FormDataValue): void;
|
|
53
|
-
getAll(key: string): Array<FormDataValue>;
|
|
54
|
-
getParts(): Array<FormDataPart>;
|
|
55
|
-
}
|
|
56
|
-
export default FormData;
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<f9ded770b8646e129d186f88079e22fb>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Network/RCTNetworking.js.flow
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { EventSubscription } from "../vendor/emitter/EventEmitter";
|
|
14
|
-
import type { RequestBody } from "./convertRequestBody";
|
|
15
|
-
import type { RCTNetworkingEventDefinitions } from "./RCTNetworkingEventDefinitions.flow";
|
|
16
|
-
import type { NativeResponseType } from "./XMLHttpRequest";
|
|
17
|
-
declare const RCTNetworking: {
|
|
18
|
-
addListener<K extends keyof RCTNetworkingEventDefinitions>(eventType: K, listener: (...$$REST$$: RCTNetworkingEventDefinitions[K]) => unknown, context?: unknown): EventSubscription;
|
|
19
|
-
sendRequest(method: string, trackingName: string | void, url: string, headers: {}, data: RequestBody, responseType: NativeResponseType, incrementalUpdates: boolean, timeout: number, callback: (requestId: number) => void, withCredentials: boolean): void;
|
|
20
|
-
abortRequest(requestId: number): void;
|
|
21
|
-
clearCookies(callback: (result: boolean) => void): void;
|
|
22
|
-
};
|
|
23
|
-
declare const $$RCTNetworking: typeof RCTNetworking;
|
|
24
|
-
declare type $$RCTNetworking = typeof $$RCTNetworking;
|
|
25
|
-
export default $$RCTNetworking;
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<ec2d11f340aa56b07ecdbc8904ce8e29>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Network/RCTNetworkingEventDefinitions.flow.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type RCTNetworkingEventDefinitions = Readonly<{
|
|
14
|
-
didSendNetworkData: [[number, number, number]];
|
|
15
|
-
didReceiveNetworkResponse: [[number, number, {
|
|
16
|
-
[$$Key$$: string]: string;
|
|
17
|
-
} | undefined, string | undefined]];
|
|
18
|
-
didReceiveNetworkData: [[number, string]];
|
|
19
|
-
didReceiveNetworkIncrementalData: [[number, string, number, number]];
|
|
20
|
-
didReceiveNetworkDataProgress: [[number, number, number]];
|
|
21
|
-
didCompleteNetworkResponse: [[number, string, boolean]];
|
|
22
|
-
}>;
|
|
@@ -1,96 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<b161d27842b5f2860ecc5182987426b2>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Network/XMLHttpRequest.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { EventCallback, EventListener } from "../../src/private/webapis/dom/events/EventTarget";
|
|
14
|
-
import type { IPerformanceLogger } from "../Utilities/createPerformanceLogger";
|
|
15
|
-
import EventTarget from "../../src/private/webapis/dom/events/EventTarget";
|
|
16
|
-
export type NativeResponseType = "base64" | "blob" | "text";
|
|
17
|
-
export type ResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
|
18
|
-
export type Response = (null | undefined | Object) | string;
|
|
19
|
-
declare class XMLHttpRequestEventTarget extends EventTarget {
|
|
20
|
-
get onload(): EventCallback | null;
|
|
21
|
-
set onload(listener: null | undefined | EventCallback);
|
|
22
|
-
get onloadstart(): EventCallback | null;
|
|
23
|
-
set onloadstart(listener: null | undefined | EventCallback);
|
|
24
|
-
get onprogress(): EventCallback | null;
|
|
25
|
-
set onprogress(listener: null | undefined | EventCallback);
|
|
26
|
-
get ontimeout(): EventCallback | null;
|
|
27
|
-
set ontimeout(listener: null | undefined | EventCallback);
|
|
28
|
-
get onerror(): EventCallback | null;
|
|
29
|
-
set onerror(listener: null | undefined | EventCallback);
|
|
30
|
-
get onabort(): EventCallback | null;
|
|
31
|
-
set onabort(listener: null | undefined | EventCallback);
|
|
32
|
-
get onloadend(): EventCallback | null;
|
|
33
|
-
set onloadend(listener: null | undefined | EventCallback);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Shared base for platform-specific XMLHttpRequest implementations.
|
|
37
|
-
*/
|
|
38
|
-
declare class XMLHttpRequest extends EventTarget {
|
|
39
|
-
static UNSENT: number;
|
|
40
|
-
static OPENED: number;
|
|
41
|
-
static HEADERS_RECEIVED: number;
|
|
42
|
-
static LOADING: number;
|
|
43
|
-
static DONE: number;
|
|
44
|
-
UNSENT: number;
|
|
45
|
-
OPENED: number;
|
|
46
|
-
HEADERS_RECEIVED: number;
|
|
47
|
-
LOADING: number;
|
|
48
|
-
DONE: number;
|
|
49
|
-
readyState: number;
|
|
50
|
-
responseHeaders: null | undefined | Object;
|
|
51
|
-
status: number;
|
|
52
|
-
timeout: number;
|
|
53
|
-
responseURL: null | undefined | string;
|
|
54
|
-
withCredentials: boolean;
|
|
55
|
-
upload: XMLHttpRequestEventTarget;
|
|
56
|
-
static enableProfiling(enableProfiling: boolean): void;
|
|
57
|
-
constructor();
|
|
58
|
-
get responseType(): ResponseType;
|
|
59
|
-
set responseType(responseType: ResponseType);
|
|
60
|
-
get responseText(): string;
|
|
61
|
-
get response(): Response;
|
|
62
|
-
getAllResponseHeaders(): null | undefined | string;
|
|
63
|
-
getResponseHeader(header: string): null | undefined | string;
|
|
64
|
-
setRequestHeader(header: string, value: any): void;
|
|
65
|
-
/**
|
|
66
|
-
* Custom extension for tracking origins of request.
|
|
67
|
-
*/
|
|
68
|
-
setTrackingName(trackingName: null | undefined | string): XMLHttpRequest;
|
|
69
|
-
/**
|
|
70
|
-
* Custom extension for setting a custom performance logger
|
|
71
|
-
*/
|
|
72
|
-
setPerformanceLogger(performanceLogger: IPerformanceLogger): XMLHttpRequest;
|
|
73
|
-
open(method: string, url: string, async: null | undefined | boolean): void;
|
|
74
|
-
send(data: any): void;
|
|
75
|
-
abort(): void;
|
|
76
|
-
setResponseHeaders(responseHeaders: null | undefined | Object): void;
|
|
77
|
-
setReadyState(newState: number): void;
|
|
78
|
-
addEventListener(type: string, listener: EventListener | null): void;
|
|
79
|
-
get onabort(): EventCallback | null;
|
|
80
|
-
set onabort(listener: null | undefined | EventCallback);
|
|
81
|
-
get onerror(): EventCallback | null;
|
|
82
|
-
set onerror(listener: null | undefined | EventCallback);
|
|
83
|
-
get onload(): EventCallback | null;
|
|
84
|
-
set onload(listener: null | undefined | EventCallback);
|
|
85
|
-
get onloadstart(): EventCallback | null;
|
|
86
|
-
set onloadstart(listener: null | undefined | EventCallback);
|
|
87
|
-
get onprogress(): EventCallback | null;
|
|
88
|
-
set onprogress(listener: null | undefined | EventCallback);
|
|
89
|
-
get ontimeout(): EventCallback | null;
|
|
90
|
-
set ontimeout(listener: null | undefined | EventCallback);
|
|
91
|
-
get onloadend(): EventCallback | null;
|
|
92
|
-
set onloadend(listener: null | undefined | EventCallback);
|
|
93
|
-
get onreadystatechange(): EventCallback | null;
|
|
94
|
-
set onreadystatechange(listener: null | undefined | EventCallback);
|
|
95
|
-
}
|
|
96
|
-
export default XMLHttpRequest;
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<fac50fec1d748cd895600d3edbdd3868>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Network/convertRequestBody.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import Blob from "../Blob/Blob";
|
|
14
|
-
import FormData from "./FormData";
|
|
15
|
-
export type RequestBody = string | Blob | FormData | {
|
|
16
|
-
uri: string;
|
|
17
|
-
} | ArrayBuffer | ArrayBufferView;
|
|
18
|
-
declare function convertRequestBody(body: RequestBody): Object;
|
|
19
|
-
declare const $$convertRequestBody: typeof convertRequestBody;
|
|
20
|
-
declare type $$convertRequestBody = typeof $$convertRequestBody;
|
|
21
|
-
export default $$convertRequestBody;
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
* @generated SignedSource<<8b9c870d7644cc28d85179293892bd5d>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Performance/Systrace.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
type EventName = string | (() => string);
|
|
14
|
-
type EventArgs = null | undefined | {
|
|
15
|
-
[$$Key$$: string]: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Indicates if the application is currently being traced.
|
|
19
|
-
*
|
|
20
|
-
* Calling methods on this module when the application isn't being traced is
|
|
21
|
-
* cheap, but this method can be used to avoid computing expensive values for
|
|
22
|
-
* those functions.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* if (Systrace.isEnabled()) {
|
|
26
|
-
* const expensiveArgs = computeExpensiveArgs();
|
|
27
|
-
* Systrace.beginEvent('myEvent', expensiveArgs);
|
|
28
|
-
* }
|
|
29
|
-
*/
|
|
30
|
-
export declare function isEnabled(): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated This function is now a no-op but it's left for backwards
|
|
33
|
-
* compatibility. `isEnabled` will now synchronously check if we're actively
|
|
34
|
-
* profiling or not. This is necessary because we don't have callbacks to know
|
|
35
|
-
* when profiling has started/stopped on Android APIs.
|
|
36
|
-
*/
|
|
37
|
-
export declare function setEnabled(_doEnable: boolean): void;
|
|
38
|
-
/**
|
|
39
|
-
* Marks the start of a synchronous event that should end in the same stack
|
|
40
|
-
* frame. The end of this event should be marked using the `endEvent` function.
|
|
41
|
-
*/
|
|
42
|
-
export declare function beginEvent(eventName: EventName, args?: EventArgs): void;
|
|
43
|
-
/**
|
|
44
|
-
* Marks the end of a synchronous event started in the same stack frame.
|
|
45
|
-
*/
|
|
46
|
-
export declare function endEvent(args?: EventArgs): void;
|
|
47
|
-
/**
|
|
48
|
-
* Marks the start of a potentially asynchronous event. The end of this event
|
|
49
|
-
* should be marked calling the `endAsyncEvent` function with the cookie
|
|
50
|
-
* returned by this function.
|
|
51
|
-
*/
|
|
52
|
-
export declare function beginAsyncEvent(eventName: EventName, args?: EventArgs): number;
|
|
53
|
-
/**
|
|
54
|
-
* Marks the end of a potentially asynchronous event, which was started with
|
|
55
|
-
* the given cookie.
|
|
56
|
-
*/
|
|
57
|
-
export declare function endAsyncEvent(eventName: EventName, cookie: number, args?: EventArgs): void;
|
|
58
|
-
/**
|
|
59
|
-
* Registers a new value for a counter event.
|
|
60
|
-
*/
|
|
61
|
-
export declare function counterEvent(eventName: EventName, value: number): void;
|