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,223 @@
|
|
|
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<<eb152e149877b18ef1cc5f2a17d1c431>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { HostInstance } from "../../../src/private/types/HostInstance";
|
|
14
|
+
import type { EventSubscription } from "../../vendor/emitter/EventEmitter";
|
|
15
|
+
type AccessibilityEventDefinitionsAndroid = {
|
|
16
|
+
accessibilityServiceChanged: [boolean];
|
|
17
|
+
highTextContrastChanged: [boolean];
|
|
18
|
+
};
|
|
19
|
+
type AccessibilityEventDefinitionsIOS = {
|
|
20
|
+
announcementFinished: [{
|
|
21
|
+
announcement: string;
|
|
22
|
+
success: boolean;
|
|
23
|
+
}];
|
|
24
|
+
boldTextChanged: [boolean];
|
|
25
|
+
darkerSystemColorsChanged: [boolean];
|
|
26
|
+
reduceTransparencyChanged: [boolean];
|
|
27
|
+
};
|
|
28
|
+
type AccessibilityEventDefinitions = Omit<AccessibilityEventDefinitionsAndroid, keyof AccessibilityEventDefinitionsIOS | keyof {
|
|
29
|
+
change: [boolean];
|
|
30
|
+
grayscaleChanged: [boolean];
|
|
31
|
+
invertColorsChanged: [boolean];
|
|
32
|
+
reduceMotionChanged: [boolean];
|
|
33
|
+
screenReaderChanged: [boolean];
|
|
34
|
+
}> & Omit<AccessibilityEventDefinitionsIOS, keyof {
|
|
35
|
+
change: [boolean];
|
|
36
|
+
grayscaleChanged: [boolean];
|
|
37
|
+
invertColorsChanged: [boolean];
|
|
38
|
+
reduceMotionChanged: [boolean];
|
|
39
|
+
screenReaderChanged: [boolean];
|
|
40
|
+
}> & {
|
|
41
|
+
change: [boolean];
|
|
42
|
+
grayscaleChanged: [boolean];
|
|
43
|
+
invertColorsChanged: [boolean];
|
|
44
|
+
reduceMotionChanged: [boolean];
|
|
45
|
+
screenReaderChanged: [boolean];
|
|
46
|
+
};
|
|
47
|
+
type AccessibilityEventTypes = "click" | "focus" | "viewHoverEnter" | "windowStateChange";
|
|
48
|
+
declare const AccessibilityInfo: {
|
|
49
|
+
/**
|
|
50
|
+
* Query whether bold text is currently enabled.
|
|
51
|
+
*
|
|
52
|
+
* Returns a promise which resolves to a boolean.
|
|
53
|
+
* The result is `true` when bold text is enabled and `false` otherwise.
|
|
54
|
+
*
|
|
55
|
+
* @platform ios
|
|
56
|
+
*/
|
|
57
|
+
isBoldTextEnabled(): Promise<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Query whether grayscale is currently enabled.
|
|
60
|
+
*
|
|
61
|
+
* Returns a promise which resolves to a boolean.
|
|
62
|
+
* The result is `true` when grayscale is enabled and `false` otherwise.
|
|
63
|
+
*
|
|
64
|
+
* @platform ios
|
|
65
|
+
*/
|
|
66
|
+
isGrayscaleEnabled(): Promise<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* Query whether inverted colors are currently enabled.
|
|
69
|
+
*
|
|
70
|
+
* Returns a promise which resolves to a boolean.
|
|
71
|
+
* The result is `true` when invert color is enabled and `false` otherwise.
|
|
72
|
+
*
|
|
73
|
+
* @platform ios
|
|
74
|
+
*/
|
|
75
|
+
isInvertColorsEnabled(): Promise<boolean>;
|
|
76
|
+
/**
|
|
77
|
+
* Query whether reduced motion is currently enabled.
|
|
78
|
+
*
|
|
79
|
+
* Returns a promise which resolves to a boolean.
|
|
80
|
+
* The result is `true` when a reduce motion is enabled and `false` otherwise.
|
|
81
|
+
*/
|
|
82
|
+
isReduceMotionEnabled(): Promise<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* Query whether high text contrast is currently enabled.
|
|
85
|
+
*
|
|
86
|
+
* Returns a promise which resolves to a boolean.
|
|
87
|
+
* The result is `true` when high text contrast is enabled and `false` otherwise.
|
|
88
|
+
*
|
|
89
|
+
* @platform android
|
|
90
|
+
*/
|
|
91
|
+
isHighTextContrastEnabled(): Promise<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* Query whether darker system colors is currently enabled.
|
|
94
|
+
*
|
|
95
|
+
* Returns a promise which resolves to a boolean.
|
|
96
|
+
* The result is `true` when darker system colors is enabled and `false` otherwise.
|
|
97
|
+
*
|
|
98
|
+
* @platform ios
|
|
99
|
+
*/
|
|
100
|
+
isDarkerSystemColorsEnabled(): Promise<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Query whether cross-fade transitions are preferred over slide transitions.
|
|
103
|
+
*
|
|
104
|
+
* Returns a promise which resolves to a boolean.
|
|
105
|
+
* The result is `true` when cross-fade transitions are preferred and `false` otherwise.
|
|
106
|
+
*
|
|
107
|
+
* @platform ios
|
|
108
|
+
*/
|
|
109
|
+
prefersCrossFadeTransitions(): Promise<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* Query whether reduced transparency is currently enabled.
|
|
112
|
+
*
|
|
113
|
+
* Returns a promise which resolves to a boolean.
|
|
114
|
+
* The result is `true` when a reduce transparency is enabled and `false` otherwise.
|
|
115
|
+
*
|
|
116
|
+
* @platform ios
|
|
117
|
+
*/
|
|
118
|
+
isReduceTransparencyEnabled(): Promise<boolean>;
|
|
119
|
+
/**
|
|
120
|
+
* Query whether a screen reader is currently enabled.
|
|
121
|
+
*
|
|
122
|
+
* Returns a promise which resolves to a boolean.
|
|
123
|
+
* The result is `true` when a screen reader is enabled and `false` otherwise.
|
|
124
|
+
*/
|
|
125
|
+
isScreenReaderEnabled(): Promise<boolean>;
|
|
126
|
+
/**
|
|
127
|
+
* Query whether Accessibility Service is currently enabled.
|
|
128
|
+
*
|
|
129
|
+
* Returns a promise which resolves to a boolean.
|
|
130
|
+
* The result is `true` when any service is enabled and `false` otherwise.
|
|
131
|
+
*
|
|
132
|
+
* @platform android
|
|
133
|
+
*/
|
|
134
|
+
isAccessibilityServiceEnabled(): Promise<boolean>;
|
|
135
|
+
/**
|
|
136
|
+
* Add an event handler. Supported events:
|
|
137
|
+
*
|
|
138
|
+
* - `reduceMotionChanged`: Fires when the state of the reduce motion toggle changes.
|
|
139
|
+
* The argument to the event handler is a boolean. The boolean is `true` when a reduce
|
|
140
|
+
* motion is enabled (or when "Transition Animation Scale" in "Developer options" is
|
|
141
|
+
* "Animation off") and `false` otherwise.
|
|
142
|
+
* - `screenReaderChanged`: Fires when the state of the screen reader changes. The argument
|
|
143
|
+
* to the event handler is a boolean. The boolean is `true` when a screen
|
|
144
|
+
* reader is enabled and `false` otherwise.
|
|
145
|
+
* - `grayscaleChanged`: Fires when the state of the gray scale toggle changes.
|
|
146
|
+
* The argument to the event handler is a boolean. The boolean is `true` when gray scale
|
|
147
|
+
* is enabled and `false` otherwise.
|
|
148
|
+
* - `invertColorsChanged`: Fires when the state of the invert colors toggle
|
|
149
|
+
* changes. The argument to the event handler is a boolean. The boolean is `true` when invert
|
|
150
|
+
* colors is enabled and `false` otherwise.
|
|
151
|
+
*
|
|
152
|
+
* These events are only supported on iOS:
|
|
153
|
+
*
|
|
154
|
+
* - `boldTextChanged`: iOS-only event. Fires when the state of the bold text toggle changes.
|
|
155
|
+
* The argument to the event handler is a boolean. The boolean is `true` when a bold text
|
|
156
|
+
* is enabled and `false` otherwise.
|
|
157
|
+
* - `reduceTransparencyChanged`: iOS-only event. Fires when the state of the reduce transparency
|
|
158
|
+
* toggle changes. The argument to the event handler is a boolean. The boolean is `true`
|
|
159
|
+
* when a reduce transparency is enabled and `false` otherwise.
|
|
160
|
+
* - `announcementFinished`: iOS-only event. Fires when the screen reader has
|
|
161
|
+
* finished making an announcement. The argument to the event handler is a
|
|
162
|
+
* dictionary with these keys:
|
|
163
|
+
* - `announcement`: The string announced by the screen reader.
|
|
164
|
+
* - `success`: A boolean indicating whether the announcement was
|
|
165
|
+
* successfully made.
|
|
166
|
+
* - `darkerSystemColorsChanged`: iOS-only event. Fires when the state of the dark system colors
|
|
167
|
+
* toggle changes. The argument to the event handler is a boolean. The boolean is `true` when
|
|
168
|
+
* dark system colors is enabled and `false` otherwise.
|
|
169
|
+
*
|
|
170
|
+
* These events are only supported on Android:
|
|
171
|
+
*
|
|
172
|
+
* - `highTextContrastChanged`: Android-only event. Fires when the state of the high text contrast
|
|
173
|
+
* toggle changes. The argument to the event handler is a boolean. The boolean is `true` when
|
|
174
|
+
* high text contrast is enabled and `false` otherwise.
|
|
175
|
+
*/
|
|
176
|
+
addEventListener<K extends keyof AccessibilityEventDefinitions>(eventName: K, handler: (...$$REST$$: AccessibilityEventDefinitions[K]) => void): EventSubscription;
|
|
177
|
+
/**
|
|
178
|
+
* Set accessibility focus to a React component.
|
|
179
|
+
*
|
|
180
|
+
* @deprecated Use `sendAccessibilityEvent` with eventType `focus` instead.
|
|
181
|
+
*/
|
|
182
|
+
setAccessibilityFocus(reactTag: number): void;
|
|
183
|
+
/**
|
|
184
|
+
* Trigger an accessibility event on a host instance. The `eventType` can be
|
|
185
|
+
* `'focus'`, `'click'`, `'viewHoverEnter'`, or `'windowStateChange'`.
|
|
186
|
+
*/
|
|
187
|
+
sendAccessibilityEvent(handle: HostInstance, eventType: AccessibilityEventTypes): void;
|
|
188
|
+
/**
|
|
189
|
+
* Post a string to be announced by the screen reader.
|
|
190
|
+
*/
|
|
191
|
+
announceForAccessibility(announcement: string): void;
|
|
192
|
+
/**
|
|
193
|
+
* Post a string to be announced by the screen reader with options.
|
|
194
|
+
*
|
|
195
|
+
* - `announcement`: The string announced by the screen reader.
|
|
196
|
+
* - `options`: An object that configures the reading options.
|
|
197
|
+
* - `queue`: The announcement will be queued behind existing announcements. iOS only.
|
|
198
|
+
* - `priority`: The priority of the announcement. Possible values: 'low' | 'default' | 'high'.
|
|
199
|
+
* High priority announcements will interrupt any ongoing speech and cannot be interrupted.
|
|
200
|
+
* Default priority announcements will interrupt any ongoing speech but can be interrupted.
|
|
201
|
+
* Low priority announcements will not interrupt ongoing speech and can be interrupted.
|
|
202
|
+
* (iOS only).
|
|
203
|
+
*/
|
|
204
|
+
announceForAccessibilityWithOptions(announcement: string, options: {
|
|
205
|
+
queue?: boolean | undefined;
|
|
206
|
+
priority?: "low" | "default" | "high" | undefined;
|
|
207
|
+
}): void;
|
|
208
|
+
/**
|
|
209
|
+
* Get the recommended timeout in milliseconds the user needs, as specified
|
|
210
|
+
* in the device's Accessibility settings.
|
|
211
|
+
*
|
|
212
|
+
* @platform android
|
|
213
|
+
*/
|
|
214
|
+
getRecommendedTimeoutMillis(originalTimeout: number): Promise<number>;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Provides information about the device's accessibility features, such as whether a screen reader is active. Can be used to query the current state and register for change notifications.
|
|
218
|
+
*
|
|
219
|
+
* @see https://reactnative.dev/docs/accessibilityinfo
|
|
220
|
+
*/
|
|
221
|
+
declare const $$AccessibilityInfo: typeof AccessibilityInfo;
|
|
222
|
+
declare type $$AccessibilityInfo = typeof $$AccessibilityInfo;
|
|
223
|
+
export default $$AccessibilityInfo;
|
package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts
ADDED
|
@@ -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<<593501159fa4bccbaf77ce2605fe18ec>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js.flow
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* This is a function exposed to the React Renderer that can be used by the
|
|
15
|
+
* pre-Fabric renderer to emit accessibility events to pre-Fabric nodes.
|
|
16
|
+
*/
|
|
17
|
+
declare function legacySendAccessibilityEvent(reactTag: number, eventType: string): void;
|
|
18
|
+
declare const $$legacySendAccessibilityEvent: typeof legacySendAccessibilityEvent;
|
|
19
|
+
declare type $$legacySendAccessibilityEvent = typeof $$legacySendAccessibilityEvent;
|
|
20
|
+
export default $$legacySendAccessibilityEvent;
|
|
@@ -0,0 +1,133 @@
|
|
|
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<<393938e22e93a4660c43e442fb86ed29>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { HostInstance } from "../../../src/private/types/HostInstance";
|
|
14
|
+
import type { ViewProps } from "../View/ViewPropTypes";
|
|
15
|
+
import { type ColorValue } from "../../StyleSheet/StyleSheet";
|
|
16
|
+
import * as React from "react";
|
|
17
|
+
export type ActivityIndicatorInstance = HostInstance;
|
|
18
|
+
type IndicatorSize = number | "small" | "large";
|
|
19
|
+
type ActivityIndicatorIOSProps = Readonly<{
|
|
20
|
+
/**
|
|
21
|
+
* Whether the indicator should hide when not animating.
|
|
22
|
+
*
|
|
23
|
+
* @platform ios
|
|
24
|
+
*/
|
|
25
|
+
hidesWhenStopped?: boolean | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export interface ActivityIndicatorProps extends Readonly<Omit<ViewProps, keyof ActivityIndicatorIOSProps | keyof {
|
|
28
|
+
/**
|
|
29
|
+
* Whether to show the indicator (`true`) or hide it (`false`).
|
|
30
|
+
*/
|
|
31
|
+
animating?: boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The foreground color of the spinner.
|
|
34
|
+
*
|
|
35
|
+
* @default {@platform android} `null` (system accent default color)
|
|
36
|
+
* @default {@platform ios} '#999999'
|
|
37
|
+
*/
|
|
38
|
+
color?: ColorValue | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Size of the indicator.
|
|
41
|
+
*
|
|
42
|
+
* Small has a height of 20, large has a height of 36.
|
|
43
|
+
*
|
|
44
|
+
* @type enum(`'small'`, `'large'`)
|
|
45
|
+
* @type {@platform android} number
|
|
46
|
+
*/
|
|
47
|
+
size?: IndicatorSize | undefined;
|
|
48
|
+
}> & Omit<ActivityIndicatorIOSProps, keyof {
|
|
49
|
+
/**
|
|
50
|
+
* Whether to show the indicator (`true`) or hide it (`false`).
|
|
51
|
+
*/
|
|
52
|
+
animating?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The foreground color of the spinner.
|
|
55
|
+
*
|
|
56
|
+
* @default {@platform android} `null` (system accent default color)
|
|
57
|
+
* @default {@platform ios} '#999999'
|
|
58
|
+
*/
|
|
59
|
+
color?: ColorValue | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Size of the indicator.
|
|
62
|
+
*
|
|
63
|
+
* Small has a height of 20, large has a height of 36.
|
|
64
|
+
*
|
|
65
|
+
* @type enum(`'small'`, `'large'`)
|
|
66
|
+
* @type {@platform android} number
|
|
67
|
+
*/
|
|
68
|
+
size?: IndicatorSize | undefined;
|
|
69
|
+
}>> {
|
|
70
|
+
/**
|
|
71
|
+
* Whether to show the indicator (`true`) or hide it (`false`).
|
|
72
|
+
*/
|
|
73
|
+
readonly animating?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The foreground color of the spinner.
|
|
76
|
+
*
|
|
77
|
+
* @default {@platform android} `null` (system accent default color)
|
|
78
|
+
* @default {@platform ios} '#999999'
|
|
79
|
+
*/
|
|
80
|
+
readonly color?: ColorValue | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Size of the indicator.
|
|
83
|
+
*
|
|
84
|
+
* Small has a height of 20, large has a height of 36.
|
|
85
|
+
*
|
|
86
|
+
* @type enum(`'small'`, `'large'`)
|
|
87
|
+
* @type {@platform android} number
|
|
88
|
+
*/
|
|
89
|
+
readonly size?: IndicatorSize | undefined;
|
|
90
|
+
}
|
|
91
|
+
declare const ActivityIndicator: (props: Omit<ActivityIndicatorProps, keyof {
|
|
92
|
+
ref?: React.Ref<ActivityIndicatorInstance> | undefined;
|
|
93
|
+
}> & {
|
|
94
|
+
ref?: React.Ref<ActivityIndicatorInstance> | undefined;
|
|
95
|
+
}) => React.ReactNode;
|
|
96
|
+
/**
|
|
97
|
+
* Displays a circular loading indicator.
|
|
98
|
+
*
|
|
99
|
+
* Example:
|
|
100
|
+
*
|
|
101
|
+
* ```tsx
|
|
102
|
+
* import React from 'react';
|
|
103
|
+
* import {ActivityIndicator, StyleSheet, View} from 'react-native';
|
|
104
|
+
*
|
|
105
|
+
* const App = () => (
|
|
106
|
+
* <View style={[styles.container, styles.horizontal]}>
|
|
107
|
+
* <ActivityIndicator />
|
|
108
|
+
* <ActivityIndicator size="large" />
|
|
109
|
+
* <ActivityIndicator size="small" color="#0000ff" />
|
|
110
|
+
* <ActivityIndicator size="large" color="#00ff00" />
|
|
111
|
+
* </View>
|
|
112
|
+
* );
|
|
113
|
+
*
|
|
114
|
+
* const styles = StyleSheet.create({
|
|
115
|
+
* container: {
|
|
116
|
+
* flex: 1,
|
|
117
|
+
* justifyContent: 'center',
|
|
118
|
+
* },
|
|
119
|
+
* horizontal: {
|
|
120
|
+
* flexDirection: 'row',
|
|
121
|
+
* justifyContent: 'space-around',
|
|
122
|
+
* padding: 10,
|
|
123
|
+
* },
|
|
124
|
+
* });
|
|
125
|
+
*
|
|
126
|
+
* export default App;
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @see https://reactnative.dev/docs/activityindicator
|
|
130
|
+
*/
|
|
131
|
+
declare const $$ActivityIndicator: typeof ActivityIndicator;
|
|
132
|
+
declare type $$ActivityIndicator = typeof $$ActivityIndicator;
|
|
133
|
+
export default $$ActivityIndicator;
|
|
@@ -0,0 +1,167 @@
|
|
|
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<<255c479d39f4d0b236a68aea16b6270d>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/Button.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { GestureResponderEvent } from "../Types/CoreEventTypes";
|
|
14
|
+
import type { AccessibilityActionEvent, AccessibilityActionInfo, AccessibilityState } from "./View/ViewAccessibility";
|
|
15
|
+
import { type ColorValue } from "../StyleSheet/StyleSheet";
|
|
16
|
+
import TouchableNativeFeedback from "./Touchable/TouchableNativeFeedback";
|
|
17
|
+
import TouchableOpacity from "./Touchable/TouchableOpacity";
|
|
18
|
+
import * as React from "react";
|
|
19
|
+
export interface ButtonProps {
|
|
20
|
+
/**
|
|
21
|
+
* Text to display inside the button. On Android the given title will be
|
|
22
|
+
* converted to the uppercased form.
|
|
23
|
+
*/
|
|
24
|
+
readonly title: string;
|
|
25
|
+
/**
|
|
26
|
+
* Handler called when the user taps the button.
|
|
27
|
+
*/
|
|
28
|
+
readonly onPress?: ((event?: GestureResponderEvent) => unknown) | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* If `true`, doesn't play system sound on touch.
|
|
31
|
+
*
|
|
32
|
+
* @platform android
|
|
33
|
+
*
|
|
34
|
+
* @default `false`
|
|
35
|
+
*/
|
|
36
|
+
readonly touchSoundDisabled?: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Color of the text (iOS), or background color of the button (Android).
|
|
39
|
+
*
|
|
40
|
+
* @default {@platform android} `'#2196F3'`
|
|
41
|
+
* @default {@platform ios} `'#007AFF'`
|
|
42
|
+
*/
|
|
43
|
+
readonly color?: ColorValue | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* May be set to true to force the focus engine to move focus to this view.
|
|
46
|
+
*
|
|
47
|
+
* @platform tv
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
readonly hasTVPreferredFocus?: boolean | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Designates the next view to receive focus when the user navigates down. See
|
|
53
|
+
* the [Android documentation][android:nextFocusDown].
|
|
54
|
+
*
|
|
55
|
+
* [android:nextFocusDown]:
|
|
56
|
+
* https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusDown
|
|
57
|
+
*
|
|
58
|
+
* @platform android, tv
|
|
59
|
+
*/
|
|
60
|
+
readonly nextFocusDown?: number | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Designates the next view to receive focus when the user navigates forward.
|
|
63
|
+
* See the [Android documentation][android:nextFocusForward].
|
|
64
|
+
*
|
|
65
|
+
* [android:nextFocusForward]:
|
|
66
|
+
* https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusForward
|
|
67
|
+
*
|
|
68
|
+
* @platform android, tv
|
|
69
|
+
*/
|
|
70
|
+
readonly nextFocusForward?: number | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Designates the next view to receive focus when the user navigates left. See
|
|
73
|
+
* the [Android documentation][android:nextFocusLeft].
|
|
74
|
+
*
|
|
75
|
+
* [android:nextFocusLeft]:
|
|
76
|
+
* https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusLeft
|
|
77
|
+
*
|
|
78
|
+
* @platform android, tv
|
|
79
|
+
*/
|
|
80
|
+
readonly nextFocusLeft?: number | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Designates the next view to receive focus when the user navigates right. See
|
|
83
|
+
* the [Android documentation][android:nextFocusRight].
|
|
84
|
+
*
|
|
85
|
+
* [android:nextFocusRight]:
|
|
86
|
+
* https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusRight
|
|
87
|
+
*
|
|
88
|
+
* @platform android, tv
|
|
89
|
+
*/
|
|
90
|
+
readonly nextFocusRight?: number | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Designates the next view to receive focus when the user navigates up. See
|
|
93
|
+
* the [Android documentation][android:nextFocusUp].
|
|
94
|
+
*
|
|
95
|
+
* [android:nextFocusUp]:
|
|
96
|
+
* https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusUp
|
|
97
|
+
*
|
|
98
|
+
* @platform android, tv
|
|
99
|
+
*/
|
|
100
|
+
readonly nextFocusUp?: number | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Text to display for blindness accessibility features.
|
|
103
|
+
*/
|
|
104
|
+
readonly accessibilityLabel?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Alias for `accessibilityLabel`.
|
|
107
|
+
*/
|
|
108
|
+
readonly "aria-label"?: string | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* If `true`, disable all interactions for this component.
|
|
111
|
+
*
|
|
112
|
+
* @default `false`
|
|
113
|
+
*/
|
|
114
|
+
readonly disabled?: boolean | undefined;
|
|
115
|
+
readonly testID?: string | undefined;
|
|
116
|
+
readonly accessible?: boolean | undefined;
|
|
117
|
+
readonly accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
|
|
118
|
+
readonly onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
|
|
119
|
+
readonly accessibilityState?: AccessibilityState | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Alias for `accessibilityState`.
|
|
122
|
+
*/
|
|
123
|
+
readonly "aria-busy"?: boolean | undefined;
|
|
124
|
+
readonly "aria-checked"?: (boolean | undefined) | "mixed" | undefined;
|
|
125
|
+
readonly "aria-disabled"?: boolean | undefined;
|
|
126
|
+
readonly "aria-expanded"?: boolean | undefined;
|
|
127
|
+
readonly "aria-selected"?: boolean | undefined;
|
|
128
|
+
readonly importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
|
|
129
|
+
readonly accessibilityHint?: string | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* A BCP 47 language tag for the screen reader to use when reading text
|
|
132
|
+
* content.
|
|
133
|
+
*
|
|
134
|
+
* @platform ios
|
|
135
|
+
*/
|
|
136
|
+
readonly accessibilityLanguage?: string | undefined;
|
|
137
|
+
}
|
|
138
|
+
declare const NativeTouchable: typeof TouchableNativeFeedback | typeof TouchableOpacity;
|
|
139
|
+
export type ButtonInstance = React.ComponentRef<typeof NativeTouchable>;
|
|
140
|
+
declare const Button: (props: Omit<ButtonProps, keyof {
|
|
141
|
+
ref?: React.Ref<ButtonInstance> | undefined;
|
|
142
|
+
}> & {
|
|
143
|
+
ref?: React.Ref<ButtonInstance> | undefined;
|
|
144
|
+
}) => React.ReactNode;
|
|
145
|
+
/**
|
|
146
|
+
* A basic button component that should render nicely on any platform. Supports a
|
|
147
|
+
* minimal level of customization.
|
|
148
|
+
*
|
|
149
|
+
* If this button doesn't look right for your app, you can build your own button
|
|
150
|
+
* using `Pressable`.
|
|
151
|
+
*
|
|
152
|
+
* Example:
|
|
153
|
+
*
|
|
154
|
+
* ```tsx
|
|
155
|
+
* <Button
|
|
156
|
+
* onPress={onPressLearnMore}
|
|
157
|
+
* title="Learn More"
|
|
158
|
+
* color="#841584"
|
|
159
|
+
* accessibilityLabel="Learn more about this purple button"
|
|
160
|
+
* />
|
|
161
|
+
* ```
|
|
162
|
+
*
|
|
163
|
+
* @see https://reactnative.dev/docs/button
|
|
164
|
+
*/
|
|
165
|
+
declare const $$Button: typeof Button;
|
|
166
|
+
declare type $$Button = typeof $$Button;
|
|
167
|
+
export default $$Button;
|
|
@@ -0,0 +1,43 @@
|
|
|
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<<d44638471912d382fde4737dce60c1b7>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/Clipboard/Clipboard.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* `Clipboard` gives you an interface for setting and getting content from Clipboard on both iOS and Android
|
|
15
|
+
*
|
|
16
|
+
* Clipboard has been extracted from react-native core and will be removed in a future release.
|
|
17
|
+
* It can now be installed and imported from `@react-native-clipboard/clipboard` instead of 'react-native'.
|
|
18
|
+
* @see https://github.com/react-native-clipboard/clipboard
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
21
|
+
declare const $$Clipboard: {
|
|
22
|
+
/**
|
|
23
|
+
* Get content of string type, this method returns a `Promise`, so you can use following code to get clipboard content
|
|
24
|
+
* ```javascript
|
|
25
|
+
* async _getContent() {
|
|
26
|
+
* var content = await Clipboard.getString();
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
getString(): Promise<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Set content of string type. You can use following code to set clipboard content
|
|
33
|
+
* ```javascript
|
|
34
|
+
* _setContent() {
|
|
35
|
+
* Clipboard.setString('hello world');
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
* @param {string} content the content to be stored in the clipboard.
|
|
39
|
+
*/
|
|
40
|
+
setString(content: string): void;
|
|
41
|
+
};
|
|
42
|
+
declare type $$Clipboard = typeof $$Clipboard;
|
|
43
|
+
export default $$Clipboard;
|
|
@@ -0,0 +1,17 @@
|
|
|
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<<940f6f4f162b4d5d091654aad5201f7c>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js.flow
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import DrawerLayoutAndroid from "./DrawerLayoutAndroidFallback";
|
|
14
|
+
export type { DrawerLayoutAndroidProps, DrawerSlideEvent } from "./DrawerLayoutAndroidTypes";
|
|
15
|
+
declare const $$DrawerLayoutAndroid: typeof DrawerLayoutAndroid;
|
|
16
|
+
declare type $$DrawerLayoutAndroid = typeof $$DrawerLayoutAndroid;
|
|
17
|
+
export default $$DrawerLayoutAndroid;
|
|
@@ -0,0 +1,27 @@
|
|
|
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<<1aa489532704622e614fdd8bd3da4818>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback } from "../../../src/private/types/HostInstance";
|
|
14
|
+
import type { DrawerLayoutAndroidMethods, DrawerLayoutAndroidProps, DrawerLayoutAndroidState } from "./DrawerLayoutAndroidTypes";
|
|
15
|
+
import * as React from "react";
|
|
16
|
+
declare class DrawerLayoutAndroid extends React.Component<DrawerLayoutAndroidProps, DrawerLayoutAndroidState> implements DrawerLayoutAndroidMethods {
|
|
17
|
+
render(): React.ReactNode;
|
|
18
|
+
openDrawer(): void;
|
|
19
|
+
closeDrawer(): void;
|
|
20
|
+
blur(): void;
|
|
21
|
+
focus(): void;
|
|
22
|
+
measure(callback: MeasureOnSuccessCallback): void;
|
|
23
|
+
measureInWindow(callback: MeasureInWindowOnSuccessCallback): void;
|
|
24
|
+
measureLayout(relativeToNativeNode: number, onSuccess: MeasureLayoutOnSuccessCallback, onFail?: () => void): void;
|
|
25
|
+
setNativeProps(nativeProps: Object): void;
|
|
26
|
+
}
|
|
27
|
+
export default DrawerLayoutAndroid;
|