react-native-tvos 0.81.3-0 → 0.81.4-1
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 +2 -2
- package/React/Base/RCTVersion.m +2 -2
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
- package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
- package/package.json +8 -8
- package/scripts/cocoapods/autolinking.rb +6 -0
- package/scripts/cocoapods/codegen_utils.rb +1 -1
- package/scripts/codegen/generate-artifacts-executor/index.js +5 -6
- package/scripts/codegen/generate-artifacts-executor/utils.js +41 -10
- 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/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,32 +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<<3c5a83414598b6e3ffd2264a5a7eb30c>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Animated/nodes/AnimatedStyle.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { AnimatedNodeConfig } from "./AnimatedNode";
|
|
14
|
-
import AnimatedNode from "./AnimatedNode";
|
|
15
|
-
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
16
|
-
export type AnimatedStyleAllowlist = Readonly<{
|
|
17
|
-
[$$Key$$: string]: true;
|
|
18
|
-
}>;
|
|
19
|
-
type FlatStyle = {
|
|
20
|
-
[$$Key$$: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
declare class AnimatedStyle extends AnimatedWithChildren {
|
|
23
|
-
/**
|
|
24
|
-
* Creates an `AnimatedStyle` if `value` contains `AnimatedNode` instances.
|
|
25
|
-
* Otherwise, returns `null`.
|
|
26
|
-
*/
|
|
27
|
-
static from(flatStyle: null | undefined | FlatStyle, allowlist: null | undefined | AnimatedStyleAllowlist, originalStyleForWeb: null | undefined | unknown): null | undefined | AnimatedStyle;
|
|
28
|
-
constructor(nodeKeys: ReadonlyArray<string>, nodes: ReadonlyArray<AnimatedNode>, style: {
|
|
29
|
-
[$$Key$$: string]: unknown;
|
|
30
|
-
}, originalStyleForWeb: null | undefined | unknown, config?: null | undefined | AnimatedNodeConfig);
|
|
31
|
-
}
|
|
32
|
-
export default AnimatedStyle;
|
|
@@ -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<<ea8803546db5697651bbf917da70115c>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Animated/nodes/AnimatedSubtraction.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { InterpolationConfigType } from "./AnimatedInterpolation";
|
|
14
|
-
import type AnimatedNode from "./AnimatedNode";
|
|
15
|
-
import type { AnimatedNodeConfig } from "./AnimatedNode";
|
|
16
|
-
import AnimatedInterpolation from "./AnimatedInterpolation";
|
|
17
|
-
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
18
|
-
declare class AnimatedSubtraction extends AnimatedWithChildren {
|
|
19
|
-
constructor(a: AnimatedNode | number, b: AnimatedNode | number, config?: null | undefined | AnimatedNodeConfig);
|
|
20
|
-
interpolate<OutputT extends number | string>(config: InterpolationConfigType<OutputT>): AnimatedInterpolation<OutputT>;
|
|
21
|
-
}
|
|
22
|
-
export default AnimatedSubtraction;
|
|
@@ -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<<eb00b2447fd5839d442130069c870bb3>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Animated/nodes/AnimatedTracking.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { EndCallback } from "../animations/Animation";
|
|
14
|
-
import type { AnimatedNodeConfig } from "./AnimatedNode";
|
|
15
|
-
import type AnimatedValue from "./AnimatedValue";
|
|
16
|
-
import AnimatedNode from "./AnimatedNode";
|
|
17
|
-
declare class AnimatedTracking extends AnimatedNode {
|
|
18
|
-
constructor(value: AnimatedValue, parent: AnimatedNode, animationClass: any, animationConfig: Object, callback?: null | undefined | EndCallback, config?: null | undefined | AnimatedNodeConfig);
|
|
19
|
-
update(): void;
|
|
20
|
-
}
|
|
21
|
-
export default AnimatedTracking;
|
|
@@ -1,126 +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<<778081383ecc01c266c51e71a8f2e806>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Animated/nodes/AnimatedValue.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type Animation from "../animations/Animation";
|
|
14
|
-
import type { EndCallback } from "../animations/Animation";
|
|
15
|
-
import type { InterpolationConfigType } from "./AnimatedInterpolation";
|
|
16
|
-
import type AnimatedNode from "./AnimatedNode";
|
|
17
|
-
import type { AnimatedNodeConfig } from "./AnimatedNode";
|
|
18
|
-
import type AnimatedTracking from "./AnimatedTracking";
|
|
19
|
-
import AnimatedInterpolation from "./AnimatedInterpolation";
|
|
20
|
-
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
21
|
-
export type AnimatedValueConfig = Readonly<Omit<AnimatedNodeConfig, keyof {
|
|
22
|
-
useNativeDriver: boolean;
|
|
23
|
-
}> & {
|
|
24
|
-
useNativeDriver: boolean;
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Animated works by building a directed acyclic graph of dependencies
|
|
28
|
-
* transparently when you render your Animated components.
|
|
29
|
-
*
|
|
30
|
-
* new Animated.Value(0)
|
|
31
|
-
* .interpolate() .interpolate() new Animated.Value(1)
|
|
32
|
-
* opacity translateY scale
|
|
33
|
-
* style transform
|
|
34
|
-
* View#234 style
|
|
35
|
-
* View#123
|
|
36
|
-
*
|
|
37
|
-
* A) Top Down phase
|
|
38
|
-
* When an Animated.Value is updated, we recursively go down through this
|
|
39
|
-
* graph in order to find leaf nodes: the views that we flag as needing
|
|
40
|
-
* an update.
|
|
41
|
-
*
|
|
42
|
-
* B) Bottom Up phase
|
|
43
|
-
* When a view is flagged as needing an update, we recursively go back up
|
|
44
|
-
* in order to build the new value that it needs. The reason why we need
|
|
45
|
-
* this two-phases process is to deal with composite props such as
|
|
46
|
-
* transform which can receive values from multiple parents.
|
|
47
|
-
*/
|
|
48
|
-
export declare function flushValue(rootNode: AnimatedNode): void;
|
|
49
|
-
/**
|
|
50
|
-
* Standard value for driving animations. One `Animated.Value` can drive
|
|
51
|
-
* multiple properties in a synchronized fashion, but can only be driven by one
|
|
52
|
-
* mechanism at a time. Using a new mechanism (e.g. starting a new animation,
|
|
53
|
-
* or calling `setValue`) will stop any previous ones.
|
|
54
|
-
*
|
|
55
|
-
* See https://reactnative.dev/docs/animatedvalue
|
|
56
|
-
*/
|
|
57
|
-
declare class AnimatedValue extends AnimatedWithChildren {
|
|
58
|
-
constructor(value: number, config?: null | undefined | AnimatedValueConfig);
|
|
59
|
-
addListener(callback: (value: any) => unknown): string;
|
|
60
|
-
removeListener(id: string): void;
|
|
61
|
-
removeAllListeners(): void;
|
|
62
|
-
/**
|
|
63
|
-
* Directly set the value. This will stop any animations running on the value
|
|
64
|
-
* and update all the bound properties.
|
|
65
|
-
*
|
|
66
|
-
* See https://reactnative.dev/docs/animatedvalue#setvalue
|
|
67
|
-
*/
|
|
68
|
-
setValue(value: number): void;
|
|
69
|
-
/**
|
|
70
|
-
* Sets an offset that is applied on top of whatever value is set, whether via
|
|
71
|
-
* `setValue`, an animation, or `Animated.event`. Useful for compensating
|
|
72
|
-
* things like the start of a pan gesture.
|
|
73
|
-
*
|
|
74
|
-
* See https://reactnative.dev/docs/animatedvalue#setoffset
|
|
75
|
-
*/
|
|
76
|
-
setOffset(offset: number): void;
|
|
77
|
-
/**
|
|
78
|
-
* Merges the offset value into the base value and resets the offset to zero.
|
|
79
|
-
* The final output of the value is unchanged.
|
|
80
|
-
*
|
|
81
|
-
* See https://reactnative.dev/docs/animatedvalue#flattenoffset
|
|
82
|
-
*/
|
|
83
|
-
flattenOffset(): void;
|
|
84
|
-
/**
|
|
85
|
-
* Sets the offset value to the base value, and resets the base value to zero.
|
|
86
|
-
* The final output of the value is unchanged.
|
|
87
|
-
*
|
|
88
|
-
* See https://reactnative.dev/docs/animatedvalue#extractoffset
|
|
89
|
-
*/
|
|
90
|
-
extractOffset(): void;
|
|
91
|
-
/**
|
|
92
|
-
* Stops any running animation or tracking. `callback` is invoked with the
|
|
93
|
-
* final value after stopping the animation, which is useful for updating
|
|
94
|
-
* state to match the animation position with layout.
|
|
95
|
-
*
|
|
96
|
-
* See https://reactnative.dev/docs/animatedvalue#stopanimation
|
|
97
|
-
*/
|
|
98
|
-
stopAnimation(callback?: null | undefined | ((value: number) => void)): void;
|
|
99
|
-
/**
|
|
100
|
-
* Stops any animation and resets the value to its original.
|
|
101
|
-
*
|
|
102
|
-
* See https://reactnative.dev/docs/animatedvalue#resetanimation
|
|
103
|
-
*/
|
|
104
|
-
resetAnimation(callback?: null | undefined | ((value: number) => void)): void;
|
|
105
|
-
/**
|
|
106
|
-
* Interpolates the value before updating the property, e.g. mapping 0-1 to
|
|
107
|
-
* 0-10.
|
|
108
|
-
*/
|
|
109
|
-
interpolate<OutputT extends number | string>(config: InterpolationConfigType<OutputT>): AnimatedInterpolation<OutputT>;
|
|
110
|
-
/**
|
|
111
|
-
* Typically only used internally, but could be used by a custom Animation
|
|
112
|
-
* class.
|
|
113
|
-
*
|
|
114
|
-
* See https://reactnative.dev/docs/animatedvalue#animate
|
|
115
|
-
*/
|
|
116
|
-
animate(animation: Animation, callback: null | undefined | EndCallback): void;
|
|
117
|
-
/**
|
|
118
|
-
* Typically only used internally.
|
|
119
|
-
*/
|
|
120
|
-
stopTracking(): void;
|
|
121
|
-
/**
|
|
122
|
-
* Typically only used internally.
|
|
123
|
-
*/
|
|
124
|
-
track(tracking: AnimatedTracking): void;
|
|
125
|
-
}
|
|
126
|
-
export default AnimatedValue;
|
|
@@ -1,135 +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<<ea014851ac571fb041b09af6e9aa45c0>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Animated/nodes/AnimatedValueXY.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { AnimatedNodeConfig } from "./AnimatedNode";
|
|
14
|
-
import AnimatedValue from "./AnimatedValue";
|
|
15
|
-
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
16
|
-
export type AnimatedValueXYConfig = Readonly<Omit<AnimatedNodeConfig, keyof {
|
|
17
|
-
useNativeDriver: boolean;
|
|
18
|
-
}> & {
|
|
19
|
-
useNativeDriver: boolean;
|
|
20
|
-
}>;
|
|
21
|
-
type ValueXYListenerCallback = (value: {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
}) => unknown;
|
|
25
|
-
/**
|
|
26
|
-
* 2D Value for driving 2D animations, such as pan gestures. Almost identical
|
|
27
|
-
* API to normal `Animated.Value`, but multiplexed.
|
|
28
|
-
*
|
|
29
|
-
* See https://reactnative.dev/docs/animatedvaluexy
|
|
30
|
-
*/
|
|
31
|
-
declare class AnimatedValueXY extends AnimatedWithChildren {
|
|
32
|
-
x: AnimatedValue;
|
|
33
|
-
y: AnimatedValue;
|
|
34
|
-
constructor(valueIn?: null | undefined | {
|
|
35
|
-
readonly x: number | AnimatedValue;
|
|
36
|
-
readonly y: number | AnimatedValue;
|
|
37
|
-
}, config?: null | undefined | AnimatedValueXYConfig);
|
|
38
|
-
/**
|
|
39
|
-
* Directly set the value. This will stop any animations running on the value
|
|
40
|
-
* and update all the bound properties.
|
|
41
|
-
*
|
|
42
|
-
* See https://reactnative.dev/docs/animatedvaluexy#setvalue
|
|
43
|
-
*/
|
|
44
|
-
setValue(value: {
|
|
45
|
-
x: number;
|
|
46
|
-
y: number;
|
|
47
|
-
}): void;
|
|
48
|
-
/**
|
|
49
|
-
* Sets an offset that is applied on top of whatever value is set, whether
|
|
50
|
-
* via `setValue`, an animation, or `Animated.event`. Useful for compensating
|
|
51
|
-
* things like the start of a pan gesture.
|
|
52
|
-
*
|
|
53
|
-
* See https://reactnative.dev/docs/animatedvaluexy#setoffset
|
|
54
|
-
*/
|
|
55
|
-
setOffset(offset: {
|
|
56
|
-
x: number;
|
|
57
|
-
y: number;
|
|
58
|
-
}): void;
|
|
59
|
-
/**
|
|
60
|
-
* Merges the offset value into the base value and resets the offset to zero.
|
|
61
|
-
* The final output of the value is unchanged.
|
|
62
|
-
*
|
|
63
|
-
* See https://reactnative.dev/docs/animatedvaluexy#flattenoffset
|
|
64
|
-
*/
|
|
65
|
-
flattenOffset(): void;
|
|
66
|
-
/**
|
|
67
|
-
* Sets the offset value to the base value, and resets the base value to
|
|
68
|
-
* zero. The final output of the value is unchanged.
|
|
69
|
-
*
|
|
70
|
-
* See https://reactnative.dev/docs/animatedvaluexy#extractoffset
|
|
71
|
-
*/
|
|
72
|
-
extractOffset(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Stops any animation and resets the value to its original.
|
|
75
|
-
*
|
|
76
|
-
* See https://reactnative.dev/docs/animatedvaluexy#resetanimation
|
|
77
|
-
*/
|
|
78
|
-
resetAnimation(callback?: (value: {
|
|
79
|
-
x: number;
|
|
80
|
-
y: number;
|
|
81
|
-
}) => void): void;
|
|
82
|
-
/**
|
|
83
|
-
* Stops any running animation or tracking. `callback` is invoked with the
|
|
84
|
-
* final value after stopping the animation, which is useful for updating
|
|
85
|
-
* state to match the animation position with layout.
|
|
86
|
-
*
|
|
87
|
-
* See https://reactnative.dev/docs/animatedvaluexy#stopanimation
|
|
88
|
-
*/
|
|
89
|
-
stopAnimation(callback?: (value: {
|
|
90
|
-
x: number;
|
|
91
|
-
y: number;
|
|
92
|
-
}) => void): void;
|
|
93
|
-
/**
|
|
94
|
-
* Adds an asynchronous listener to the value so you can observe updates from
|
|
95
|
-
* animations. This is useful because there is no way to synchronously read
|
|
96
|
-
* the value because it might be driven natively.
|
|
97
|
-
*
|
|
98
|
-
* Returns a string that serves as an identifier for the listener.
|
|
99
|
-
*
|
|
100
|
-
* See https://reactnative.dev/docs/animatedvaluexy#addlistener
|
|
101
|
-
*/
|
|
102
|
-
addListener(callback: ValueXYListenerCallback): string;
|
|
103
|
-
/**
|
|
104
|
-
* Unregister a listener. The `id` param shall match the identifier
|
|
105
|
-
* previously returned by `addListener()`.
|
|
106
|
-
*
|
|
107
|
-
* See https://reactnative.dev/docs/animatedvaluexy#removelistener
|
|
108
|
-
*/
|
|
109
|
-
removeListener(id: string): void;
|
|
110
|
-
/**
|
|
111
|
-
* Remove all registered listeners.
|
|
112
|
-
*
|
|
113
|
-
* See https://reactnative.dev/docs/animatedvaluexy#removealllisteners
|
|
114
|
-
*/
|
|
115
|
-
removeAllListeners(): void;
|
|
116
|
-
/**
|
|
117
|
-
* Converts `{x, y}` into `{left, top}` for use in style.
|
|
118
|
-
*
|
|
119
|
-
* See https://reactnative.dev/docs/animatedvaluexy#getlayout
|
|
120
|
-
*/
|
|
121
|
-
getLayout(): {
|
|
122
|
-
[key: string]: AnimatedValue;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Converts `{x, y}` into a useable translation transform.
|
|
126
|
-
*
|
|
127
|
-
* See https://reactnative.dev/docs/animatedvaluexy#gettranslatetransform
|
|
128
|
-
*/
|
|
129
|
-
getTranslateTransform(): Array<{
|
|
130
|
-
translateX: AnimatedValue;
|
|
131
|
-
} | {
|
|
132
|
-
translateY: AnimatedValue;
|
|
133
|
-
}>;
|
|
134
|
-
}
|
|
135
|
-
export default AnimatedValueXY;
|
|
@@ -1,15 +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<<847d6fd45c338c692154216c07d4a5c3>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Animated/nodes/AnimatedWithChildren.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import AnimatedNode from "./AnimatedNode";
|
|
14
|
-
declare class AnimatedWithChildren extends AnimatedNode {}
|
|
15
|
-
export default AnimatedWithChildren;
|
|
@@ -1,15 +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<<a20a6d477d138124b7a60993ccd38227>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Animated/useAnimatedValue.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import Animated from "./Animated";
|
|
14
|
-
declare function useAnimatedValue(initialValue: number, config?: null | undefined | Animated.AnimatedConfig): Animated.Value;
|
|
15
|
-
export default useAnimatedValue;
|
|
@@ -1,63 +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<<44a18e9fb03f9240191fd8bd84e7d063>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/AppState/AppState.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { type EventSubscription } from "../vendor/emitter/EventEmitter";
|
|
14
|
-
/**
|
|
15
|
-
* active - The app is running in the foreground
|
|
16
|
-
* background - The app is running in the background. The user is either:
|
|
17
|
-
* - in another app
|
|
18
|
-
* - on the home screen
|
|
19
|
-
* - @platform android - on another Activity (even if it was launched by your app)
|
|
20
|
-
* @platform ios - inactive - This is a state that occurs when transitioning between foreground & background, and during periods of inactivity such as entering the multitasking view, opening the Notification Center or in the event of an incoming call.
|
|
21
|
-
*/
|
|
22
|
-
export type AppStateStatus = "inactive" | "background" | "active" | "extension" | "unknown";
|
|
23
|
-
/**
|
|
24
|
-
* change - This even is received when the app state has changed.
|
|
25
|
-
* memoryWarning - This event is used in the need of throwing memory warning or releasing it.
|
|
26
|
-
* @platform android - focus - Received when the app gains focus (the user is interacting with the app).
|
|
27
|
-
* @platform android - blur - Received when the user is not actively interacting with the app.
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* change - This even is received when the app state has changed.
|
|
31
|
-
* memoryWarning - This event is used in the need of throwing memory warning or releasing it.
|
|
32
|
-
* @platform android - focus - Received when the app gains focus (the user is interacting with the app).
|
|
33
|
-
* @platform android - blur - Received when the user is not actively interacting with the app.
|
|
34
|
-
*/
|
|
35
|
-
type AppStateEventDefinitions = {
|
|
36
|
-
change: [AppStateStatus];
|
|
37
|
-
memoryWarning: [];
|
|
38
|
-
blur: [];
|
|
39
|
-
focus: [];
|
|
40
|
-
};
|
|
41
|
-
export type AppStateEvent = keyof AppStateEventDefinitions;
|
|
42
|
-
/**
|
|
43
|
-
* `AppState` can tell you if the app is in the foreground or background,
|
|
44
|
-
* and notify you when the state changes.
|
|
45
|
-
*
|
|
46
|
-
* See https://reactnative.dev/docs/appstate
|
|
47
|
-
*/
|
|
48
|
-
declare class AppStateImpl {
|
|
49
|
-
currentState: null | undefined | string;
|
|
50
|
-
isAvailable: boolean;
|
|
51
|
-
constructor();
|
|
52
|
-
/**
|
|
53
|
-
* Add a handler to AppState changes by listening to the `change` event type
|
|
54
|
-
* and providing the handler.
|
|
55
|
-
*
|
|
56
|
-
* See https://reactnative.dev/docs/appstate#addeventlistener
|
|
57
|
-
*/
|
|
58
|
-
addEventListener<K extends AppStateEvent>(type: K, handler: (...$$REST$$: AppStateEventDefinitions[K]) => void): EventSubscription;
|
|
59
|
-
}
|
|
60
|
-
declare const AppState: AppStateImpl;
|
|
61
|
-
declare const $$AppState: typeof AppState;
|
|
62
|
-
declare type $$AppState = typeof $$AppState;
|
|
63
|
-
export default $$AppState;
|
|
@@ -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<<5c034c449098cae39fc203c0a33c011e>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/BatchedBridge/BatchedBridge.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import MessageQueue from "./MessageQueue";
|
|
14
|
-
declare const BatchedBridge: MessageQueue;
|
|
15
|
-
declare const $$BatchedBridge: typeof BatchedBridge;
|
|
16
|
-
declare type $$BatchedBridge = typeof $$BatchedBridge;
|
|
17
|
-
export default $$BatchedBridge;
|
|
@@ -1,39 +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<<80a72068d378f1ecf93f3067933266e9>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/BatchedBridge/MessageQueue.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type SpyData = {
|
|
14
|
-
type: number;
|
|
15
|
-
module: string | undefined;
|
|
16
|
-
method: string | number;
|
|
17
|
-
args: unknown[];
|
|
18
|
-
};
|
|
19
|
-
declare class MessageQueue {
|
|
20
|
-
constructor();
|
|
21
|
-
/**
|
|
22
|
-
* Public APIs
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
static spy(spyOrToggle: boolean | ((data: SpyData) => void)): void;
|
|
26
|
-
callFunctionReturnFlushedQueue(module: string, method: string, args: unknown[]): null | [Array<number>, Array<number>, Array<unknown>, number];
|
|
27
|
-
invokeCallbackAndReturnFlushedQueue(cbID: number, args: unknown[]): null | [Array<number>, Array<number>, Array<unknown>, number];
|
|
28
|
-
flushedQueue(): null | [Array<number>, Array<number>, Array<unknown>, number];
|
|
29
|
-
getEventLoopRunningTime(): number;
|
|
30
|
-
registerCallableModule(name: string, module: {}): void;
|
|
31
|
-
registerLazyCallableModule(name: string, factory: ($$PARAM_0$$: void) => {}): void;
|
|
32
|
-
getCallableModule(name: string): {} | null;
|
|
33
|
-
callNativeSyncHook(moduleID: number, methodID: number, params: unknown[], onFail: null | undefined | ((...$$REST$$: unknown[]) => void), onSucc: null | undefined | ((...$$REST$$: unknown[]) => void)): unknown;
|
|
34
|
-
processCallbacks(moduleID: number, methodID: number, params: unknown[], onFail: null | undefined | ((...$$REST$$: unknown[]) => void), onSucc: null | undefined | ((...$$REST$$: unknown[]) => void)): void;
|
|
35
|
-
enqueueNativeCall(moduleID: number, methodID: number, params: unknown[], onFail: null | undefined | ((...$$REST$$: unknown[]) => void), onSucc: null | undefined | ((...$$REST$$: unknown[]) => void)): void;
|
|
36
|
-
createDebugLookup(moduleID: number, name: string, methods: null | undefined | ReadonlyArray<string>): void;
|
|
37
|
-
setReactNativeMicrotasksCallback(fn: () => void): void;
|
|
38
|
-
}
|
|
39
|
-
export default MessageQueue;
|
|
@@ -1,20 +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<<a0005dfd65a918bf6e861758b7d49d54>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/BatchedBridge/NativeModules.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type ModuleConfig = [string, null | undefined | {}, null | undefined | ReadonlyArray<string>, null | undefined | ReadonlyArray<number>, null | undefined | ReadonlyArray<number>];
|
|
14
|
-
export type MethodType = "async" | "promise" | "sync";
|
|
15
|
-
declare let NativeModules: {
|
|
16
|
-
[moduleName: string]: any;
|
|
17
|
-
};
|
|
18
|
-
declare const $$NativeModules: typeof NativeModules;
|
|
19
|
-
declare type $$NativeModules = typeof $$NativeModules;
|
|
20
|
-
export default $$NativeModules;
|
|
@@ -1,80 +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<<8a263bb16a037655323f9985027be470>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Blob/Blob.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { BlobData, BlobOptions } from "./BlobTypes";
|
|
14
|
-
/**
|
|
15
|
-
* Opaque JS representation of some binary data in native.
|
|
16
|
-
*
|
|
17
|
-
* The API is modeled after the W3C Blob API, with one caveat
|
|
18
|
-
* regarding explicit deallocation. Refer to the `close()`
|
|
19
|
-
* method for further details.
|
|
20
|
-
*
|
|
21
|
-
* Example usage in a React component:
|
|
22
|
-
*
|
|
23
|
-
* class WebSocketImage extends React.Component {
|
|
24
|
-
* state = {blob: null};
|
|
25
|
-
* componentDidMount() {
|
|
26
|
-
* let ws = this.ws = new WebSocket(...);
|
|
27
|
-
* ws.binaryType = 'blob';
|
|
28
|
-
* ws.onmessage = (event) => {
|
|
29
|
-
* if (this.state.blob) {
|
|
30
|
-
* this.state.blob.close();
|
|
31
|
-
* }
|
|
32
|
-
* this.setState({blob: event.data});
|
|
33
|
-
* };
|
|
34
|
-
* }
|
|
35
|
-
* componentUnmount() {
|
|
36
|
-
* if (this.state.blob) {
|
|
37
|
-
* this.state.blob.close();
|
|
38
|
-
* }
|
|
39
|
-
* this.ws.close();
|
|
40
|
-
* }
|
|
41
|
-
* render() {
|
|
42
|
-
* if (!this.state.blob) {
|
|
43
|
-
* return <View />;
|
|
44
|
-
* }
|
|
45
|
-
* return <Image source={{uri: URL.createObjectURL(this.state.blob)}} />;
|
|
46
|
-
* }
|
|
47
|
-
* }
|
|
48
|
-
*
|
|
49
|
-
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob
|
|
50
|
-
*/
|
|
51
|
-
declare class Blob {
|
|
52
|
-
/**
|
|
53
|
-
* Constructor for JS consumers.
|
|
54
|
-
* Currently we only support creating Blobs from other Blobs.
|
|
55
|
-
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob
|
|
56
|
-
*/
|
|
57
|
-
constructor(parts?: Array<Blob | string>, options?: BlobOptions);
|
|
58
|
-
set data(data: null | undefined | BlobData);
|
|
59
|
-
get data(): BlobData;
|
|
60
|
-
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
61
|
-
/**
|
|
62
|
-
* This method is in the standard, but not actually implemented by
|
|
63
|
-
* any browsers at this point. It's important for how Blobs work in
|
|
64
|
-
* React Native, however, since we cannot de-allocate resources automatically,
|
|
65
|
-
* so consumers need to explicitly de-allocate them.
|
|
66
|
-
*
|
|
67
|
-
* Note that the semantics around Blobs created via `blob.slice()`
|
|
68
|
-
* and `new Blob([blob])` are different. `blob.slice()` creates a
|
|
69
|
-
* new *view* onto the same binary data, so calling `close()` on any
|
|
70
|
-
* of those views is enough to deallocate the data, whereas
|
|
71
|
-
* `new Blob([blob, ...])` actually copies the data in memory.
|
|
72
|
-
*/
|
|
73
|
-
close(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Size of the data contained in the Blob object, in bytes.
|
|
76
|
-
*/
|
|
77
|
-
get size(): number;
|
|
78
|
-
get type(): string;
|
|
79
|
-
}
|
|
80
|
-
export default Blob;
|
|
@@ -1,27 +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<<1601cdd5e45721496db2062fa4588524>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Blob/BlobTypes.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export declare type BlobCollector = symbol & {
|
|
14
|
-
__BlobCollector__: string;
|
|
15
|
-
};
|
|
16
|
-
export type BlobData = {
|
|
17
|
-
blobId: string;
|
|
18
|
-
offset: number;
|
|
19
|
-
size: number;
|
|
20
|
-
name?: string;
|
|
21
|
-
type?: string;
|
|
22
|
-
lastModified?: number;
|
|
23
|
-
};
|
|
24
|
-
export type BlobOptions = {
|
|
25
|
-
type: string;
|
|
26
|
-
lastModified: number;
|
|
27
|
-
};
|