react-native-tvos 0.87.1-0 → 0.87.1-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/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/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +2 -2
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +96 -0
- package/types_generated/Libraries/Alert/Alert.d.ts +92 -0
- package/types_generated/Libraries/Animated/Animated.d.ts +14 -0
- package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +30 -0
- package/types_generated/Libraries/Animated/AnimatedExports.d.ts +191 -0
- package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +232 -0
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
- package/types_generated/Libraries/Animated/Easing.d.ts +172 -0
- package/types_generated/Libraries/Animated/animations/Animation.d.ts +35 -0
- package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +42 -0
- package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +130 -0
- package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +54 -0
- package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +22 -0
- package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +18 -0
- package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +23 -0
- package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +22 -0
- package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +18 -0
- package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +19 -0
- package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +44 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +80 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +38 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +50 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +30 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +32 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +21 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +126 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +135 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +15 -0
- package/types_generated/Libraries/Animated/useAnimatedColor.d.ts +16 -0
- package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +15 -0
- package/types_generated/Libraries/Animated/useAnimatedValueXY.d.ts +18 -0
- package/types_generated/Libraries/AppState/AppState.d.ts +82 -0
- package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +17 -0
- package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +39 -0
- package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +27 -0
- package/types_generated/Libraries/Blob/Blob.d.ts +80 -0
- package/types_generated/Libraries/Blob/BlobTypes.d.ts +27 -0
- package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +223 -0
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +133 -0
- package/types_generated/Libraries/Components/Button.d.ts +167 -0
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +43 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +17 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +27 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +157 -0
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +115 -0
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +82 -0
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +170 -0
- package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +48 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +32 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +67 -0
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +96 -0
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +31 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +723 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +189 -0
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +143 -0
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +34 -0
- package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +96 -0
- package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +97 -0
- package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +123 -0
- package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +24 -0
- package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +20 -0
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +37 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +162 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1020 -0
- package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +54 -0
- package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +99 -0
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +62 -0
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +155 -0
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +47 -0
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
- package/types_generated/Libraries/Components/View/View.d.ts +34 -0
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +426 -0
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +38 -0
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +412 -0
- package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +27 -0
- package/types_generated/Libraries/Core/ExceptionsManager.d.ts +43 -0
- package/types_generated/Libraries/Core/ExtendedError.d.ts +26 -0
- package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +17 -0
- package/types_generated/Libraries/Core/RawEventEmitter.d.ts +26 -0
- package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +27 -0
- package/types_generated/Libraries/Core/ReactNativeVersion.d.ts +48 -0
- package/types_generated/Libraries/Core/registerCallableModule.d.ts +18 -0
- package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +75 -0
- package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +19 -0
- package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +18 -0
- package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +24 -0
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +60 -0
- package/types_generated/Libraries/Image/Image.d.ts +18 -0
- package/types_generated/Libraries/Image/ImageBackground.d.ts +55 -0
- package/types_generated/Libraries/Image/ImageProps.d.ts +462 -0
- package/types_generated/Libraries/Image/ImageResizeMode.d.ts +17 -0
- package/types_generated/Libraries/Image/ImageSource.d.ts +94 -0
- package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +62 -0
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +234 -0
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +87 -0
- package/types_generated/Libraries/Linking/Linking.d.ts +76 -0
- package/types_generated/Libraries/Lists/FlatList.d.ts +316 -0
- package/types_generated/Libraries/Lists/SectionList.d.ts +177 -0
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +21 -0
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +21 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +78 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +71 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +17 -0
- package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +49 -0
- package/types_generated/Libraries/LogBox/LogBox.d.ts +32 -0
- package/types_generated/Libraries/Modal/Modal.d.ts +145 -0
- package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
- package/types_generated/Libraries/Network/FormData.d.ts +56 -0
- package/types_generated/Libraries/Network/RCTNetworking.d.ts +25 -0
- package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +22 -0
- package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +114 -0
- package/types_generated/Libraries/Network/convertRequestBody.d.ts +21 -0
- package/types_generated/Libraries/Performance/Systrace.d.ts +71 -0
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +139 -0
- package/types_generated/Libraries/Pressability/Pressability.d.ts +241 -0
- package/types_generated/Libraries/Pressability/usePressability.d.ts +27 -0
- package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +327 -0
- package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +14 -0
- package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +43 -0
- package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +120 -0
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +42 -0
- package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +57 -0
- package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +31 -0
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +15 -0
- package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +36 -0
- package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +13 -0
- package/types_generated/Libraries/ReactNative/RootTag.d.ts +22 -0
- package/types_generated/Libraries/ReactNative/UIManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +25 -0
- package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +17 -0
- package/types_generated/Libraries/Renderer/shims/ReactFabric.d.ts +17 -0
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +155 -0
- package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +41 -0
- package/types_generated/Libraries/Settings/Settings.d.ts +21 -0
- package/types_generated/Libraries/Share/Share.d.ts +82 -0
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +23 -0
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +27 -0
- package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +16 -0
- package/types_generated/Libraries/StyleSheet/Rect.d.ts +22 -0
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +153 -0
- package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +94 -0
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +872 -0
- package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +19 -0
- package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +17 -0
- package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +76 -0
- package/types_generated/Libraries/StyleSheet/processColor.d.ts +18 -0
- package/types_generated/Libraries/Text/Text.d.ts +34 -0
- package/types_generated/Libraries/Text/TextAncestorContext.d.ts +20 -0
- package/types_generated/Libraries/Text/TextNativeComponent.d.ts +41 -0
- package/types_generated/Libraries/Text/TextProps.d.ts +175 -0
- package/types_generated/Libraries/TurboModule/RCTExport.d.ts +35 -0
- package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +15 -0
- package/types_generated/Libraries/Types/CodegenTypes.d.ts +24 -0
- package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +14 -0
- package/types_generated/Libraries/Types/CoreEventTypes.d.ts +361 -0
- package/types_generated/Libraries/Types/RootTagTypes.d.ts +13 -0
- package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +17 -0
- package/types_generated/Libraries/UTFSequence.d.ts +39 -0
- package/types_generated/Libraries/Utilities/Appearance.d.ts +43 -0
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +43 -0
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +41 -0
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +60 -0
- package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +17 -0
- package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +14 -0
- package/types_generated/Libraries/Utilities/PixelRatio.d.ts +113 -0
- package/types_generated/Libraries/Utilities/Platform.d.ts +20 -0
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +193 -0
- package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +19 -0
- package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +24 -0
- package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +33 -0
- package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +19 -0
- package/types_generated/Libraries/Utilities/useColorScheme.d.ts +25 -0
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +21 -0
- package/types_generated/Libraries/Vibration/Vibration.d.ts +37 -0
- package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +39 -0
- package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +67 -0
- package/types_generated/index.d.ts +190 -0
- package/types_generated/src/private/assets/AssetRegistry.d.ts +42 -0
- package/types_generated/src/private/components/virtualcollection/FlingConstants.d.ts +20 -0
- package/types_generated/src/private/components/virtualcollection/Virtual.d.ts +46 -0
- package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +81 -0
- package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +23 -0
- package/types_generated/src/private/components/virtualcollection/column/VirtualColumnGenerator.d.ts +17 -0
- package/types_generated/src/private/components/virtualcollection/dom/getScrollParent.d.ts +21 -0
- package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +23 -0
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +75 -0
- package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +107 -0
- package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +107 -0
- package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +28 -0
- package/types_generated/src/private/renderer/events/dispatchNativeEvent.d.ts +26 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +27 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +45 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +27 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +109 -0
- package/types_generated/src/private/styles/composeStyles.d.ts +19 -0
- package/types_generated/src/private/types/HostComponent.d.ts +19 -0
- package/types_generated/src/private/types/HostInstance.d.ts +57 -0
- package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +27 -0
- package/types_generated/src/private/webapis/dom/events/Event.d.ts +50 -0
- package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +35 -0
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +89 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +32 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +56 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +131 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +26 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +23 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +22 -0
- package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +229 -0
- package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +24 -0
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +27 -0
- package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +46 -0
- package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +73 -0
- package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +27 -0
- package/types_generated/src/react-private-interface.d.ts +33 -0
- package/types_generated/tsconfig.json +3 -0
|
@@ -0,0 +1,123 @@
|
|
|
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<<fde9225b13476772c8c96111e1f19ad4>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/TV/TVViewPropTypes.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export type TVParallaxPropertiesType = Readonly<{
|
|
14
|
+
/**
|
|
15
|
+
* If true, parallax effects are enabled. Defaults to true.
|
|
16
|
+
*/
|
|
17
|
+
enabled?: boolean | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Defaults to 2.0.
|
|
20
|
+
*/
|
|
21
|
+
shiftDistanceX?: number | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Defaults to 2.0.
|
|
24
|
+
*/
|
|
25
|
+
shiftDistanceY?: number | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Defaults to 0.05.
|
|
28
|
+
*/
|
|
29
|
+
tiltAngle?: number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Defaults to 1.0
|
|
32
|
+
*/
|
|
33
|
+
magnification?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Defaults to 1.0
|
|
36
|
+
*/
|
|
37
|
+
pressMagnification?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Defaults to 0.3
|
|
40
|
+
*/
|
|
41
|
+
pressDuration?: number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Defaults to 0.3
|
|
44
|
+
*/
|
|
45
|
+
pressDelay?: number | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* These props are for both Apple TV and Android TV.
|
|
49
|
+
* TODO: update `@react-native/eslint-plugin` so that the
|
|
50
|
+
* name can be changed to TVViewProps
|
|
51
|
+
*/
|
|
52
|
+
export type TVViewProps = Readonly<{
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated Replaced by `focusable`.
|
|
55
|
+
*
|
|
56
|
+
* @platform ios
|
|
57
|
+
*/
|
|
58
|
+
isTVSelectable?: boolean | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Whether this `View` should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
focusable?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* May be set to true to force the focus engine to move focus to this view.
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
hasTVPreferredFocus?: boolean | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* *(Apple TV only)* Object with properties to control Apple TV parallax effects.
|
|
71
|
+
*
|
|
72
|
+
* @platform ios
|
|
73
|
+
*/
|
|
74
|
+
tvParallaxProperties?: TVParallaxPropertiesType | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Additional properties needed for flow checks on TVFocusGuideView
|
|
77
|
+
*/
|
|
78
|
+
destinations?: Object[] | undefined;
|
|
79
|
+
enabled?: boolean | undefined;
|
|
80
|
+
autoFocus?: boolean | undefined;
|
|
81
|
+
safePadding?: string | null | undefined;
|
|
82
|
+
onPressIn?: ((event: any) => void) | undefined;
|
|
83
|
+
onPressOut?: ((event: any) => void) | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* TV next focus forward (see documentation for the View component).
|
|
86
|
+
*
|
|
87
|
+
* @platform android
|
|
88
|
+
*/
|
|
89
|
+
nextFocusForward?: number | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* TV next focus down (see documentation for the View component).
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
nextFocusDown?: number | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* TV next focus left (see documentation for the View component).
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
nextFocusLeft?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* TV next focus right (see documentation for the View component).
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
nextFocusRight?: number | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* TV next focus up (see documentation for the View component).
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
nextFocusUp?: number | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Scroll snap alignment (used with snapToAlignment="item" in ScrollView).
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
scrollSnapAlign?: ("start" | "center" | "end") | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Per-item scroll snap offset in dp/pt. When set on a View inside a
|
|
117
|
+
* ScrollView with `snapToAlignment="item"`, the focus engine lands the
|
|
118
|
+
* View's top at viewport y = scrollSnapOffset. Standalone alternative to
|
|
119
|
+
* `scrollSnapAlign` — set one or the other; if both are set on the same
|
|
120
|
+
* View, `scrollSnapOffset` takes precedence.
|
|
121
|
+
*/
|
|
122
|
+
scrollSnapOffset?: number | undefined;
|
|
123
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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<<9c48b7a2894d59b37f70e94b6435db63>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/TV/tagForComponentOrHandle.js
|
|
11
|
+
*/
|
|
12
|
+
/*
|
|
13
|
+
* Replacement for findNodeHandle, since we need this for converting
|
|
14
|
+
* components to tags when rendering nextFocus props
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import * as React from "react";
|
|
19
|
+
export type ComponentOrHandleType = null | undefined | (React.ComponentRef<React.ElementType> | number);
|
|
20
|
+
export type TagForComponentOrHandleType = (component: ComponentOrHandleType) => null | undefined | number;
|
|
21
|
+
declare const tagForComponentOrHandle: TagForComponentOrHandleType;
|
|
22
|
+
declare const $$tagForComponentOrHandle: typeof tagForComponentOrHandle;
|
|
23
|
+
declare type $$tagForComponentOrHandle = typeof $$tagForComponentOrHandle;
|
|
24
|
+
export default $$tagForComponentOrHandle;
|
|
@@ -0,0 +1,20 @@
|
|
|
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<<dda32f9f77aa4745546e57f1620a3942>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/TV/useTVEventHandler.js
|
|
11
|
+
*/
|
|
12
|
+
/*
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import type { TVRemoteEvent } from "../../Types/CoreEventTypes";
|
|
17
|
+
declare const useTVEventHandler: (handleEvent: (evt: TVRemoteEvent) => void) => void;
|
|
18
|
+
declare const $$useTVEventHandler: typeof useTVEventHandler;
|
|
19
|
+
declare type $$useTVEventHandler = typeof $$useTVEventHandler;
|
|
20
|
+
export default $$useTVEventHandler;
|
|
@@ -0,0 +1,37 @@
|
|
|
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<<7192abadcfe547ec0a5e4bdf83c39ef4>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/TextInput/InputAccessoryView.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { type ColorValue, type ViewStyleProp } from "../../StyleSheet/StyleSheet";
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
export interface InputAccessoryViewProps {
|
|
16
|
+
readonly children: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* An ID used to associate this `InputAccessoryView` to specified `TextInput`(s).
|
|
19
|
+
*/
|
|
20
|
+
readonly nativeID?: string | undefined;
|
|
21
|
+
readonly style?: ViewStyleProp | undefined;
|
|
22
|
+
readonly backgroundColor?: ColorValue | undefined;
|
|
23
|
+
}
|
|
24
|
+
declare const InputAccessoryView: React.ComponentType<InputAccessoryViewProps>;
|
|
25
|
+
/**
|
|
26
|
+
* A component which enables customization of the keyboard input accessory view on iOS. The input accessory view is displayed above the keyboard whenever a `TextInput` has focus. This component can be used to create custom toolbars.
|
|
27
|
+
*
|
|
28
|
+
* To use this component, wrap your custom toolbar with `InputAccessoryView` and set a `nativeID`. Then, pass that `nativeID` as the `inputAccessoryViewID` of whatever `TextInput` you desire.
|
|
29
|
+
*
|
|
30
|
+
* This component can also be used to create sticky text inputs (text inputs which are anchored to the top of the keyboard). To do this, wrap a `TextInput` with `InputAccessoryView` and don't set a `nativeID`.
|
|
31
|
+
*
|
|
32
|
+
* @see https://reactnative.dev/docs/inputaccessoryview
|
|
33
|
+
* @platform ios
|
|
34
|
+
*/
|
|
35
|
+
declare const $$InputAccessoryView: typeof InputAccessoryView;
|
|
36
|
+
declare type $$InputAccessoryView = typeof $$InputAccessoryView;
|
|
37
|
+
export default $$InputAccessoryView;
|
|
@@ -0,0 +1,162 @@
|
|
|
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<<b30102f26b887dd69b59174dea6e08b7>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/TextInput/TextInput.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { HostInstance } from "../../../src/private/types/HostInstance";
|
|
14
|
+
import type { BlurEvent, FocusEvent } from "../../Types/CoreEventTypes";
|
|
15
|
+
import type { AutoCapitalize, EnterKeyHintType, EnterKeyHintTypeAndroid, EnterKeyHintTypeIOS, EnterKeyHintTypeOptions, InputModeOptions, KeyboardType, KeyboardTypeAndroid, KeyboardTypeIOS, KeyboardTypeOptions, ReturnKeyType, ReturnKeyTypeAndroid, ReturnKeyTypeIOS, ReturnKeyTypeOptions, SubmitBehavior, TextContentType, TextInputAndroidProps, TextInputBlurEvent, TextInputChangeEvent, TextInputContentSizeChangeEvent, TextInputEditingEvent, TextInputEndEditingEvent, TextInputEvent, TextInputFocusEvent, TextInputInstance, TextInputIOSProps, TextInputKeyPressEvent, TextInputProps, TextInputSelectionChangeEvent, TextInputSubmitEditingEvent, TextInputType } from "./TextInput.flow";
|
|
16
|
+
export type { AutoCapitalize, BlurEvent, EnterKeyHintType, EnterKeyHintTypeAndroid, EnterKeyHintTypeIOS, EnterKeyHintTypeOptions, FocusEvent, InputModeOptions, KeyboardType, KeyboardTypeAndroid, KeyboardTypeIOS, KeyboardTypeOptions, ReturnKeyType, ReturnKeyTypeAndroid, ReturnKeyTypeIOS, ReturnKeyTypeOptions, SubmitBehavior, TextContentType, TextInputAndroidProps, TextInputBlurEvent, TextInputChangeEvent, TextInputContentSizeChangeEvent, TextInputEditingEvent, TextInputEndEditingEvent, TextInputEvent, TextInputFocusEvent, TextInputIOSProps, TextInputKeyPressEvent, TextInputProps, TextInputSelectionChangeEvent, TextInputInstance, TextInputSubmitEditingEvent };
|
|
17
|
+
type TextInputStateType = Readonly<{
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use currentlyFocusedInput
|
|
20
|
+
* Returns the ID of the currently focused text field, if one exists
|
|
21
|
+
* If no text field is focused it returns null
|
|
22
|
+
*/
|
|
23
|
+
currentlyFocusedField: () => number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Returns the ref of the currently focused text field, if one exists
|
|
26
|
+
* If no text field is focused it returns null
|
|
27
|
+
*/
|
|
28
|
+
currentlyFocusedInput: () => HostInstance | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* @param textField ref of the text field to focus
|
|
31
|
+
* Focuses the specified text field
|
|
32
|
+
* noop if the text field was already focused
|
|
33
|
+
*/
|
|
34
|
+
focusTextInput: (textField: HostInstance | undefined) => void;
|
|
35
|
+
/**
|
|
36
|
+
* @param textField ref of the text field to focus
|
|
37
|
+
* Unfocuses the specified text field
|
|
38
|
+
* noop if it wasn't focused
|
|
39
|
+
*/
|
|
40
|
+
blurTextInput: (textField: HostInstance | undefined) => void;
|
|
41
|
+
}>;
|
|
42
|
+
export type TextInputComponentStatics = Readonly<{
|
|
43
|
+
State: TextInputStateType;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* A foundational component for inputting text into the app via a
|
|
47
|
+
* keyboard. Props provide configurability for several features, such as
|
|
48
|
+
* auto-correction, auto-capitalization, placeholder text, and different keyboard
|
|
49
|
+
* types, such as a numeric keypad.
|
|
50
|
+
*
|
|
51
|
+
* The simplest use case is to plop down a `TextInput` and subscribe to the
|
|
52
|
+
* `onChangeText` events to read the user input. There are also other events,
|
|
53
|
+
* such as `onSubmitEditing` and `onFocus` that can be subscribed to.
|
|
54
|
+
*
|
|
55
|
+
* Example:
|
|
56
|
+
*
|
|
57
|
+
* ```tsx
|
|
58
|
+
* import React, { Component } from 'react';
|
|
59
|
+
* import { AppRegistry, TextInput } from 'react-native';
|
|
60
|
+
*
|
|
61
|
+
* export default class UselessTextInput extends Component {
|
|
62
|
+
* constructor(props) {
|
|
63
|
+
* super(props);
|
|
64
|
+
* this.state = { text: 'Useless Placeholder' };
|
|
65
|
+
* }
|
|
66
|
+
*
|
|
67
|
+
* render() {
|
|
68
|
+
* return (
|
|
69
|
+
* <TextInput
|
|
70
|
+
* style={{height: 40, borderColor: 'gray', borderWidth: 1}}
|
|
71
|
+
* onChangeText={(text) => this.setState({text})}
|
|
72
|
+
* value={this.state.text}
|
|
73
|
+
* />
|
|
74
|
+
* );
|
|
75
|
+
* }
|
|
76
|
+
* }
|
|
77
|
+
*
|
|
78
|
+
* // skip this line if using Create React Native App
|
|
79
|
+
* AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput);
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* Two methods exposed via the native element are .focus() and .blur() that
|
|
83
|
+
* will focus or blur the TextInput programmatically.
|
|
84
|
+
*
|
|
85
|
+
* Note that some props are only available with `multiline={true/false}`.
|
|
86
|
+
* Additionally, border styles that apply to only one side of the element
|
|
87
|
+
* (e.g., `borderBottomColor`, `borderLeftWidth`, etc.) will not be applied if
|
|
88
|
+
* `multiline=false`. To achieve the same effect, you can wrap your `TextInput`
|
|
89
|
+
* in a `View`:
|
|
90
|
+
*
|
|
91
|
+
* Example:
|
|
92
|
+
*
|
|
93
|
+
* ```tsx
|
|
94
|
+
* import React, { Component } from 'react';
|
|
95
|
+
* import { AppRegistry, View, TextInput } from 'react-native';
|
|
96
|
+
*
|
|
97
|
+
* class UselessTextInput extends Component {
|
|
98
|
+
* render() {
|
|
99
|
+
* return (
|
|
100
|
+
* <TextInput
|
|
101
|
+
* {...this.props} // Inherit any props passed to it; e.g., multiline, numberOfLines below
|
|
102
|
+
* editable={true}
|
|
103
|
+
* maxLength={40}
|
|
104
|
+
* />
|
|
105
|
+
* );
|
|
106
|
+
* }
|
|
107
|
+
* }
|
|
108
|
+
*
|
|
109
|
+
* export default class UselessTextInputMultiline extends Component {
|
|
110
|
+
* constructor(props) {
|
|
111
|
+
* super(props);
|
|
112
|
+
* this.state = {
|
|
113
|
+
* text: 'Useless Multiline Placeholder',
|
|
114
|
+
* };
|
|
115
|
+
* }
|
|
116
|
+
*
|
|
117
|
+
* // If you type something in the text box that is a color, the background will change to that
|
|
118
|
+
* // color.
|
|
119
|
+
* render() {
|
|
120
|
+
* return (
|
|
121
|
+
* <View style={{
|
|
122
|
+
* backgroundColor: this.state.text,
|
|
123
|
+
* borderBottomColor: '#000000',
|
|
124
|
+
* borderBottomWidth: 1 }}
|
|
125
|
+
* >
|
|
126
|
+
* <UselessTextInput
|
|
127
|
+
* multiline={true}
|
|
128
|
+
* numberOfLines={4}
|
|
129
|
+
* onChangeText={(text) => this.setState({text})}
|
|
130
|
+
* value={this.state.text}
|
|
131
|
+
* />
|
|
132
|
+
* </View>
|
|
133
|
+
* );
|
|
134
|
+
* }
|
|
135
|
+
* }
|
|
136
|
+
*
|
|
137
|
+
* // skip these lines if using Create React Native App
|
|
138
|
+
* AppRegistry.registerComponent(
|
|
139
|
+
* 'AwesomeProject',
|
|
140
|
+
* () => UselessTextInputMultiline
|
|
141
|
+
* );
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* `TextInput` has by default a border at the bottom of its view. This border
|
|
145
|
+
* has its padding set by the background image provided by the system, and it
|
|
146
|
+
* cannot be changed. Solutions to avoid this is to either not set height
|
|
147
|
+
* explicitly, case in which the system will take care of displaying the border
|
|
148
|
+
* in the correct position, or to not display the border by setting
|
|
149
|
+
* `underlineColorAndroid` to transparent.
|
|
150
|
+
*
|
|
151
|
+
* Note that on Android performing text selection in input can change
|
|
152
|
+
* app's activity `windowSoftInputMode` param to `adjustResize`.
|
|
153
|
+
* This may cause issues with components that have position: 'absolute'
|
|
154
|
+
* while keyboard is active. To avoid this behavior either specify `windowSoftInputMode`
|
|
155
|
+
* in AndroidManifest.xml ( https://developer.android.com/guide/topics/manifest/activity-element.html )
|
|
156
|
+
* or control this param programmatically with native code.
|
|
157
|
+
*
|
|
158
|
+
* @see https://reactnative.dev/docs/textinput
|
|
159
|
+
*/
|
|
160
|
+
declare const $$TextInput: TextInputType;
|
|
161
|
+
declare type $$TextInput = typeof $$TextInput;
|
|
162
|
+
export default $$TextInput;
|