react-native-tvos 0.81.4-0 → 0.81.5-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Components/Button.js +0 -1
- package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
- package/Libraries/Components/Pressable/Pressable.js +14 -12
- package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
- package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
- package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
- package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
- package/Libraries/Components/View/View.js +21 -1
- package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
- package/Libraries/Components/View/ViewPropTypes.js +5 -86
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTUtils.mm +5 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +3 -4
- package/React/Views/RCTSwitchManager.m +24 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +25 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +13 -26
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
- package/ReactAndroid/src/main/jni/react/jni/TransformHelper.cpp +3 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +0 -3
- package/ReactCommon/react/renderer/components/view/tests/ResolveTransformTest.cpp +377 -0
- package/package.json +8 -8
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
- package/types/public/ReactNativeTVTypes.d.ts +1 -43
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
- package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
- package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
- package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
- package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
- package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
- package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
- package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
- package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
- package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
- package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
- package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
- package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
- package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
- package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
- package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
- package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
- package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
- package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
- package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
- package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
- package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
- package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
- package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
- package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
- package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
- package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
- package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
- package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
- package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
- package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
- package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
- package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
- package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
- package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
- package/types_generated/Libraries/Components/Button.d.ts +0 -251
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
- package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
- package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
- package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
- package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
- package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
- package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
- package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
- package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
- package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
- package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
- package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
- package/types_generated/Libraries/Components/View/View.d.ts +0 -30
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
- package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
- package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
- package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
- package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
- package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
- package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
- package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
- package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
- package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
- package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
- package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
- package/types_generated/Libraries/Image/Image.d.ts +0 -18
- package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
- package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
- package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
- package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
- package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
- package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
- package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
- package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
- package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
- package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
- package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
- package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
- package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
- package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
- package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
- package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
- package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
- package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
- package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
- package/types_generated/Libraries/Network/FormData.d.ts +0 -56
- package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
- package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
- package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
- package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
- package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
- package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
- package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
- package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
- package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
- package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
- package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
- package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
- package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
- package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
- package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
- package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
- package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
- package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
- package/types_generated/Libraries/Share/Share.d.ts +0 -85
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
- package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
- package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
- package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
- package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
- package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
- package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
- package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
- package/types_generated/Libraries/Text/Text.d.ts +0 -30
- package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
- package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
- package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
- package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
- package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
- package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
- package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
- package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
- package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
- package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
- package/types_generated/Libraries/UTFSequence.d.ts +0 -39
- package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
- package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
- package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
- package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
- package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
- package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
- package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
- package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
- package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
- package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
- package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
- package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
- package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
- package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
- package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
- package/types_generated/index.d.ts +0 -164
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
- package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
- package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
- package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
- package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
- package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
- package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
- package/types_generated/src/private/types/HostComponent.d.ts +0 -19
- package/types_generated/src/private/types/HostInstance.d.ts +0 -91
- package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
- package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
- package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
- package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
- package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
- package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
- package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
- package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
- package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
- package/types_generated/tsconfig.json +0 -3
- package/types_generated/tsconfig.test.json +0 -16
|
@@ -1,327 +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<<74dd2fcf50a1b362422f16f3351ce473>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Types/CoreEventTypes.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { HostInstance } from "../../src/private/types/HostInstance";
|
|
14
|
-
export type NativeSyntheticEvent<T> = Readonly<{
|
|
15
|
-
bubbles: boolean | undefined;
|
|
16
|
-
cancelable: boolean | undefined;
|
|
17
|
-
currentTarget: number | HostInstance;
|
|
18
|
-
defaultPrevented: boolean | undefined;
|
|
19
|
-
dispatchConfig: Readonly<{
|
|
20
|
-
registrationName: string;
|
|
21
|
-
}>;
|
|
22
|
-
eventPhase: number | undefined;
|
|
23
|
-
preventDefault: () => void;
|
|
24
|
-
isDefaultPrevented: () => boolean;
|
|
25
|
-
stopPropagation: () => void;
|
|
26
|
-
isPropagationStopped: () => boolean;
|
|
27
|
-
isTrusted: boolean | undefined;
|
|
28
|
-
nativeEvent: T;
|
|
29
|
-
persist: () => void;
|
|
30
|
-
target: (number | undefined) | HostInstance;
|
|
31
|
-
timeStamp: number;
|
|
32
|
-
type: string | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
export type ResponderSyntheticEvent<T> = Readonly<Omit<NativeSyntheticEvent<T>, keyof {
|
|
35
|
-
touchHistory: Readonly<{
|
|
36
|
-
indexOfSingleActiveTouch: number;
|
|
37
|
-
mostRecentTimeStamp: number;
|
|
38
|
-
numberActiveTouches: number;
|
|
39
|
-
touchBank: ReadonlyArray<Readonly<{
|
|
40
|
-
touchActive: boolean;
|
|
41
|
-
startPageX: number;
|
|
42
|
-
startPageY: number;
|
|
43
|
-
startTimeStamp: number;
|
|
44
|
-
currentPageX: number;
|
|
45
|
-
currentPageY: number;
|
|
46
|
-
currentTimeStamp: number;
|
|
47
|
-
previousPageX: number;
|
|
48
|
-
previousPageY: number;
|
|
49
|
-
previousTimeStamp: number;
|
|
50
|
-
}>>;
|
|
51
|
-
}>;
|
|
52
|
-
}> & {
|
|
53
|
-
touchHistory: Readonly<{
|
|
54
|
-
indexOfSingleActiveTouch: number;
|
|
55
|
-
mostRecentTimeStamp: number;
|
|
56
|
-
numberActiveTouches: number;
|
|
57
|
-
touchBank: ReadonlyArray<Readonly<{
|
|
58
|
-
touchActive: boolean;
|
|
59
|
-
startPageX: number;
|
|
60
|
-
startPageY: number;
|
|
61
|
-
startTimeStamp: number;
|
|
62
|
-
currentPageX: number;
|
|
63
|
-
currentPageY: number;
|
|
64
|
-
currentTimeStamp: number;
|
|
65
|
-
previousPageX: number;
|
|
66
|
-
previousPageY: number;
|
|
67
|
-
previousTimeStamp: number;
|
|
68
|
-
}>>;
|
|
69
|
-
}>;
|
|
70
|
-
}>;
|
|
71
|
-
export type LayoutRectangle = Readonly<{
|
|
72
|
-
x: number;
|
|
73
|
-
y: number;
|
|
74
|
-
width: number;
|
|
75
|
-
height: number;
|
|
76
|
-
}>;
|
|
77
|
-
export type TextLayoutLine = Readonly<Omit<LayoutRectangle, keyof {
|
|
78
|
-
ascender: number;
|
|
79
|
-
capHeight: number;
|
|
80
|
-
descender: number;
|
|
81
|
-
text: string;
|
|
82
|
-
xHeight: number;
|
|
83
|
-
}> & {
|
|
84
|
-
ascender: number;
|
|
85
|
-
capHeight: number;
|
|
86
|
-
descender: number;
|
|
87
|
-
text: string;
|
|
88
|
-
xHeight: number;
|
|
89
|
-
}>;
|
|
90
|
-
export type LayoutChangeEvent = NativeSyntheticEvent<Readonly<{
|
|
91
|
-
layout: LayoutRectangle;
|
|
92
|
-
}>>;
|
|
93
|
-
type TextLayoutEventData = Readonly<{
|
|
94
|
-
lines: Array<TextLayoutLine>;
|
|
95
|
-
}>;
|
|
96
|
-
export type TextLayoutEvent = NativeSyntheticEvent<TextLayoutEventData>;
|
|
97
|
-
export type RemotePressEvent = Readonly<{
|
|
98
|
-
target: number;
|
|
99
|
-
}>;
|
|
100
|
-
export type TVRemoteEvent = Readonly<{
|
|
101
|
-
tag?: number;
|
|
102
|
-
target?: number;
|
|
103
|
-
eventType: string;
|
|
104
|
-
eventKeyAction?: string;
|
|
105
|
-
body?: any;
|
|
106
|
-
}>;
|
|
107
|
-
/**
|
|
108
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/UIEvent
|
|
109
|
-
*/
|
|
110
|
-
export interface NativeUIEvent {
|
|
111
|
-
/**
|
|
112
|
-
* Returns a long with details about the event, depending on the event type.
|
|
113
|
-
*/
|
|
114
|
-
readonly detail: number;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent
|
|
118
|
-
*/
|
|
119
|
-
export interface NativeMouseEvent extends NativeUIEvent {
|
|
120
|
-
/**
|
|
121
|
-
* The X coordinate of the mouse pointer in global (screen) coordinates.
|
|
122
|
-
*/
|
|
123
|
-
readonly screenX: number;
|
|
124
|
-
/**
|
|
125
|
-
* The Y coordinate of the mouse pointer in global (screen) coordinates.
|
|
126
|
-
*/
|
|
127
|
-
readonly screenY: number;
|
|
128
|
-
/**
|
|
129
|
-
* The X coordinate of the mouse pointer relative to the whole document.
|
|
130
|
-
*/
|
|
131
|
-
readonly pageX: number;
|
|
132
|
-
/**
|
|
133
|
-
* The Y coordinate of the mouse pointer relative to the whole document.
|
|
134
|
-
*/
|
|
135
|
-
readonly pageY: number;
|
|
136
|
-
/**
|
|
137
|
-
* The X coordinate of the mouse pointer in local (DOM content) coordinates.
|
|
138
|
-
*/
|
|
139
|
-
readonly clientX: number;
|
|
140
|
-
/**
|
|
141
|
-
* The Y coordinate of the mouse pointer in local (DOM content) coordinates.
|
|
142
|
-
*/
|
|
143
|
-
readonly clientY: number;
|
|
144
|
-
/**
|
|
145
|
-
* Alias for NativeMouseEvent.clientX
|
|
146
|
-
*/
|
|
147
|
-
readonly x: number;
|
|
148
|
-
/**
|
|
149
|
-
* Alias for NativeMouseEvent.clientY
|
|
150
|
-
*/
|
|
151
|
-
readonly y: number;
|
|
152
|
-
/**
|
|
153
|
-
* Returns true if the control key was down when the mouse event was fired.
|
|
154
|
-
*/
|
|
155
|
-
readonly ctrlKey: boolean;
|
|
156
|
-
/**
|
|
157
|
-
* Returns true if the shift key was down when the mouse event was fired.
|
|
158
|
-
*/
|
|
159
|
-
readonly shiftKey: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Returns true if the alt key was down when the mouse event was fired.
|
|
162
|
-
*/
|
|
163
|
-
readonly altKey: boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Returns true if the meta key was down when the mouse event was fired.
|
|
166
|
-
*/
|
|
167
|
-
readonly metaKey: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* The button number that was pressed (if applicable) when the mouse event was fired.
|
|
170
|
-
*/
|
|
171
|
-
readonly button: number;
|
|
172
|
-
/**
|
|
173
|
-
* The buttons being depressed (if any) when the mouse event was fired.
|
|
174
|
-
*/
|
|
175
|
-
readonly buttons: number;
|
|
176
|
-
/**
|
|
177
|
-
* The secondary target for the event, if there is one.
|
|
178
|
-
*/
|
|
179
|
-
readonly relatedTarget: null | number | HostInstance;
|
|
180
|
-
/**
|
|
181
|
-
* The X coordinate of the mouse pointer between that event and the padding edge of the target node
|
|
182
|
-
*/
|
|
183
|
-
readonly offsetX: number;
|
|
184
|
-
/**
|
|
185
|
-
* The Y coordinate of the mouse pointer between that event and the padding edge of the target node
|
|
186
|
-
*/
|
|
187
|
-
readonly offsetY: number;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent
|
|
191
|
-
*/
|
|
192
|
-
export interface NativePointerEvent extends NativeMouseEvent {
|
|
193
|
-
/**
|
|
194
|
-
* A unique identifier for the pointer causing the event.
|
|
195
|
-
*/
|
|
196
|
-
readonly pointerId: number;
|
|
197
|
-
/**
|
|
198
|
-
* The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer
|
|
199
|
-
*/
|
|
200
|
-
readonly width: number;
|
|
201
|
-
/**
|
|
202
|
-
* The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer.
|
|
203
|
-
*/
|
|
204
|
-
readonly height: number;
|
|
205
|
-
/**
|
|
206
|
-
* The normalized pressure of the pointer input in the range 0 to 1, where 0 and 1 represent
|
|
207
|
-
* the minimum and maximum pressure the hardware is capable of detecting, respectively.
|
|
208
|
-
*/
|
|
209
|
-
readonly pressure: number;
|
|
210
|
-
/**
|
|
211
|
-
* The normalized tangential pressure of the pointer input (also known as barrel pressure or
|
|
212
|
-
* cylinder stress) in the range -1 to 1, where 0 is the neutral position of the control.
|
|
213
|
-
*/
|
|
214
|
-
readonly tangentialPressure: number;
|
|
215
|
-
/**
|
|
216
|
-
* The plane angle (in degrees, in the range of -90 to 90) between the Y–Z plane and the plane
|
|
217
|
-
* containing both the pointer (e.g. pen stylus) axis and the Y axis.
|
|
218
|
-
*/
|
|
219
|
-
readonly tiltX: number;
|
|
220
|
-
/**
|
|
221
|
-
* The plane angle (in degrees, in the range of -90 to 90) between the X–Z plane and the plane
|
|
222
|
-
* containing both the pointer (e.g. pen stylus) axis and the X axis.
|
|
223
|
-
*/
|
|
224
|
-
readonly tiltY: number;
|
|
225
|
-
/**
|
|
226
|
-
* The clockwise rotation of the pointer (e.g. pen stylus) around its major axis in degrees,
|
|
227
|
-
* with a value in the range 0 to 359.
|
|
228
|
-
*/
|
|
229
|
-
readonly twist: number;
|
|
230
|
-
/**
|
|
231
|
-
* Indicates the device type that caused the event (mouse, pen, touch, etc.)
|
|
232
|
-
*/
|
|
233
|
-
readonly pointerType: string;
|
|
234
|
-
/**
|
|
235
|
-
* Indicates if the pointer represents the primary pointer of this pointer type.
|
|
236
|
-
*/
|
|
237
|
-
readonly isPrimary: boolean;
|
|
238
|
-
}
|
|
239
|
-
export type PointerEvent = NativeSyntheticEvent<NativePointerEvent>;
|
|
240
|
-
export type NativeTouchEvent = Readonly<{
|
|
241
|
-
/**
|
|
242
|
-
* Array of all touch events that have changed since the last event
|
|
243
|
-
*/
|
|
244
|
-
changedTouches: ReadonlyArray<NativeTouchEvent>;
|
|
245
|
-
/**
|
|
246
|
-
* 3D Touch reported force
|
|
247
|
-
* @platform ios
|
|
248
|
-
*/
|
|
249
|
-
force?: number;
|
|
250
|
-
/**
|
|
251
|
-
* The ID of the touch
|
|
252
|
-
*/
|
|
253
|
-
identifier: number;
|
|
254
|
-
/**
|
|
255
|
-
* The X position of the touch, relative to the element
|
|
256
|
-
*/
|
|
257
|
-
locationX: number;
|
|
258
|
-
/**
|
|
259
|
-
* The Y position of the touch, relative to the element
|
|
260
|
-
*/
|
|
261
|
-
locationY: number;
|
|
262
|
-
/**
|
|
263
|
-
* The X position of the touch, relative to the screen
|
|
264
|
-
*/
|
|
265
|
-
pageX: number;
|
|
266
|
-
/**
|
|
267
|
-
* The Y position of the touch, relative to the screen
|
|
268
|
-
*/
|
|
269
|
-
pageY: number;
|
|
270
|
-
/**
|
|
271
|
-
* The node id of the element receiving the touch event
|
|
272
|
-
*/
|
|
273
|
-
target: number | undefined;
|
|
274
|
-
/**
|
|
275
|
-
* A time identifier for the touch, useful for velocity calculation
|
|
276
|
-
*/
|
|
277
|
-
timestamp: number;
|
|
278
|
-
/**
|
|
279
|
-
* Array of all current touches on the screen
|
|
280
|
-
*/
|
|
281
|
-
touches: ReadonlyArray<NativeTouchEvent>;
|
|
282
|
-
}>;
|
|
283
|
-
export type GestureResponderEvent = ResponderSyntheticEvent<NativeTouchEvent>;
|
|
284
|
-
export type NativeScrollRectangle = Readonly<{
|
|
285
|
-
bottom: number;
|
|
286
|
-
left: number;
|
|
287
|
-
right: number;
|
|
288
|
-
top: number;
|
|
289
|
-
}>;
|
|
290
|
-
export type NativeScrollPoint = Readonly<{
|
|
291
|
-
y: number;
|
|
292
|
-
x: number;
|
|
293
|
-
}>;
|
|
294
|
-
export type NativeScrollVelocity = Readonly<{
|
|
295
|
-
y: number;
|
|
296
|
-
x: number;
|
|
297
|
-
}>;
|
|
298
|
-
export type NativeScrollSize = Readonly<{
|
|
299
|
-
height: number;
|
|
300
|
-
width: number;
|
|
301
|
-
}>;
|
|
302
|
-
export type NativeScrollEvent = Readonly<{
|
|
303
|
-
contentInset: NativeScrollRectangle;
|
|
304
|
-
contentOffset: NativeScrollPoint;
|
|
305
|
-
contentSize: NativeScrollSize;
|
|
306
|
-
layoutMeasurement: NativeScrollSize;
|
|
307
|
-
velocity?: NativeScrollVelocity;
|
|
308
|
-
zoomScale?: number;
|
|
309
|
-
responderIgnoreScroll?: boolean;
|
|
310
|
-
/**
|
|
311
|
-
* @platform ios
|
|
312
|
-
*/
|
|
313
|
-
targetContentOffset?: NativeScrollPoint;
|
|
314
|
-
}>;
|
|
315
|
-
export type ScrollEvent = NativeSyntheticEvent<NativeScrollEvent>;
|
|
316
|
-
export type TargetedEvent = Readonly<{
|
|
317
|
-
target: number;
|
|
318
|
-
}>;
|
|
319
|
-
export type BlurEvent = NativeSyntheticEvent<TargetedEvent>;
|
|
320
|
-
export type FocusEvent = NativeSyntheticEvent<TargetedEvent>;
|
|
321
|
-
export type MouseEvent = NativeSyntheticEvent<Readonly<{
|
|
322
|
-
clientX: number;
|
|
323
|
-
clientY: number;
|
|
324
|
-
pageX: number;
|
|
325
|
-
pageY: number;
|
|
326
|
-
timestamp: number;
|
|
327
|
-
}>>;
|
|
@@ -1,13 +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<<64e53c3a0aa4c92759f7d75091ab7325>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Types/RootTagTypes.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type { RootTag } from "../ReactNative/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<<5518526fd551e8470332180f0abbc675>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Types/UIManagerJSInterface.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { Spec } from "../ReactNative/NativeUIManager";
|
|
14
|
-
export interface UIManagerJSInterface extends Spec {
|
|
15
|
-
readonly getViewManagerConfig: (viewManagerName: string) => Object;
|
|
16
|
-
readonly hasViewManagerConfig: (viewManagerName: string) => boolean;
|
|
17
|
-
}
|
|
@@ -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<<efe3c04271088745c765c3f9c2b60582>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/UTFSequence.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
declare const UTFSequence: {
|
|
14
|
-
BOM: string;
|
|
15
|
-
BULLET: string;
|
|
16
|
-
BULLET_SP: string;
|
|
17
|
-
MDASH: string;
|
|
18
|
-
MDASH_SP: string;
|
|
19
|
-
MIDDOT: string;
|
|
20
|
-
MIDDOT_KATAKANA: string;
|
|
21
|
-
MIDDOT_SP: string;
|
|
22
|
-
NBSP: string;
|
|
23
|
-
NDASH: string;
|
|
24
|
-
NDASH_SP: string;
|
|
25
|
-
NEWLINE: string;
|
|
26
|
-
PIZZA: string;
|
|
27
|
-
TRIANGLE_LEFT: string;
|
|
28
|
-
TRIANGLE_RIGHT: string;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* A collection of Unicode sequences for various characters and emoji.
|
|
32
|
-
*
|
|
33
|
-
* - More explicit than using the sequences directly in code.
|
|
34
|
-
* - Source code should be limited to ASCII.
|
|
35
|
-
* - Less chance of typos.
|
|
36
|
-
*/
|
|
37
|
-
declare const $$UTFSequence: typeof UTFSequence;
|
|
38
|
-
declare type $$UTFSequence = typeof $$UTFSequence;
|
|
39
|
-
export default $$UTFSequence;
|
|
@@ -1,31 +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<<56f6d279390564fa3d98321655c55f0b>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Utilities/Appearance.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { EventSubscription } from "../vendor/emitter/EventEmitter";
|
|
14
|
-
import type { AppearancePreferences, ColorSchemeName } from "./NativeAppearance";
|
|
15
|
-
export type { AppearancePreferences };
|
|
16
|
-
/**
|
|
17
|
-
* Returns the current color scheme preference. This value may change, so the
|
|
18
|
-
* value should not be cached without either listening to changes or using
|
|
19
|
-
* the `useColorScheme` hook.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getColorScheme(): null | undefined | ColorSchemeName;
|
|
22
|
-
/**
|
|
23
|
-
* Updates the current color scheme to the supplied value.
|
|
24
|
-
*/
|
|
25
|
-
export declare function setColorScheme(colorScheme: null | undefined | ColorSchemeName): void;
|
|
26
|
-
/**
|
|
27
|
-
* Add an event handler that is fired when appearance preferences change.
|
|
28
|
-
*/
|
|
29
|
-
export declare function addChangeListener(listener: ($$PARAM_0$$: {
|
|
30
|
-
colorScheme: ColorSchemeName | undefined;
|
|
31
|
-
}) => void): EventSubscription;
|
|
@@ -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<<2942b74637e4b1b4f304b404c0647d71>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Utilities/BackHandler.js.flow
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type BackPressEventName = "backPress" | "hardwareBackPress";
|
|
14
|
-
type TBackHandler = {
|
|
15
|
-
exitApp(): void;
|
|
16
|
-
addEventListener(eventName: BackPressEventName, handler: () => boolean | undefined): {
|
|
17
|
-
remove: () => void;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
declare const BackHandler: TBackHandler;
|
|
21
|
-
declare const $$BackHandler: typeof BackHandler;
|
|
22
|
-
declare type $$BackHandler = typeof $$BackHandler;
|
|
23
|
-
export default $$BackHandler;
|
|
@@ -1,34 +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<<6709e145152765fbb6acf1813ece5f21>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Utilities/DevSettings.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
declare let DevSettings: {
|
|
14
|
-
/**
|
|
15
|
-
* Adds a custom menu item to the developer menu.
|
|
16
|
-
*
|
|
17
|
-
* @param title - The title of the menu item. Is internally used as id and should therefore be unique.
|
|
18
|
-
* @param handler - The callback invoked when pressing the menu item.
|
|
19
|
-
*/
|
|
20
|
-
addMenuItem(title: string, handler: () => unknown): void;
|
|
21
|
-
/**
|
|
22
|
-
* Reload the application.
|
|
23
|
-
*
|
|
24
|
-
* @param reason
|
|
25
|
-
*/
|
|
26
|
-
reload(reason?: string): void;
|
|
27
|
-
onFastRefresh(): void;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* The DevSettings module exposes methods for customizing settings for developers in development.
|
|
31
|
-
*/
|
|
32
|
-
declare const $$DevSettings: typeof DevSettings;
|
|
33
|
-
declare type $$DevSettings = typeof $$DevSettings;
|
|
34
|
-
export default $$DevSettings;
|
|
@@ -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<<bb661e1857a049700aac2535e54d821f>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Utilities/DeviceInfo.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type { DeviceInfoConstants } from "./NativeDeviceInfo";
|
|
14
|
-
import NativeDeviceInfo from "./NativeDeviceInfo";
|
|
15
|
-
declare const $$DeviceInfo: typeof NativeDeviceInfo;
|
|
16
|
-
declare type $$DeviceInfo = typeof $$DeviceInfo;
|
|
17
|
-
export default $$DeviceInfo;
|
|
@@ -1,54 +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<<fccdcec119b08f3650771d1058dcc362>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Utilities/Dimensions.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { type EventSubscription } from "../vendor/emitter/EventEmitter";
|
|
14
|
-
import { type DimensionsPayload, type DisplayMetrics, type DisplayMetricsAndroid } from "./NativeDeviceInfo";
|
|
15
|
-
export type { DimensionsPayload, DisplayMetrics, DisplayMetricsAndroid };
|
|
16
|
-
/** @deprecated Use DisplayMetrics */
|
|
17
|
-
export type ScaledSize = DisplayMetrics;
|
|
18
|
-
declare class Dimensions {
|
|
19
|
-
/**
|
|
20
|
-
* NOTE: `useWindowDimensions` is the preferred API for React components.
|
|
21
|
-
*
|
|
22
|
-
* Initial dimensions are set before `runApplication` is called so they should
|
|
23
|
-
* be available before any other require's are run, but may be updated later.
|
|
24
|
-
*
|
|
25
|
-
* Note: Although dimensions are available immediately, they may change (e.g
|
|
26
|
-
* due to device rotation) so any rendering logic or styles that depend on
|
|
27
|
-
* these constants should try to call this function on every render, rather
|
|
28
|
-
* than caching the value (for example, using inline styles rather than
|
|
29
|
-
* setting a value in a `StyleSheet`).
|
|
30
|
-
*
|
|
31
|
-
* Example: `const {height, width} = Dimensions.get('window');`
|
|
32
|
-
*
|
|
33
|
-
* @param {string} dim Name of dimension as defined when calling `set`.
|
|
34
|
-
* @returns {DisplayMetrics? | DisplayMetricsAndroid?} Value for the dimension.
|
|
35
|
-
*/
|
|
36
|
-
static get(dim: string): DisplayMetrics | DisplayMetricsAndroid;
|
|
37
|
-
/**
|
|
38
|
-
* This should only be called from native code by sending the
|
|
39
|
-
* didUpdateDimensions event.
|
|
40
|
-
*
|
|
41
|
-
* @param {DimensionsPayload} dims Simple string-keyed object of dimensions to set
|
|
42
|
-
*/
|
|
43
|
-
static set(dims: Readonly<DimensionsPayload>): void;
|
|
44
|
-
/**
|
|
45
|
-
* Add an event handler. Supported events:
|
|
46
|
-
*
|
|
47
|
-
* - `change`: Fires when a property within the `Dimensions` object changes. The argument
|
|
48
|
-
* to the event handler is an object with `window` and `screen` properties whose values
|
|
49
|
-
* are the same as the return values of `Dimensions.get('window')` and
|
|
50
|
-
* `Dimensions.get('screen')`, respectively.
|
|
51
|
-
*/
|
|
52
|
-
static addEventListener(type: "change", handler: Function): EventSubscription;
|
|
53
|
-
}
|
|
54
|
-
export default Dimensions;
|
|
@@ -1,51 +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<<427d70f8e3e5ae8390f7b9a8cedd7cc7>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Utilities/IPerformanceLogger.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type Timespan = {
|
|
14
|
-
startTime: number;
|
|
15
|
-
endTime?: number;
|
|
16
|
-
totalTime?: number;
|
|
17
|
-
startExtras?: Extras;
|
|
18
|
-
endExtras?: Extras;
|
|
19
|
-
};
|
|
20
|
-
export type ExtraValue = number | string | boolean;
|
|
21
|
-
export type Extras = {
|
|
22
|
-
[key: string]: ExtraValue;
|
|
23
|
-
};
|
|
24
|
-
export interface IPerformanceLogger {
|
|
25
|
-
addTimespan(key: string, startTime: number, endTime: number, startExtras?: Extras, endExtras?: Extras): void;
|
|
26
|
-
append(logger: IPerformanceLogger): void;
|
|
27
|
-
clear(): void;
|
|
28
|
-
clearCompleted(): void;
|
|
29
|
-
close(): void;
|
|
30
|
-
currentTimestamp(): number;
|
|
31
|
-
getExtras(): Readonly<{
|
|
32
|
-
[key: string]: ExtraValue | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
getPoints(): Readonly<{
|
|
35
|
-
[key: string]: number | undefined;
|
|
36
|
-
}>;
|
|
37
|
-
getPointExtras(): Readonly<{
|
|
38
|
-
[key: string]: Extras | undefined;
|
|
39
|
-
}>;
|
|
40
|
-
getTimespans(): Readonly<{
|
|
41
|
-
[key: string]: Timespan | undefined;
|
|
42
|
-
}>;
|
|
43
|
-
hasTimespan(key: string): boolean;
|
|
44
|
-
isClosed(): boolean;
|
|
45
|
-
logEverything(): void;
|
|
46
|
-
markPoint(key: string, timestamp?: number, extras?: Extras): void;
|
|
47
|
-
removeExtra(key: string): ExtraValue | undefined;
|
|
48
|
-
setExtra(key: string, value: ExtraValue): void;
|
|
49
|
-
startTimespan(key: string, timestamp?: number, extras?: Extras): void;
|
|
50
|
-
stopTimespan(key: string, timestamp?: number, extras?: Extras): void;
|
|
51
|
-
}
|
|
@@ -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<<4dac48df64e4ba4b718b0b1b9806a680>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Utilities/NativeAppearance.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type * from "../../src/private/specs_DEPRECATED/modules/NativeAppearance";
|
|
14
|
-
import NativeAppearance from "../../src/private/specs_DEPRECATED/modules/NativeAppearance";
|
|
15
|
-
declare const $$NativeAppearance: typeof NativeAppearance;
|
|
16
|
-
declare type $$NativeAppearance = typeof $$NativeAppearance;
|
|
17
|
-
export default $$NativeAppearance;
|
|
@@ -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<<4fbf75f366baa4ee00dbfdbe3c632f0d>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Utilities/NativeDeviceInfo.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export * from "../../src/private/specs_DEPRECATED/modules/NativeDeviceInfo";
|
|
14
|
-
export { default } from "../../src/private/specs_DEPRECATED/modules/NativeDeviceInfo";
|