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,134 +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<<df279cd4f46880bb1f4f666a39cf8925>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { EdgeInsetsProp } from "../../StyleSheet/EdgeInsetsPropType";
|
|
14
|
-
import type { PointProp } from "../../StyleSheet/PointPropType";
|
|
15
|
-
import type { ColorValue } from "../../StyleSheet/StyleSheet";
|
|
16
|
-
import type { GestureResponderEvent, ScrollEvent } from "../../Types/CoreEventTypes";
|
|
17
|
-
import type { ViewProps } from "../View/ViewPropTypes";
|
|
18
|
-
export type ScrollViewNativeProps = Readonly<Omit<ViewProps, keyof {
|
|
19
|
-
alwaysBounceHorizontal?: boolean | undefined;
|
|
20
|
-
alwaysBounceVertical?: boolean | undefined;
|
|
21
|
-
automaticallyAdjustContentInsets?: boolean | undefined;
|
|
22
|
-
automaticallyAdjustKeyboardInsets?: boolean | undefined;
|
|
23
|
-
automaticallyAdjustsScrollIndicatorInsets?: boolean | undefined;
|
|
24
|
-
bounces?: boolean | undefined;
|
|
25
|
-
bouncesZoom?: boolean | undefined;
|
|
26
|
-
canCancelContentTouches?: boolean | undefined;
|
|
27
|
-
centerContent?: boolean | undefined;
|
|
28
|
-
contentInset?: EdgeInsetsProp | undefined;
|
|
29
|
-
contentInsetAdjustmentBehavior?: ("automatic" | "scrollableAxes" | "never" | "always") | undefined;
|
|
30
|
-
contentOffset?: PointProp | undefined;
|
|
31
|
-
decelerationRate?: ("fast" | "normal" | number) | undefined;
|
|
32
|
-
directionalLockEnabled?: boolean | undefined;
|
|
33
|
-
disableIntervalMomentum?: boolean | undefined;
|
|
34
|
-
endFillColor?: ColorValue | undefined;
|
|
35
|
-
fadingEdgeLength?: (number | undefined) | {
|
|
36
|
-
start: number;
|
|
37
|
-
end: number;
|
|
38
|
-
};
|
|
39
|
-
indicatorStyle?: ("default" | "black" | "white") | undefined;
|
|
40
|
-
isInvertedVirtualizedList?: boolean | undefined;
|
|
41
|
-
keyboardDismissMode?: ("none" | "on-drag" | "interactive") | undefined;
|
|
42
|
-
maintainVisibleContentPosition?: Readonly<{
|
|
43
|
-
minIndexForVisible: number;
|
|
44
|
-
autoscrollToTopThreshold?: number | undefined;
|
|
45
|
-
}> | undefined;
|
|
46
|
-
maximumZoomScale?: number | undefined;
|
|
47
|
-
minimumZoomScale?: number | undefined;
|
|
48
|
-
nestedScrollEnabled?: boolean | undefined;
|
|
49
|
-
onMomentumScrollBegin?: ((event: ScrollEvent) => void) | undefined;
|
|
50
|
-
onMomentumScrollEnd?: ((event: ScrollEvent) => void) | undefined;
|
|
51
|
-
onScroll?: ((event: ScrollEvent) => void) | undefined;
|
|
52
|
-
onScrollBeginDrag?: ((event: ScrollEvent) => void) | undefined;
|
|
53
|
-
onScrollEndDrag?: ((event: ScrollEvent) => void) | undefined;
|
|
54
|
-
onScrollToTop?: (event: ScrollEvent) => void;
|
|
55
|
-
overScrollMode?: ("auto" | "always" | "never") | undefined;
|
|
56
|
-
pagingEnabled?: boolean | undefined;
|
|
57
|
-
persistentScrollbar?: boolean | undefined;
|
|
58
|
-
pinchGestureEnabled?: boolean | undefined;
|
|
59
|
-
scrollEnabled?: boolean | undefined;
|
|
60
|
-
scrollEventThrottle?: number | undefined;
|
|
61
|
-
scrollIndicatorInsets?: EdgeInsetsProp | undefined;
|
|
62
|
-
scrollPerfTag?: string | undefined;
|
|
63
|
-
scrollToOverflowEnabled?: boolean | undefined;
|
|
64
|
-
scrollsToTop?: boolean | undefined;
|
|
65
|
-
sendMomentumEvents?: boolean | undefined;
|
|
66
|
-
showsHorizontalScrollIndicator?: boolean | undefined;
|
|
67
|
-
showsScrollIndex?: boolean | undefined;
|
|
68
|
-
showsVerticalScrollIndicator?: boolean | undefined;
|
|
69
|
-
snapToAlignment?: ("start" | "center" | "end") | undefined;
|
|
70
|
-
snapToEnd?: boolean | undefined;
|
|
71
|
-
snapToInterval?: number | undefined;
|
|
72
|
-
snapToOffsets?: ReadonlyArray<number> | undefined;
|
|
73
|
-
snapToStart?: boolean | undefined;
|
|
74
|
-
zoomScale?: number | undefined;
|
|
75
|
-
onResponderGrant?: ((e: GestureResponderEvent) => void | boolean) | undefined;
|
|
76
|
-
}> & {
|
|
77
|
-
alwaysBounceHorizontal?: boolean | undefined;
|
|
78
|
-
alwaysBounceVertical?: boolean | undefined;
|
|
79
|
-
automaticallyAdjustContentInsets?: boolean | undefined;
|
|
80
|
-
automaticallyAdjustKeyboardInsets?: boolean | undefined;
|
|
81
|
-
automaticallyAdjustsScrollIndicatorInsets?: boolean | undefined;
|
|
82
|
-
bounces?: boolean | undefined;
|
|
83
|
-
bouncesZoom?: boolean | undefined;
|
|
84
|
-
canCancelContentTouches?: boolean | undefined;
|
|
85
|
-
centerContent?: boolean | undefined;
|
|
86
|
-
contentInset?: EdgeInsetsProp | undefined;
|
|
87
|
-
contentInsetAdjustmentBehavior?: ("automatic" | "scrollableAxes" | "never" | "always") | undefined;
|
|
88
|
-
contentOffset?: PointProp | undefined;
|
|
89
|
-
decelerationRate?: ("fast" | "normal" | number) | undefined;
|
|
90
|
-
directionalLockEnabled?: boolean | undefined;
|
|
91
|
-
disableIntervalMomentum?: boolean | undefined;
|
|
92
|
-
endFillColor?: ColorValue | undefined;
|
|
93
|
-
fadingEdgeLength?: (number | undefined) | {
|
|
94
|
-
start: number;
|
|
95
|
-
end: number;
|
|
96
|
-
};
|
|
97
|
-
indicatorStyle?: ("default" | "black" | "white") | undefined;
|
|
98
|
-
isInvertedVirtualizedList?: boolean | undefined;
|
|
99
|
-
keyboardDismissMode?: ("none" | "on-drag" | "interactive") | undefined;
|
|
100
|
-
maintainVisibleContentPosition?: Readonly<{
|
|
101
|
-
minIndexForVisible: number;
|
|
102
|
-
autoscrollToTopThreshold?: number | undefined;
|
|
103
|
-
}> | undefined;
|
|
104
|
-
maximumZoomScale?: number | undefined;
|
|
105
|
-
minimumZoomScale?: number | undefined;
|
|
106
|
-
nestedScrollEnabled?: boolean | undefined;
|
|
107
|
-
onMomentumScrollBegin?: ((event: ScrollEvent) => void) | undefined;
|
|
108
|
-
onMomentumScrollEnd?: ((event: ScrollEvent) => void) | undefined;
|
|
109
|
-
onScroll?: ((event: ScrollEvent) => void) | undefined;
|
|
110
|
-
onScrollBeginDrag?: ((event: ScrollEvent) => void) | undefined;
|
|
111
|
-
onScrollEndDrag?: ((event: ScrollEvent) => void) | undefined;
|
|
112
|
-
onScrollToTop?: (event: ScrollEvent) => void;
|
|
113
|
-
overScrollMode?: ("auto" | "always" | "never") | undefined;
|
|
114
|
-
pagingEnabled?: boolean | undefined;
|
|
115
|
-
persistentScrollbar?: boolean | undefined;
|
|
116
|
-
pinchGestureEnabled?: boolean | undefined;
|
|
117
|
-
scrollEnabled?: boolean | undefined;
|
|
118
|
-
scrollEventThrottle?: number | undefined;
|
|
119
|
-
scrollIndicatorInsets?: EdgeInsetsProp | undefined;
|
|
120
|
-
scrollPerfTag?: string | undefined;
|
|
121
|
-
scrollToOverflowEnabled?: boolean | undefined;
|
|
122
|
-
scrollsToTop?: boolean | undefined;
|
|
123
|
-
sendMomentumEvents?: boolean | undefined;
|
|
124
|
-
showsHorizontalScrollIndicator?: boolean | undefined;
|
|
125
|
-
showsScrollIndex?: boolean | undefined;
|
|
126
|
-
showsVerticalScrollIndicator?: boolean | undefined;
|
|
127
|
-
snapToAlignment?: ("start" | "center" | "end") | undefined;
|
|
128
|
-
snapToEnd?: boolean | undefined;
|
|
129
|
-
snapToInterval?: number | undefined;
|
|
130
|
-
snapToOffsets?: ReadonlyArray<number> | undefined;
|
|
131
|
-
snapToStart?: boolean | undefined;
|
|
132
|
-
zoomScale?: number | undefined;
|
|
133
|
-
onResponderGrant?: ((e: GestureResponderEvent) => void | boolean) | undefined;
|
|
134
|
-
}>;
|
|
@@ -1,36 +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<<23abffa92f686a9eb5df0367ebc96319>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { LayoutChangeEvent } from "../../Types/CoreEventTypes";
|
|
14
|
-
import Animated from "../../Animated/Animated";
|
|
15
|
-
import * as React from "react";
|
|
16
|
-
export type ScrollViewStickyHeaderProps = Readonly<{
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
nextHeaderLayoutY: number | undefined;
|
|
19
|
-
onLayout: (event: LayoutChangeEvent) => void;
|
|
20
|
-
scrollAnimatedValue: Animated.Value;
|
|
21
|
-
inverted: boolean | undefined;
|
|
22
|
-
scrollViewHeight: number | undefined;
|
|
23
|
-
nativeID?: string | undefined;
|
|
24
|
-
hiddenOnScroll?: boolean | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
interface Instance extends React.ElementRef<typeof Animated.View> {
|
|
27
|
-
readonly setNextHeaderY: ($$PARAM_0$$: number) => void;
|
|
28
|
-
}
|
|
29
|
-
declare const ScrollViewStickyHeader: (props: Omit<ScrollViewStickyHeaderProps, keyof {
|
|
30
|
-
ref: React.Ref<Instance>;
|
|
31
|
-
}> & {
|
|
32
|
-
ref: React.Ref<Instance>;
|
|
33
|
-
}) => React.ReactNode;
|
|
34
|
-
declare const $$ScrollViewStickyHeader: typeof ScrollViewStickyHeader;
|
|
35
|
-
declare type $$ScrollViewStickyHeader = typeof $$ScrollViewStickyHeader;
|
|
36
|
-
export default $$ScrollViewStickyHeader;
|
|
@@ -1,222 +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<<b5d6684ddd24e1f4a4df7dda89ee3700>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/StatusBar/StatusBar.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { ColorValue } from "../../StyleSheet/StyleSheet";
|
|
14
|
-
import * as React from "react";
|
|
15
|
-
/**
|
|
16
|
-
* Status bar style
|
|
17
|
-
*/
|
|
18
|
-
export type StatusBarStyle = keyof {
|
|
19
|
-
/**
|
|
20
|
-
* Default status bar style (dark for iOS, light for Android)
|
|
21
|
-
*/
|
|
22
|
-
default: string;
|
|
23
|
-
/**
|
|
24
|
-
* Dark background, white texts and icons
|
|
25
|
-
*/
|
|
26
|
-
"light-content": string;
|
|
27
|
-
/**
|
|
28
|
-
* Light background, dark texts and icons
|
|
29
|
-
*/
|
|
30
|
-
"dark-content": string;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Status bar animation
|
|
34
|
-
*/
|
|
35
|
-
export type StatusBarAnimation = keyof {
|
|
36
|
-
/**
|
|
37
|
-
* No animation
|
|
38
|
-
*/
|
|
39
|
-
none: string;
|
|
40
|
-
/**
|
|
41
|
-
* Fade animation
|
|
42
|
-
*/
|
|
43
|
-
fade: string;
|
|
44
|
-
/**
|
|
45
|
-
* Slide animation
|
|
46
|
-
*/
|
|
47
|
-
slide: string;
|
|
48
|
-
};
|
|
49
|
-
export type StatusBarPropsAndroid = Readonly<{
|
|
50
|
-
/**
|
|
51
|
-
* The background color of the status bar.
|
|
52
|
-
*
|
|
53
|
-
* Please note that this prop has no effect on Android 15+
|
|
54
|
-
*
|
|
55
|
-
* @platform android
|
|
56
|
-
*/
|
|
57
|
-
backgroundColor?: ColorValue | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* If the status bar is translucent.
|
|
60
|
-
* When translucent is set to true, the app will draw under the status bar.
|
|
61
|
-
* This is useful when using a semi transparent status bar color.
|
|
62
|
-
*
|
|
63
|
-
* Please note that this prop has no effect on Android 15+
|
|
64
|
-
*
|
|
65
|
-
* @platform android
|
|
66
|
-
*/
|
|
67
|
-
translucent?: boolean | undefined;
|
|
68
|
-
}>;
|
|
69
|
-
export type StatusBarPropsIOS = Readonly<{
|
|
70
|
-
/**
|
|
71
|
-
* If the network activity indicator should be visible.
|
|
72
|
-
*
|
|
73
|
-
* @platform ios
|
|
74
|
-
*/
|
|
75
|
-
networkActivityIndicatorVisible?: boolean | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* The transition effect when showing and hiding the status bar using the `hidden`
|
|
78
|
-
* prop. Defaults to 'fade'.
|
|
79
|
-
*
|
|
80
|
-
* @platform ios
|
|
81
|
-
*/
|
|
82
|
-
showHideTransition?: ("fade" | "slide" | "none") | undefined;
|
|
83
|
-
}>;
|
|
84
|
-
type StatusBarBaseProps = Readonly<{
|
|
85
|
-
/**
|
|
86
|
-
* If the status bar is hidden.
|
|
87
|
-
*/
|
|
88
|
-
hidden?: boolean | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* If the transition between status bar property changes should be animated.
|
|
91
|
-
* Supported for backgroundColor, barStyle and hidden.
|
|
92
|
-
*/
|
|
93
|
-
animated?: boolean | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Sets the color of the status bar text.
|
|
96
|
-
*/
|
|
97
|
-
barStyle?: ("default" | "light-content" | "dark-content") | undefined;
|
|
98
|
-
}>;
|
|
99
|
-
export type StatusBarProps = Readonly<Omit<StatusBarPropsAndroid, keyof StatusBarPropsIOS | keyof StatusBarBaseProps | keyof {}> & Omit<StatusBarPropsIOS, keyof StatusBarBaseProps | keyof {}> & Omit<StatusBarBaseProps, keyof {}> & {}>;
|
|
100
|
-
type StackProps = {
|
|
101
|
-
backgroundColor: {
|
|
102
|
-
value: StatusBarProps["backgroundColor"];
|
|
103
|
-
animated: boolean;
|
|
104
|
-
} | undefined;
|
|
105
|
-
barStyle: {
|
|
106
|
-
value: StatusBarProps["barStyle"];
|
|
107
|
-
animated: boolean;
|
|
108
|
-
} | undefined;
|
|
109
|
-
translucent: StatusBarProps["translucent"];
|
|
110
|
-
hidden: {
|
|
111
|
-
value: boolean;
|
|
112
|
-
animated: boolean;
|
|
113
|
-
transition: StatusBarProps["showHideTransition"];
|
|
114
|
-
} | undefined;
|
|
115
|
-
networkActivityIndicatorVisible: StatusBarProps["networkActivityIndicatorVisible"];
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* Component to control the app status bar.
|
|
119
|
-
*
|
|
120
|
-
* It is possible to have multiple `StatusBar` components mounted at the same
|
|
121
|
-
* time. The props will be merged in the order the `StatusBar` components were
|
|
122
|
-
* mounted.
|
|
123
|
-
*
|
|
124
|
-
* ### Imperative API
|
|
125
|
-
*
|
|
126
|
-
* For cases where using a component is not ideal, there are static methods
|
|
127
|
-
* to manipulate the `StatusBar` display stack. These methods have the same
|
|
128
|
-
* behavior as mounting and unmounting a `StatusBar` component.
|
|
129
|
-
*
|
|
130
|
-
* For example, you can call `StatusBar.pushStackEntry` to update the status bar
|
|
131
|
-
* before launching a third-party native UI component, and then call
|
|
132
|
-
* `StatusBar.popStackEntry` when completed.
|
|
133
|
-
*
|
|
134
|
-
* ```
|
|
135
|
-
* const openThirdPartyBugReporter = async () => {
|
|
136
|
-
* // The bug reporter has a dark background, so we push a new status bar style.
|
|
137
|
-
* const stackEntry = StatusBar.pushStackEntry({barStyle: 'light-content'});
|
|
138
|
-
*
|
|
139
|
-
* // `open` returns a promise that resolves when the UI is dismissed.
|
|
140
|
-
* await BugReporter.open();
|
|
141
|
-
*
|
|
142
|
-
* // Don't forget to call `popStackEntry` when you're done.
|
|
143
|
-
* StatusBar.popStackEntry(stackEntry);
|
|
144
|
-
* };
|
|
145
|
-
* ```
|
|
146
|
-
*
|
|
147
|
-
* There is a legacy imperative API that enables you to manually update the
|
|
148
|
-
* status bar styles. However, the legacy API does not update the internal
|
|
149
|
-
* `StatusBar` display stack, which means that any changes will be overridden
|
|
150
|
-
* whenever a `StatusBar` component is mounted or unmounted.
|
|
151
|
-
*
|
|
152
|
-
* It is strongly advised that you use `pushStackEntry`, `popStackEntry`, or
|
|
153
|
-
* `replaceStackEntry` instead of the static methods beginning with `set`.
|
|
154
|
-
*
|
|
155
|
-
* ### Constants
|
|
156
|
-
*
|
|
157
|
-
* `currentHeight` (Android only) The height of the status bar.
|
|
158
|
-
*/
|
|
159
|
-
declare class StatusBar extends React.Component<StatusBarProps> {
|
|
160
|
-
/**
|
|
161
|
-
* The current height of the status bar on the device.
|
|
162
|
-
*
|
|
163
|
-
* @platform android
|
|
164
|
-
*/
|
|
165
|
-
static currentHeight: null | undefined | number;
|
|
166
|
-
/**
|
|
167
|
-
* Show or hide the status bar
|
|
168
|
-
* @param hidden Hide the status bar.
|
|
169
|
-
* @param animation Optional animation when
|
|
170
|
-
* changing the status bar hidden property.
|
|
171
|
-
*/
|
|
172
|
-
static setHidden(hidden: boolean, animation?: StatusBarAnimation): void;
|
|
173
|
-
/**
|
|
174
|
-
* Set the status bar style
|
|
175
|
-
* @param style Status bar style to set
|
|
176
|
-
* @param animated Animate the style change.
|
|
177
|
-
*/
|
|
178
|
-
static setBarStyle(style: StatusBarStyle, animated?: boolean): void;
|
|
179
|
-
/**
|
|
180
|
-
* DEPRECATED - The status bar network activity indicator is not supported in iOS 13 and later. This will be removed in a future release.
|
|
181
|
-
* @param visible Show the indicator.
|
|
182
|
-
*
|
|
183
|
-
* @deprecated
|
|
184
|
-
*/
|
|
185
|
-
static setNetworkActivityIndicatorVisible(visible: boolean): void;
|
|
186
|
-
/**
|
|
187
|
-
* Set the background color for the status bar
|
|
188
|
-
* @param color Background color.
|
|
189
|
-
* @param animated Animate the style change.
|
|
190
|
-
*/
|
|
191
|
-
static setBackgroundColor(color: ColorValue, animated?: boolean): void;
|
|
192
|
-
/**
|
|
193
|
-
* Control the translucency of the status bar
|
|
194
|
-
* @param translucent Set as translucent.
|
|
195
|
-
*/
|
|
196
|
-
static setTranslucent(translucent: boolean): void;
|
|
197
|
-
/**
|
|
198
|
-
* Push a StatusBar entry onto the stack.
|
|
199
|
-
* The return value should be passed to `popStackEntry` when complete.
|
|
200
|
-
*
|
|
201
|
-
* @param props Object containing the StatusBar props to use in the stack entry.
|
|
202
|
-
*/
|
|
203
|
-
static pushStackEntry(props: StatusBarProps): StackProps;
|
|
204
|
-
/**
|
|
205
|
-
* Pop a StatusBar entry from the stack.
|
|
206
|
-
*
|
|
207
|
-
* @param entry Entry returned from `pushStackEntry`.
|
|
208
|
-
*/
|
|
209
|
-
static popStackEntry(entry: StackProps): void;
|
|
210
|
-
/**
|
|
211
|
-
* Replace an existing StatusBar stack entry with new props.
|
|
212
|
-
*
|
|
213
|
-
* @param entry Entry returned from `pushStackEntry` to replace.
|
|
214
|
-
* @param props Object containing the StatusBar props to use in the replacement stack entry.
|
|
215
|
-
*/
|
|
216
|
-
static replaceStackEntry(entry: StackProps, props: StatusBarProps): StackProps;
|
|
217
|
-
componentDidMount(): void;
|
|
218
|
-
componentWillUnmount(): void;
|
|
219
|
-
componentDidUpdate(): void;
|
|
220
|
-
render(): React.ReactNode;
|
|
221
|
-
}
|
|
222
|
-
export default StatusBar;
|
|
@@ -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<<b66e43bf2755e611bb9733c103d3fac6>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/Switch/AndroidSwitchNativeComponent.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export * from "../../../src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent";
|
|
14
|
-
export { default } from "../../../src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent";
|
|
@@ -1,138 +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<<556dc98c96f9beefc553fafdfa0f4961>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/Switch/Switch.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { ColorValue } from "../../StyleSheet/StyleSheet";
|
|
14
|
-
import type { NativeSyntheticEvent } from "../../Types/CoreEventTypes";
|
|
15
|
-
import type { ViewProps } from "../View/ViewPropTypes";
|
|
16
|
-
import AndroidSwitchNativeComponent from "./AndroidSwitchNativeComponent";
|
|
17
|
-
import SwitchNativeComponent from "./SwitchNativeComponent";
|
|
18
|
-
import * as React from "react";
|
|
19
|
-
export type SwitchPropsIOS = {
|
|
20
|
-
/**
|
|
21
|
-
* Background color when the switch is turned on.
|
|
22
|
-
*
|
|
23
|
-
* @deprecated use trackColor instead
|
|
24
|
-
*/
|
|
25
|
-
onTintColor?: ColorValue | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Color of the foreground switch grip.
|
|
28
|
-
*
|
|
29
|
-
* @deprecated use thumbColor instead
|
|
30
|
-
*/
|
|
31
|
-
thumbTintColor?: ColorValue | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Background color when the switch is turned off.
|
|
34
|
-
*
|
|
35
|
-
* @deprecated use trackColor instead
|
|
36
|
-
*/
|
|
37
|
-
tintColor?: ColorValue | undefined;
|
|
38
|
-
};
|
|
39
|
-
type SwitchChangeEventData = Readonly<{
|
|
40
|
-
target: number;
|
|
41
|
-
value: boolean;
|
|
42
|
-
}>;
|
|
43
|
-
export type SwitchChangeEvent = NativeSyntheticEvent<SwitchChangeEventData>;
|
|
44
|
-
type SwitchPropsBase = {
|
|
45
|
-
/**
|
|
46
|
-
If true the user won't be able to toggle the switch.
|
|
47
|
-
@default false
|
|
48
|
-
*/
|
|
49
|
-
disabled?: boolean | undefined;
|
|
50
|
-
/**
|
|
51
|
-
The value of the switch. If true the switch will be turned on.
|
|
52
|
-
@default false
|
|
53
|
-
*/
|
|
54
|
-
value?: boolean | undefined;
|
|
55
|
-
/**
|
|
56
|
-
Color of the foreground switch grip. If this is set on iOS, the switch grip will lose its drop shadow.
|
|
57
|
-
*/
|
|
58
|
-
thumbColor?: ColorValue | undefined;
|
|
59
|
-
/**
|
|
60
|
-
Custom colors for the switch track.
|
|
61
|
-
_iOS_: When the switch value is false, the track shrinks into the border. If you want to change the
|
|
62
|
-
color of the background exposed by the shrunken track, use
|
|
63
|
-
[`ios_backgroundColor`](https://reactnative.dev/docs/switch#ios_backgroundColor).
|
|
64
|
-
*/
|
|
65
|
-
trackColor?: Readonly<{
|
|
66
|
-
false?: ColorValue | undefined;
|
|
67
|
-
true?: ColorValue | undefined;
|
|
68
|
-
}> | undefined;
|
|
69
|
-
/**
|
|
70
|
-
On iOS, custom color for the background. This background color can be
|
|
71
|
-
seen either when the switch value is false or when the switch is
|
|
72
|
-
disabled (and the switch is translucent).
|
|
73
|
-
*/
|
|
74
|
-
ios_backgroundColor?: ColorValue | undefined;
|
|
75
|
-
/**
|
|
76
|
-
Invoked when the user tries to change the value of the switch. Receives
|
|
77
|
-
the change event as an argument. If you want to only receive the new
|
|
78
|
-
value, use `onValueChange` instead.
|
|
79
|
-
*/
|
|
80
|
-
onChange?: ((event: SwitchChangeEvent) => Promise<void> | void) | undefined;
|
|
81
|
-
/**
|
|
82
|
-
Invoked when the user tries to change the value of the switch. Receives
|
|
83
|
-
the new value as an argument. If you want to instead receive an event,
|
|
84
|
-
use `onChange`.
|
|
85
|
-
*/
|
|
86
|
-
onValueChange?: ((value: boolean) => Promise<void> | void) | undefined;
|
|
87
|
-
};
|
|
88
|
-
export type SwitchProps = Readonly<Omit<ViewProps, keyof SwitchPropsIOS | keyof SwitchPropsBase | keyof {}> & Omit<SwitchPropsIOS, keyof SwitchPropsBase | keyof {}> & Omit<SwitchPropsBase, keyof {}> & {}>;
|
|
89
|
-
type SwitchRef = React.ComponentRef<typeof SwitchNativeComponent | typeof AndroidSwitchNativeComponent>;
|
|
90
|
-
declare const Switch: (props: Omit<SwitchProps, keyof {
|
|
91
|
-
ref?: React.Ref<SwitchRef>;
|
|
92
|
-
}> & {
|
|
93
|
-
ref?: React.Ref<SwitchRef>;
|
|
94
|
-
}) => React.ReactNode;
|
|
95
|
-
/**
|
|
96
|
-
Renders a boolean input.
|
|
97
|
-
|
|
98
|
-
This is a controlled component that requires an `onValueChange`
|
|
99
|
-
callback that updates the `value` prop in order for the component to
|
|
100
|
-
reflect user actions. If the `value` prop is not updated, the
|
|
101
|
-
component will continue to render the supplied `value` prop instead of
|
|
102
|
-
the expected result of any user actions.
|
|
103
|
-
|
|
104
|
-
```SnackPlayer name=Switch
|
|
105
|
-
import React, { useState } from "react";
|
|
106
|
-
import { View, Switch, StyleSheet } from "react-native";
|
|
107
|
-
|
|
108
|
-
const App = () => {
|
|
109
|
-
const [isEnabled, setIsEnabled] = useState(false);
|
|
110
|
-
const toggleSwitch = () => setIsEnabled(previousState => !previousState);
|
|
111
|
-
|
|
112
|
-
return (
|
|
113
|
-
<View style={styles.container}>
|
|
114
|
-
<Switch
|
|
115
|
-
trackColor={{ false: "#767577", true: "#81b0ff" }}
|
|
116
|
-
thumbColor={isEnabled ? "#f5dd4b" : "#f4f3f4"}
|
|
117
|
-
ios_backgroundColor="#3e3e3e"
|
|
118
|
-
onValueChange={toggleSwitch}
|
|
119
|
-
value={isEnabled}
|
|
120
|
-
/>
|
|
121
|
-
</View>
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const styles = StyleSheet.create({
|
|
126
|
-
container: {
|
|
127
|
-
flex: 1,
|
|
128
|
-
alignItems: "center",
|
|
129
|
-
justifyContent: "center"
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
export default App;
|
|
134
|
-
```
|
|
135
|
-
*/
|
|
136
|
-
declare const $$Switch: typeof Switch;
|
|
137
|
-
declare type $$Switch = typeof $$Switch;
|
|
138
|
-
export default $$Switch;
|
|
@@ -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<<1faa821192358efd8b615376daee8ba0>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/Switch/SwitchNativeComponent.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export * from "../../../src/private/specs_DEPRECATED/components/SwitchNativeComponent";
|
|
14
|
-
export { default } from "../../../src/private/specs_DEPRECATED/components/SwitchNativeComponent";
|
|
@@ -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<<09ef9f0d03aad8b396925ccf8628b4ce>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/TV/TVEventControl.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
declare const TVEventControl: {
|
|
14
|
-
enableTVMenuKey: () => void;
|
|
15
|
-
disableTVMenuKey: () => void;
|
|
16
|
-
enableTVPanGesture: () => void;
|
|
17
|
-
disableTVPanGesture: () => void;
|
|
18
|
-
enableGestureHandlersCancelTouches: () => void;
|
|
19
|
-
disableGestureHandlersCancelTouches: () => void;
|
|
20
|
-
};
|
|
21
|
-
declare const $$TVEventControl: typeof TVEventControl;
|
|
22
|
-
declare type $$TVEventControl = typeof $$TVEventControl;
|
|
23
|
-
export default $$TVEventControl;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<f7b9be6d1fd7bd4dba884c008777c4af>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/TV/TVEventHandler.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { type EventSubscription } from "../../vendor/emitter/EventEmitter";
|
|
14
|
-
type TVEventHandlerCallback = (event: any) => void;
|
|
15
|
-
type TVEventHandlerType = {
|
|
16
|
-
addListener: (callback: TVEventHandlerCallback) => EventSubscription;
|
|
17
|
-
};
|
|
18
|
-
declare const TVEventHandler: TVEventHandlerType;
|
|
19
|
-
declare const $$TVEventHandler: typeof TVEventHandler;
|
|
20
|
-
declare type $$TVEventHandler = typeof $$TVEventHandler;
|
|
21
|
-
export default $$TVEventHandler;
|
|
@@ -1,71 +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<<6a73d474d9a2542964617b14e756698c>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/TV/TVFocusGuideView.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { ViewProps } from "../View/ViewPropTypes";
|
|
14
|
-
import type { ComponentOrHandleType } from "./tagForComponentOrHandle";
|
|
15
|
-
import * as React from "react";
|
|
16
|
-
type TVFocusGuideViewProps = Readonly<Omit<ViewProps, keyof {
|
|
17
|
-
/**
|
|
18
|
-
* If the view should be "visible". display "flex" if visible, otherwise "none".
|
|
19
|
-
* Useful for absolute focus guides without children
|
|
20
|
-
* Defaults to true
|
|
21
|
-
*/
|
|
22
|
-
enabled?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The views the focus should go to
|
|
25
|
-
*/
|
|
26
|
-
destinations?: ComponentOrHandleType[];
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Don't use it, no longer necessary.
|
|
29
|
-
*/
|
|
30
|
-
safePadding?: "vertical" | "horizontal" | "both" | null;
|
|
31
|
-
autoFocus?: boolean;
|
|
32
|
-
trapFocusUp?: boolean;
|
|
33
|
-
trapFocusDown?: boolean;
|
|
34
|
-
trapFocusLeft?: boolean;
|
|
35
|
-
trapFocusRight?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* When set to false, this view and all its subviews will be NOT focusable.
|
|
38
|
-
*/
|
|
39
|
-
focusable?: boolean | void;
|
|
40
|
-
}> & {
|
|
41
|
-
/**
|
|
42
|
-
* If the view should be "visible". display "flex" if visible, otherwise "none".
|
|
43
|
-
* Useful for absolute focus guides without children
|
|
44
|
-
* Defaults to true
|
|
45
|
-
*/
|
|
46
|
-
enabled?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* The views the focus should go to
|
|
49
|
-
*/
|
|
50
|
-
destinations?: ComponentOrHandleType[];
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Don't use it, no longer necessary.
|
|
53
|
-
*/
|
|
54
|
-
safePadding?: "vertical" | "horizontal" | "both" | null;
|
|
55
|
-
autoFocus?: boolean;
|
|
56
|
-
trapFocusUp?: boolean;
|
|
57
|
-
trapFocusDown?: boolean;
|
|
58
|
-
trapFocusLeft?: boolean;
|
|
59
|
-
trapFocusRight?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* When set to false, this view and all its subviews will be NOT focusable.
|
|
62
|
-
*/
|
|
63
|
-
focusable?: boolean | void;
|
|
64
|
-
}>;
|
|
65
|
-
export type TVFocusGuideViewImperativeMethods = Readonly<{
|
|
66
|
-
setDestinations: (destinations: (ComponentOrHandleType | number)[]) => void;
|
|
67
|
-
}>;
|
|
68
|
-
declare function TVFocusGuideView($$PARAM_0$$: TVFocusGuideViewProps): React.ReactNode;
|
|
69
|
-
declare const $$TVFocusGuideView: typeof TVFocusGuideView;
|
|
70
|
-
declare type $$TVFocusGuideView = typeof $$TVFocusGuideView;
|
|
71
|
-
export default $$TVFocusGuideView;
|