react-native-tvos 0.81.4-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 +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- 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 +1 -1
- package/package.json +2 -2
- 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,14 +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<<3f2fda38d84b5e80bdc7e4a3e8d67538>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/AppRegistry.js.flow
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type { TaskProvider, ComponentProvider, ComponentProviderInstrumentationHook, AppConfig, Runnable, Runnables, Registry, WrapperComponentProvider, RootViewStyleProvider } from "./AppRegistry.flow";
|
|
14
|
-
export * as AppRegistry from "./AppRegistryImpl";
|
|
@@ -1,44 +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<<7a044a08fb2ffe36c250c87aa82c6f55>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/AppRegistry.flow.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import type { ViewStyleProp } from "../StyleSheet/StyleSheet";
|
|
15
|
-
import type { RootTag } from "../Types/RootTagTypes";
|
|
16
|
-
import type { IPerformanceLogger } from "../Utilities/createPerformanceLogger";
|
|
17
|
-
import type { DisplayModeType } from "./DisplayMode";
|
|
18
|
-
type HeadlessTask = (taskData: any) => Promise<void>;
|
|
19
|
-
export type TaskProvider = () => HeadlessTask;
|
|
20
|
-
export type ComponentProvider = () => React.ComponentType<any>;
|
|
21
|
-
export type ComponentProviderInstrumentationHook = (component_: ComponentProvider, scopedPerformanceLogger: IPerformanceLogger) => React.ComponentType<any>;
|
|
22
|
-
export type AppConfig = {
|
|
23
|
-
appKey: string;
|
|
24
|
-
component?: ComponentProvider;
|
|
25
|
-
run?: Runnable;
|
|
26
|
-
section?: boolean;
|
|
27
|
-
};
|
|
28
|
-
export type AppParameters = {
|
|
29
|
-
initialProps: Readonly<{
|
|
30
|
-
[$$Key$$: string]: unknown;
|
|
31
|
-
}>;
|
|
32
|
-
rootTag: RootTag;
|
|
33
|
-
fabric?: boolean;
|
|
34
|
-
};
|
|
35
|
-
export type Runnable = (appParameters: AppParameters, displayMode: DisplayModeType) => void;
|
|
36
|
-
export type Runnables = {
|
|
37
|
-
[appKey: string]: Runnable;
|
|
38
|
-
};
|
|
39
|
-
export type Registry = {
|
|
40
|
-
sections: ReadonlyArray<string>;
|
|
41
|
-
runnables: Runnables;
|
|
42
|
-
};
|
|
43
|
-
export type WrapperComponentProvider = (appParameters: Object) => React.ComponentType<any>;
|
|
44
|
-
export type RootViewStyleProvider = (appParameters: Object) => ViewStyleProp;
|
|
@@ -1,73 +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<<cd12b23a8b0fc3374a44e21ab9ff4ca2>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/AppRegistryImpl.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { RootTag } from "../Types/RootTagTypes";
|
|
14
|
-
import type { AppConfig, AppParameters, ComponentProvider, ComponentProviderInstrumentationHook, Registry, RootViewStyleProvider, Runnable, Runnables, TaskProvider, WrapperComponentProvider } from "./AppRegistry.flow";
|
|
15
|
-
type TaskCanceller = () => void;
|
|
16
|
-
type TaskCancelProvider = () => TaskCanceller;
|
|
17
|
-
export declare function setWrapperComponentProvider(provider: WrapperComponentProvider): void;
|
|
18
|
-
export declare function setRootViewStyleProvider(provider: RootViewStyleProvider): void;
|
|
19
|
-
export declare function registerConfig(config: Array<AppConfig>): void;
|
|
20
|
-
/**
|
|
21
|
-
* Registers an app's root component.
|
|
22
|
-
*
|
|
23
|
-
* See https://reactnative.dev/docs/appregistry#registercomponent
|
|
24
|
-
*/
|
|
25
|
-
export declare function registerComponent(appKey: string, componentProvider: ComponentProvider, section?: boolean): string;
|
|
26
|
-
export declare function registerRunnable(appKey: string, run: Runnable): string;
|
|
27
|
-
export declare function registerSection(appKey: string, component: ComponentProvider): void;
|
|
28
|
-
export declare function getAppKeys(): ReadonlyArray<string>;
|
|
29
|
-
export declare function getSectionKeys(): ReadonlyArray<string>;
|
|
30
|
-
export declare function getSections(): Runnables;
|
|
31
|
-
export declare function getRunnable(appKey: string): null | undefined | Runnable;
|
|
32
|
-
export declare function getRegistry(): Registry;
|
|
33
|
-
export declare function setComponentProviderInstrumentationHook(hook: ComponentProviderInstrumentationHook): void;
|
|
34
|
-
/**
|
|
35
|
-
* Loads the JavaScript bundle and runs the app.
|
|
36
|
-
*
|
|
37
|
-
* See https://reactnative.dev/docs/appregistry#runapplication
|
|
38
|
-
*/
|
|
39
|
-
export declare function runApplication(appKey: string, appParameters: AppParameters, displayMode?: number): void;
|
|
40
|
-
/**
|
|
41
|
-
* Update initial props for a surface that's already rendered
|
|
42
|
-
*/
|
|
43
|
-
export declare function setSurfaceProps(appKey: string, appParameters: Object, displayMode?: number): void;
|
|
44
|
-
/**
|
|
45
|
-
* Stops an application when a view should be destroyed.
|
|
46
|
-
*
|
|
47
|
-
* See https://reactnative.dev/docs/appregistry#unmountapplicationcomponentatroottag
|
|
48
|
-
*/
|
|
49
|
-
export declare function unmountApplicationComponentAtRootTag(rootTag: RootTag): void;
|
|
50
|
-
/**
|
|
51
|
-
* Register a headless task. A headless task is a bit of code that runs without a UI.
|
|
52
|
-
*
|
|
53
|
-
* See https://reactnative.dev/docs/appregistry#registerheadlesstask
|
|
54
|
-
*/
|
|
55
|
-
export declare function registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void;
|
|
56
|
-
/**
|
|
57
|
-
* Register a cancellable headless task. A headless task is a bit of code that runs without a UI.
|
|
58
|
-
*
|
|
59
|
-
* See https://reactnative.dev/docs/appregistry#registercancellableheadlesstask
|
|
60
|
-
*/
|
|
61
|
-
export declare function registerCancellableHeadlessTask(taskKey: string, taskProvider: TaskProvider, taskCancelProvider: TaskCancelProvider): void;
|
|
62
|
-
/**
|
|
63
|
-
* Only called from native code. Starts a headless task.
|
|
64
|
-
*
|
|
65
|
-
* See https://reactnative.dev/docs/appregistry#startheadlesstask
|
|
66
|
-
*/
|
|
67
|
-
export declare function startHeadlessTask(taskId: number, taskKey: string, data: any): void;
|
|
68
|
-
/**
|
|
69
|
-
* Only called from native code. Cancels a headless task.
|
|
70
|
-
*
|
|
71
|
-
* See https://reactnative.dev/docs/appregistry#cancelheadlesstask
|
|
72
|
-
*/
|
|
73
|
-
export declare function cancelHeadlessTask(taskId: number, taskKey: string): void;
|
|
@@ -1,24 +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<<479df6ace694badb48798d6f908d4fa0>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/DisplayMode.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export declare type DisplayModeType = symbol & {
|
|
14
|
-
__DisplayModeType__: string;
|
|
15
|
-
};
|
|
16
|
-
declare const DisplayMode: {
|
|
17
|
-
readonly [$$Key$$: string]: DisplayModeType;
|
|
18
|
-
};
|
|
19
|
-
export declare function coerceDisplayMode(value: null | undefined | number): DisplayModeType;
|
|
20
|
-
/** DisplayMode should be in sync with the method displayModeToInt from
|
|
21
|
-
* react/renderer/uimanager/primitives.h. */
|
|
22
|
-
declare const $$DisplayMode: typeof DisplayMode;
|
|
23
|
-
declare type $$DisplayMode = typeof $$DisplayMode;
|
|
24
|
-
export default $$DisplayMode;
|
|
@@ -1,23 +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<<f51599d2ab6a8ea9d565d15357061b5a>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/I18nManager.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { I18nManagerConstants } from "./NativeI18nManager";
|
|
14
|
-
declare const $$I18nManager: {
|
|
15
|
-
getConstants: () => I18nManagerConstants;
|
|
16
|
-
allowRTL: (shouldAllow: boolean) => void;
|
|
17
|
-
forceRTL: (shouldForce: boolean) => void;
|
|
18
|
-
swapLeftAndRightInRTL: (flipStyles: boolean) => void;
|
|
19
|
-
isRTL: I18nManagerConstants["isRTL"];
|
|
20
|
-
doLeftAndRightSwapInRTL: I18nManagerConstants["doLeftAndRightSwapInRTL"];
|
|
21
|
-
};
|
|
22
|
-
declare type $$I18nManager = typeof $$I18nManager;
|
|
23
|
-
export default $$I18nManager;
|
|
@@ -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<<0b2addb90dc4f99bb1f09394d5fa23fe>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/NativeI18nManager.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export * from "../../src/private/specs_DEPRECATED/modules/NativeI18nManager";
|
|
14
|
-
import NativeI18nManager from "../../src/private/specs_DEPRECATED/modules/NativeI18nManager";
|
|
15
|
-
declare const $$NativeI18nManager: typeof NativeI18nManager;
|
|
16
|
-
declare type $$NativeI18nManager = typeof $$NativeI18nManager;
|
|
17
|
-
export default $$NativeI18nManager;
|
|
@@ -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<<ced9c7c438314f0e1821fccea3e911fc>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/NativeUIManager.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export * from "../../src/private/specs_DEPRECATED/modules/NativeUIManager";
|
|
14
|
-
import NativeUIManager from "../../src/private/specs_DEPRECATED/modules/NativeUIManager";
|
|
15
|
-
declare const $$NativeUIManager: typeof NativeUIManager;
|
|
16
|
-
declare type $$NativeUIManager = typeof $$NativeUIManager;
|
|
17
|
-
export default $$NativeUIManager;
|
|
@@ -1,28 +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<<bbdb3684f82fe4e5d53cd8658b52d699>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { HostInstance, MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback, NativeMethods } from "../../../src/private/types/HostInstance";
|
|
14
|
-
import type { InternalInstanceHandle, ViewConfig } from "../../Renderer/shims/ReactNativeTypes";
|
|
15
|
-
/**
|
|
16
|
-
* This is used for refs on host components.
|
|
17
|
-
*/
|
|
18
|
-
declare class ReactFabricHostComponent implements NativeMethods {
|
|
19
|
-
constructor(tag: number, viewConfig: ViewConfig, internalInstanceHandle: InternalInstanceHandle);
|
|
20
|
-
blur(): void;
|
|
21
|
-
focus(): void;
|
|
22
|
-
measure(callback: MeasureOnSuccessCallback): void;
|
|
23
|
-
measureInWindow(callback: MeasureInWindowOnSuccessCallback): void;
|
|
24
|
-
measureLayout(relativeToNativeNode: number | HostInstance, onSuccess: MeasureLayoutOnSuccessCallback, onFail?: () => void): void;
|
|
25
|
-
unstable_getBoundingClientRect(): DOMRect;
|
|
26
|
-
setNativeProps(nativeProps: {}): void;
|
|
27
|
-
}
|
|
28
|
-
export default ReactFabricHostComponent;
|
|
@@ -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<<a7d52f6c4f22875b4239d8d0557daf62>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* This module is meant to be used by the React renderers to create public
|
|
15
|
-
* instances and get some data from them (like their instance handle / fiber).
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import type ReactNativeDocumentT from "../../../src/private/webapis/dom/nodes/ReactNativeDocument";
|
|
19
|
-
import type ReactNativeElementT from "../../../src/private/webapis/dom/nodes/ReactNativeElement";
|
|
20
|
-
import type ReadOnlyTextT from "../../../src/private/webapis/dom/nodes/ReadOnlyText";
|
|
21
|
-
import type { InternalInstanceHandle, Node, ViewConfig } from "../../Renderer/shims/ReactNativeTypes";
|
|
22
|
-
import type { RootTag } from "../RootTag";
|
|
23
|
-
import type ReactFabricHostComponentT from "./ReactFabricHostComponent";
|
|
24
|
-
export declare type PublicRootInstance = symbol & {
|
|
25
|
-
__PublicRootInstance__: string;
|
|
26
|
-
};
|
|
27
|
-
export declare function createPublicRootInstance(rootTag: RootTag): PublicRootInstance;
|
|
28
|
-
export declare function createPublicInstance(tag: number, viewConfig: ViewConfig, internalInstanceHandle: InternalInstanceHandle, ownerDocument: ReactNativeDocumentT): ReactFabricHostComponentT | ReactNativeElementT;
|
|
29
|
-
export declare function createPublicTextInstance(internalInstanceHandle: InternalInstanceHandle, ownerDocument: ReactNativeDocumentT): ReadOnlyTextT;
|
|
30
|
-
export declare function getNativeTagFromPublicInstance(publicInstance: ReactFabricHostComponentT | ReactNativeElementT): number;
|
|
31
|
-
export declare function getNodeFromPublicInstance(publicInstance: ReactFabricHostComponentT | ReactNativeElementT): null | undefined | Node;
|
|
32
|
-
export declare function getInternalInstanceHandleFromPublicInstance(publicInstance: ReactFabricHostComponentT | ReactNativeElementT): InternalInstanceHandle;
|
|
@@ -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<<a6d755fa2dd3fa28541d37cc32b69ad1>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { AttributeConfiguration } from "../../Renderer/shims/ReactNativeTypes";
|
|
14
|
-
export declare function create(props: Object, validAttributes: AttributeConfiguration): null | Object;
|
|
15
|
-
export declare function diff(prevProps: Object, nextProps: Object, validAttributes: AttributeConfiguration): null | Object;
|
|
@@ -1,37 +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<<6a10cd52df53922dbb532dbc48970911>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/RendererImplementation.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { HostInstance } from "../../src/private/types/HostInstance";
|
|
14
|
-
import type { InternalInstanceHandle, Node } from "../Renderer/shims/ReactNativeTypes";
|
|
15
|
-
import { type RootTag } from "./RootTag";
|
|
16
|
-
import * as React from "react";
|
|
17
|
-
export declare function renderElement($$PARAM_0$$: {
|
|
18
|
-
element: React.JSX.Element;
|
|
19
|
-
rootTag: number;
|
|
20
|
-
useFabric: boolean;
|
|
21
|
-
useConcurrentRoot: boolean;
|
|
22
|
-
}): void;
|
|
23
|
-
export declare function findHostInstance_DEPRECATED<TElementType extends React.ElementType>(componentOrHandle: null | undefined | (React.ComponentRef<TElementType> | number)): null | undefined | HostInstance;
|
|
24
|
-
export declare function findNodeHandle<TElementType extends React.ElementType>(componentOrHandle: null | undefined | (React.ComponentRef<TElementType> | number), suppressWarning: null | undefined | boolean): null | undefined | number;
|
|
25
|
-
export declare function dispatchCommand(handle: HostInstance, command: string, args: Array<unknown>): void;
|
|
26
|
-
export declare function sendAccessibilityEvent(handle: HostInstance, eventType: string): void;
|
|
27
|
-
/**
|
|
28
|
-
* This method is used by AppRegistry to unmount a root when using the old
|
|
29
|
-
* React Native renderer (Paper).
|
|
30
|
-
*/
|
|
31
|
-
export declare function unmountComponentAtNodeAndRemoveContainer(rootTag: RootTag): void;
|
|
32
|
-
export declare function unstable_batchedUpdates<T>(fn: ($$PARAM_0$$: T) => void, bookkeeping: T): void;
|
|
33
|
-
export declare function isProfilingRenderer(): boolean;
|
|
34
|
-
export declare function isChildPublicInstance(parentInstance: HostInstance, childInstance: HostInstance): boolean;
|
|
35
|
-
export declare function getNodeFromInternalInstanceHandle(internalInstanceHandle: InternalInstanceHandle): null | undefined | Node;
|
|
36
|
-
export declare function getPublicInstanceFromInternalInstanceHandle(internalInstanceHandle: InternalInstanceHandle): unknown;
|
|
37
|
-
export declare function getPublicInstanceFromRootTag(rootTag: number): unknown;
|
|
@@ -1,28 +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<<87be6ff78b921ac3866465d0e608d634>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/RendererProxy.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* This module exists to allow apps to select their renderer implementation
|
|
15
|
-
* (e.g.: Fabric-only, Paper-only) without having to pull all the renderer
|
|
16
|
-
* implementations into their app bundle, which affects app size.
|
|
17
|
-
*
|
|
18
|
-
* By default, the setup will be:
|
|
19
|
-
* -> RendererProxy
|
|
20
|
-
* -> RendererImplementation (which uses Fabric or Paper depending on a flag at runtime)
|
|
21
|
-
*
|
|
22
|
-
* But this will allow a setup like this without duplicating logic:
|
|
23
|
-
* -> RendererProxy (fork)
|
|
24
|
-
* -> RendererImplementation (which uses Fabric or Paper depending on a flag at runtime)
|
|
25
|
-
* or -> OtherImplementation (which uses Fabric only)
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
export * from "./RendererImplementation";
|
|
@@ -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<<fecd6a4069a0fb2317ba2925334e37f0>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/RootTag.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
export declare type RootTag = symbol & {
|
|
15
|
-
__RootTag__: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const RootTagContext: React.Context<RootTag>;
|
|
18
|
-
export declare type RootTagContext = typeof RootTagContext;
|
|
19
|
-
/**
|
|
20
|
-
* Intended to only be used by `AppContainer`.
|
|
21
|
-
*/
|
|
22
|
-
export declare function createRootTag(rootTag: number | RootTag): RootTag;
|
|
@@ -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<<1cc6d2f42a5d6f80879d7366661a10d3>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/UIManager.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { UIManagerJSInterface } from "../Types/UIManagerJSInterface";
|
|
14
|
-
declare const UIManager: UIManagerJSInterface;
|
|
15
|
-
declare const $$UIManager: typeof UIManager;
|
|
16
|
-
declare type $$UIManager = typeof $$UIManager;
|
|
17
|
-
export default $$UIManager;
|
|
@@ -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<<0f52fb78ae7773fe8defaefea120bd41>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactNative/requireNativeComponent.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { HostComponent } from "../../src/private/types/HostComponent";
|
|
14
|
-
declare const requireNativeComponent: <T extends {}>(uiViewClassName: string) => HostComponent<T>;
|
|
15
|
-
/**
|
|
16
|
-
* Creates values that can be used like React components which represent native
|
|
17
|
-
* view managers. You should create JavaScript modules that wrap these values so
|
|
18
|
-
* that the results are memoized. Example:
|
|
19
|
-
*
|
|
20
|
-
* const View = requireNativeComponent('RCTView');
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
declare const $$requireNativeComponent: typeof requireNativeComponent;
|
|
24
|
-
declare type $$requireNativeComponent = typeof $$requireNativeComponent;
|
|
25
|
-
export default $$requireNativeComponent;
|
|
@@ -1,33 +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<<54658528d2b0bbd1be2b2c10b4e41d2c>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { createPublicTextInstance as $$IMPORT_TYPEOF_1$$ } from "../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance";
|
|
14
|
-
type createPublicTextInstanceT = typeof $$IMPORT_TYPEOF_1$$;
|
|
15
|
-
export type { HostInstance as PublicInstance, NativeMethods as LegacyPublicInstance, MeasureOnSuccessCallback, MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback } from "../../src/private/types/HostInstance";
|
|
16
|
-
export type { PublicRootInstance } from "../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance";
|
|
17
|
-
export type PublicTextInstance = ReturnType<createPublicTextInstanceT>;
|
|
18
|
-
export { default as BatchedBridge } from "../BatchedBridge/BatchedBridge";
|
|
19
|
-
export { default as ExceptionsManager } from "../Core/ExceptionsManager";
|
|
20
|
-
export { default as Platform } from "../Utilities/Platform";
|
|
21
|
-
export { default as RCTEventEmitter } from "../EventEmitter/RCTEventEmitter";
|
|
22
|
-
export * as ReactNativeViewConfigRegistry from "../Renderer/shims/ReactNativeViewConfigRegistry";
|
|
23
|
-
export { default as TextInputState } from "../Components/TextInput/TextInputState";
|
|
24
|
-
export { default as UIManager } from "../ReactNative/UIManager";
|
|
25
|
-
export { default as deepDiffer } from "../Utilities/differ/deepDiffer";
|
|
26
|
-
export { default as deepFreezeAndThrowOnMutationInDev } from "../Utilities/deepFreezeAndThrowOnMutationInDev";
|
|
27
|
-
export { default as flattenStyle } from "../StyleSheet/flattenStyle";
|
|
28
|
-
export { default as ReactFiberErrorDialog } from "../Core/ReactFiberErrorDialog";
|
|
29
|
-
export { default as legacySendAccessibilityEvent } from "../Components/AccessibilityInfo/legacySendAccessibilityEvent";
|
|
30
|
-
export { default as RawEventEmitter } from "../Core/RawEventEmitter";
|
|
31
|
-
export { default as CustomEvent } from "../../src/private/webapis/dom/events/CustomEvent";
|
|
32
|
-
export { create as createAttributePayload, diff as diffAttributePayloads } from "../ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload";
|
|
33
|
-
export { createPublicRootInstance, createPublicInstance, createPublicTextInstance, getNativeTagFromPublicInstance, getNodeFromPublicInstance, getInternalInstanceHandleFromPublicInstance } from "../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance";
|
|
@@ -1,169 +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<<edc0097a3e57af17fcef17a7396432e1>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { HostInstance as PublicInstance, MeasureOnSuccessCallback, PublicRootInstance, PublicTextInstance } from "react-native";
|
|
14
|
-
import * as React from "react";
|
|
15
|
-
export type AttributeType<T, V> = true | Readonly<{
|
|
16
|
-
diff?: (arg1: T, arg2: T) => boolean;
|
|
17
|
-
process?: (arg1: V) => T;
|
|
18
|
-
}>;
|
|
19
|
-
export type AnyAttributeType = AttributeType<any, any>;
|
|
20
|
-
export type AttributeConfiguration = Readonly<{
|
|
21
|
-
[propName: string]: AnyAttributeType | void;
|
|
22
|
-
style?: Readonly<{
|
|
23
|
-
[propName: string]: AnyAttributeType;
|
|
24
|
-
}>;
|
|
25
|
-
}>;
|
|
26
|
-
export type ViewConfig = Readonly<{
|
|
27
|
-
Commands?: Readonly<{
|
|
28
|
-
[commandName: string]: number;
|
|
29
|
-
}>;
|
|
30
|
-
Constants?: Readonly<{
|
|
31
|
-
[name: string]: unknown;
|
|
32
|
-
}>;
|
|
33
|
-
Manager?: string;
|
|
34
|
-
NativeProps?: Readonly<{
|
|
35
|
-
[propName: string]: string;
|
|
36
|
-
}>;
|
|
37
|
-
baseModuleName?: string | undefined;
|
|
38
|
-
bubblingEventTypes?: Readonly<{
|
|
39
|
-
[eventName: string]: Readonly<{
|
|
40
|
-
phasedRegistrationNames: Readonly<{
|
|
41
|
-
captured: string;
|
|
42
|
-
bubbled: string;
|
|
43
|
-
skipBubbling?: boolean | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
}>;
|
|
46
|
-
}>;
|
|
47
|
-
directEventTypes?: Readonly<{
|
|
48
|
-
[eventName: string]: Readonly<{
|
|
49
|
-
registrationName: string;
|
|
50
|
-
}>;
|
|
51
|
-
}>;
|
|
52
|
-
supportsRawText?: boolean;
|
|
53
|
-
uiViewClassName: string;
|
|
54
|
-
validAttributes: AttributeConfiguration;
|
|
55
|
-
}>;
|
|
56
|
-
export type PartialViewConfig = Readonly<{
|
|
57
|
-
bubblingEventTypes?: ViewConfig["bubblingEventTypes"];
|
|
58
|
-
directEventTypes?: ViewConfig["directEventTypes"];
|
|
59
|
-
supportsRawText?: boolean;
|
|
60
|
-
uiViewClassName: string;
|
|
61
|
-
validAttributes?: AttributeConfiguration;
|
|
62
|
-
}>;
|
|
63
|
-
type InspectorDataProps = Readonly<{
|
|
64
|
-
[propName: string]: string;
|
|
65
|
-
}>;
|
|
66
|
-
type InspectorDataGetter = ($$PARAM_0$$: <TElementType extends React.ElementType>(componentOrHandle: React.ComponentRef<TElementType> | number) => null | undefined | number) => Readonly<{
|
|
67
|
-
measure: (callback: MeasureOnSuccessCallback) => void;
|
|
68
|
-
props: InspectorDataProps;
|
|
69
|
-
}>;
|
|
70
|
-
export type InspectorData = Readonly<{
|
|
71
|
-
closestInstance?: unknown;
|
|
72
|
-
hierarchy: Array<{
|
|
73
|
-
name: string | undefined;
|
|
74
|
-
getInspectorData: InspectorDataGetter;
|
|
75
|
-
}>;
|
|
76
|
-
selectedIndex: number | undefined;
|
|
77
|
-
props: InspectorDataProps;
|
|
78
|
-
componentStack: string;
|
|
79
|
-
}>;
|
|
80
|
-
export type TouchedViewDataAtPoint = Readonly<{
|
|
81
|
-
pointerY: number;
|
|
82
|
-
touchedViewTag?: number;
|
|
83
|
-
frame: Readonly<{
|
|
84
|
-
top: number;
|
|
85
|
-
left: number;
|
|
86
|
-
width: number;
|
|
87
|
-
height: number;
|
|
88
|
-
}>;
|
|
89
|
-
closestPublicInstance?: PublicInstance;
|
|
90
|
-
} & InspectorData>;
|
|
91
|
-
export type RenderRootOptions = {
|
|
92
|
-
onUncaughtError?: (error: unknown, errorInfo: {
|
|
93
|
-
readonly componentStack?: string | undefined;
|
|
94
|
-
}) => void;
|
|
95
|
-
onCaughtError?: (error: unknown, errorInfo: {
|
|
96
|
-
readonly componentStack?: string | undefined;
|
|
97
|
-
readonly errorBoundary?: React.Component<any, any> | undefined;
|
|
98
|
-
}) => void;
|
|
99
|
-
onRecoverableError?: (error: unknown, errorInfo: {
|
|
100
|
-
readonly componentStack?: string | undefined;
|
|
101
|
-
}) => void;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Flat ReactNative renderer bundles are too big for Flow to parse efficiently.
|
|
105
|
-
* Provide minimal Flow typing for the high-level RN API and call it a day.
|
|
106
|
-
*/
|
|
107
|
-
export type ReactNativeType = {
|
|
108
|
-
findHostInstance_DEPRECATED<TElementType extends React.ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined): PublicInstance | undefined;
|
|
109
|
-
findNodeHandle<TElementType extends React.ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined, suppressWarning?: boolean): number | undefined;
|
|
110
|
-
isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean;
|
|
111
|
-
dispatchCommand(handle: PublicInstance, command: string, args: Array<unknown>): void;
|
|
112
|
-
sendAccessibilityEvent(handle: PublicInstance, eventType: string): void;
|
|
113
|
-
render(element: React.JSX.Element, containerTag: number, callback: (() => void) | undefined, options: RenderRootOptions | undefined): React.ComponentRef<React.ElementType> | undefined;
|
|
114
|
-
unmountComponentAtNode(containerTag: number): void;
|
|
115
|
-
unmountComponentAtNodeAndRemoveContainer(containerTag: number): void;
|
|
116
|
-
readonly unstable_batchedUpdates: <T>(fn: ($$PARAM_0$$: T) => void, bookkeeping: T) => void;
|
|
117
|
-
};
|
|
118
|
-
export declare type Node = symbol & {
|
|
119
|
-
__Node__: string;
|
|
120
|
-
};
|
|
121
|
-
export declare type InternalInstanceHandle = symbol & {
|
|
122
|
-
__InternalInstanceHandle__: string;
|
|
123
|
-
};
|
|
124
|
-
export type ReactFabricType = {
|
|
125
|
-
findHostInstance_DEPRECATED<TElementType extends React.ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined): PublicInstance | undefined;
|
|
126
|
-
findNodeHandle<TElementType extends React.ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined): number | undefined;
|
|
127
|
-
dispatchCommand(handle: PublicInstance, command: string, args: Array<unknown>): void;
|
|
128
|
-
isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean;
|
|
129
|
-
sendAccessibilityEvent(handle: PublicInstance, eventType: string): void;
|
|
130
|
-
render(element: React.JSX.Element, containerTag: number, callback: (() => void) | undefined, concurrentRoot: boolean | undefined, options: RenderRootOptions | undefined): React.ComponentRef<React.ElementType> | undefined;
|
|
131
|
-
unmountComponentAtNode(containerTag: number): void;
|
|
132
|
-
getNodeFromInternalInstanceHandle(internalInstanceHandle: InternalInstanceHandle): Node | undefined;
|
|
133
|
-
getPublicInstanceFromInternalInstanceHandle(internalInstanceHandle: InternalInstanceHandle): PublicInstance | PublicTextInstance | null;
|
|
134
|
-
getPublicInstanceFromRootTag(rootTag: number): PublicRootInstance | null;
|
|
135
|
-
};
|
|
136
|
-
export type ReactFabricEventTouch = {
|
|
137
|
-
identifier: number;
|
|
138
|
-
locationX: number;
|
|
139
|
-
locationY: number;
|
|
140
|
-
pageX: number;
|
|
141
|
-
pageY: number;
|
|
142
|
-
screenX: number;
|
|
143
|
-
screenY: number;
|
|
144
|
-
target: number;
|
|
145
|
-
timestamp: number;
|
|
146
|
-
force: number;
|
|
147
|
-
};
|
|
148
|
-
export type ReactFabricEvent = {
|
|
149
|
-
touches: Array<ReactFabricEventTouch>;
|
|
150
|
-
changedTouches: Array<ReactFabricEventTouch>;
|
|
151
|
-
targetTouches: Array<ReactFabricEventTouch>;
|
|
152
|
-
target: number;
|
|
153
|
-
};
|
|
154
|
-
export type LayoutAnimationType = "spring" | "linear" | "easeInEaseOut" | "easeIn" | "easeOut" | "keyboard";
|
|
155
|
-
export type LayoutAnimationProperty = "opacity" | "scaleX" | "scaleY" | "scaleXY";
|
|
156
|
-
export type LayoutAnimationAnimationConfig = Readonly<{
|
|
157
|
-
duration?: number;
|
|
158
|
-
delay?: number;
|
|
159
|
-
springDamping?: number;
|
|
160
|
-
initialVelocity?: number;
|
|
161
|
-
type?: LayoutAnimationType;
|
|
162
|
-
property?: LayoutAnimationProperty;
|
|
163
|
-
}>;
|
|
164
|
-
export type LayoutAnimationConfig = Readonly<{
|
|
165
|
-
duration: number;
|
|
166
|
-
create?: LayoutAnimationAnimationConfig;
|
|
167
|
-
update?: LayoutAnimationAnimationConfig;
|
|
168
|
-
delete?: LayoutAnimationAnimationConfig;
|
|
169
|
-
}>;
|