react-native-tvos 0.86.0-2 → 0.86.3-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +1 -1
- package/Libraries/Animated/components/AnimatedScrollView.js +1 -1
- package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +1 -1
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Components/Button.js +2 -2
- package/Libraries/Components/TV/TVFocusGuideView.js +31 -0
- package/Libraries/Components/TV/useFocusEnterLeave.js +112 -0
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +1 -1
- package/Libraries/Components/TextInput/TextInput.flow.js +1 -1
- package/Libraries/Components/Touchable/Touchable.d.ts +1 -1
- package/Libraries/Components/View/ViewAccessibility.d.ts +1 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/Timers/JSTimers.js +1 -1
- package/Libraries/Core/setUpNavigator.js +1 -1
- package/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +1 -1
- package/Libraries/FBLazyVector/FBLazyVector.podspec +1 -1
- package/Libraries/Image/ImageSource.d.ts +1 -1
- package/Libraries/Image/RCTImageLoader.mm +1 -1
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Interaction/PanResponder.js +1 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/Renderer/README.md +2 -2
- package/Libraries/Required/RCTRequired.podspec +1 -1
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Text/React-RCTText.podspec +1 -1
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/Utilities/PolyfillFunctions.js +1 -1
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/README-core.md +6 -6
- package/README.md +2 -0
- package/React/Base/RCTVersion.m +2 -2
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +43 -17
- package/React/React-RCTFBReactNativeSpec.podspec +1 -1
- package/React/React-RCTFabric.podspec +1 -1
- package/React/Runtime/React-RCTRuntime.podspec +1 -1
- package/React/Views/ScrollView/RCTScrollView.m +1 -1
- package/React-Core.podspec +1 -1
- package/React.podspec +1 -1
- package/ReactAndroid/build.gradle.kts +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/publish.gradle +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.kt +49 -12
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +8 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactNestedScrollViewManager.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextSelectionWatcher.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +1 -1
- package/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +1 -1
- package/ReactApple/RCTSwiftUI/RCTSwiftUI.podspec +1 -1
- package/ReactApple/RCTSwiftUIWrapper/RCTSwiftUIWrapper.podspec +1 -1
- package/ReactCommon/React-Fabric.podspec +1 -1
- package/ReactCommon/React-FabricComponents.podspec +1 -1
- package/ReactCommon/React-FabricImage.podspec +1 -1
- package/ReactCommon/React-Mapbuffer.podspec +1 -1
- package/ReactCommon/ReactCommon.podspec +1 -1
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
- package/ReactCommon/hermes/React-hermes.podspec +1 -1
- package/ReactCommon/hermes/executor/React-jsitracing.podspec +1 -1
- package/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +1 -1
- package/ReactCommon/jsi/React-jsi.podspec +1 -1
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
- package/ReactCommon/jsinspector-modern/React-jsinspector.podspec +1 -1
- package/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +1 -1
- package/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +1 -1
- package/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +1 -1
- package/ReactCommon/jsitooling/React-jsitooling.podspec +1 -1
- package/ReactCommon/logger/React-logger.podspec +1 -1
- package/ReactCommon/oscompat/React-oscompat.podspec +1 -1
- package/ReactCommon/react/debug/React-debug.podspec +1 -1
- package/ReactCommon/react/debug/redbox/JscSafeUrl.h +1 -1
- package/ReactCommon/react/featureflags/React-featureflags.podspec +1 -1
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +1 -1
- package/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +10 -4
- package/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/intersectionobserver/React-intersectionobservernativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/mutationobserver/React-mutationobservernativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +1 -1
- package/ReactCommon/react/nativemodule/viewtransition/React-viewtransitionnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/webperformance/React-webperformancenativemodule.podspec +1 -1
- package/ReactCommon/react/networking/React-networking.podspec +1 -1
- package/ReactCommon/react/performance/cdpmetrics/React-performancecdpmetrics.podspec +1 -1
- package/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +1 -1
- package/ReactCommon/react/renderer/animated/internal/primitives.h +1 -1
- package/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +1 -1
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +20 -4
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +27 -19
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +2 -0
- package/ReactCommon/react/renderer/css/React-renderercss.podspec +1 -1
- package/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +1 -1
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +1 -1
- package/ReactCommon/react/renderer/mounting/internal/CullingContext.cpp +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +58 -53
- package/ReactCommon/react/renderer/uimanager/tests/FabricUIManagerTest.cpp +144 -3
- package/ReactCommon/react/runtime/React-RuntimeCore.podspec +1 -1
- package/ReactCommon/react/runtime/React-RuntimeHermes.podspec +1 -1
- package/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +1 -1
- package/ReactCommon/react/timing/React-timing.podspec +1 -1
- package/ReactCommon/react/utils/React-utils.podspec +1 -1
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/yoga/Yoga.podspec +2 -2
- package/ReactCommon/yoga/yoga/algorithm/AbsoluteLayout.cpp +2 -1
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +11 -7
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.h +1 -1
- package/package.json +11 -11
- package/scripts/cocoapods/spm.rb +1 -1
- package/scripts/cocoapods/utils.rb +2 -2
- package/scripts/codegen/templates/ReactAppDependencyProvider.podspec.template +1 -1
- package/scripts/codegen/templates/ReactCodegen.podspec.template +1 -1
- package/scripts/ios-configure-glog.sh +1 -1
- package/sdks/.hermesv1version +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +7 -2
- package/sdks/hermes-engine/version.properties +1 -1
- package/src/private/types/HostInstance.js +1 -1
- package/src/types/globals.d.ts +2 -2
- package/third-party-podspecs/RCT-Folly.podspec +1 -1
- package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
- package/third-party-podspecs/glog.podspec +1 -1
- package/types/public/ReactNativeTVTypes.d.ts +12 -1
- package/types/public/ReactNativeTypes.d.ts +2 -2
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +101 -0
- package/types_generated/Libraries/Alert/Alert.d.ts +55 -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 +128 -0
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
- package/types_generated/Libraries/Animated/Easing.d.ts +171 -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 +47 -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 +63 -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 +20 -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 +232 -0
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +84 -0
- package/types_generated/Libraries/Components/Button.d.ts +247 -0
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +38 -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 +176 -0
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +146 -0
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +73 -0
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +146 -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/ProgressBarAndroidNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +50 -0
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +113 -0
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +33 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +581 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +21 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +140 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +222 -0
- package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +138 -0
- package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +21 -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 +86 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +47 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1005 -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/Touchable.d.ts +257 -0
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +51 -0
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +192 -0
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +35 -0
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
- package/types_generated/Libraries/Components/View/View.d.ts +30 -0
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +415 -0
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +39 -0
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +367 -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 +42 -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 +21 -0
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +71 -0
- package/types_generated/Libraries/Image/Image.d.ts +18 -0
- package/types_generated/Libraries/Image/ImageBackground.d.ts +44 -0
- package/types_generated/Libraries/Image/ImageProps.d.ts +512 -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 +61 -0
- package/types_generated/Libraries/Interaction/InteractionManager.d.ts +117 -0
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +228 -0
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +76 -0
- package/types_generated/Libraries/Linking/Linking.d.ts +68 -0
- package/types_generated/Libraries/Lists/FlatList.d.ts +317 -0
- package/types_generated/Libraries/Lists/SectionList.d.ts +172 -0
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +19 -0
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +19 -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 +29 -0
- package/types_generated/Libraries/Modal/Modal.d.ts +110 -0
- package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
- package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +17 -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 +61 -0
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +129 -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 +323 -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 +73 -0
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +23 -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 +33 -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 +85 -0
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +17 -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 +851 -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 +30 -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 +220 -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 +355 -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 +31 -0
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +27 -0
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +34 -0
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +54 -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 +110 -0
- package/types_generated/Libraries/Utilities/Platform.d.ts +16 -0
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +134 -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 +15 -0
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +15 -0
- package/types_generated/Libraries/Vibration/Vibration.d.ts +29 -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 +184 -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/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +53 -0
- package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +36 -0
- package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +51 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +26 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +37 -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 +92 -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 +33 -0
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +30 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +54 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +129 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +24 -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 +22 -0
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +25 -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/tsconfig.json +3 -0
- package/types_generated/tsconfig.test.json +16 -0
|
@@ -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<<d2a1976ea0d5cd19ca2eb0f425b0ad28>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Image/ImageResizeMode.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* ImageResizeMode defines valid values for different image resizing modes set
|
|
15
|
+
* via the `resizeMode` style property on `<Image>`.
|
|
16
|
+
*/
|
|
17
|
+
export type ImageResizeMode = "center" | "contain" | "cover" | "repeat" | "stretch" | "none";
|
|
@@ -0,0 +1,94 @@
|
|
|
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<<0dc503edc33fdb75bdf3f12b3e173f48>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Image/ImageSource.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* This type is intentionally inexact in order to permit call sites that supply
|
|
15
|
+
* extra properties.
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageURISource {
|
|
18
|
+
/**
|
|
19
|
+
* `uri` is a string representing the resource identifier for the image, which
|
|
20
|
+
* could be an http address, a local file path, or the name of a static image
|
|
21
|
+
* resource (which should be wrapped in the `require('./path/to/image.png')`
|
|
22
|
+
* function).
|
|
23
|
+
*/
|
|
24
|
+
readonly uri?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* `bundle` is the iOS asset bundle which the image is included in. This
|
|
27
|
+
* will default to [NSBundle mainBundle] if not set.
|
|
28
|
+
* @platform ios
|
|
29
|
+
*/
|
|
30
|
+
readonly bundle?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* `method` is the HTTP Method to use. Defaults to GET if not specified.
|
|
33
|
+
*/
|
|
34
|
+
readonly method?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* `headers` is an object representing the HTTP headers to send along with the
|
|
37
|
+
* request for a remote image.
|
|
38
|
+
*/
|
|
39
|
+
readonly headers?: {
|
|
40
|
+
[$$Key$$: string]: string;
|
|
41
|
+
} | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* `body` is the HTTP body to send with the request. This must be a valid
|
|
44
|
+
* UTF-8 string, and will be sent exactly as specified, with no
|
|
45
|
+
* additional encoding (e.g. URL-escaping or base64) applied.
|
|
46
|
+
*/
|
|
47
|
+
readonly body?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* `cache` determines how the requests handles potentially cached
|
|
50
|
+
* responses.
|
|
51
|
+
*
|
|
52
|
+
* - `default`: Use the native platforms default strategy. `useProtocolCachePolicy` on iOS.
|
|
53
|
+
*
|
|
54
|
+
* - `reload`: The data for the URL will be loaded from the originating source.
|
|
55
|
+
* No existing cache data should be used to satisfy a URL load request.
|
|
56
|
+
*
|
|
57
|
+
* - `force-cache`: The existing cached data will be used to satisfy the request,
|
|
58
|
+
* regardless of its age or expiration date. If there is no existing data in the cache
|
|
59
|
+
* corresponding the request, the data is loaded from the originating source.
|
|
60
|
+
*
|
|
61
|
+
* - `only-if-cached`: The existing cache data will be used to satisfy a request, regardless of
|
|
62
|
+
* its age or expiration date. If there is no existing data in the cache corresponding
|
|
63
|
+
* to a URL load request, no attempt is made to load the data from the originating source,
|
|
64
|
+
* and the load is considered to have failed.
|
|
65
|
+
*/
|
|
66
|
+
readonly cache?: ("default" | "reload" | "force-cache" | "only-if-cached") | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* `width` and `height` can be specified if known at build time, in which case
|
|
69
|
+
* these will be used to set the default `<Image/>` component dimensions.
|
|
70
|
+
*/
|
|
71
|
+
readonly width?: number | undefined;
|
|
72
|
+
readonly height?: number | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* `scale` is used to indicate the scale factor of the image. Defaults to 1.0 if
|
|
75
|
+
* unspecified, meaning that one image pixel equates to one display point / DIP.
|
|
76
|
+
*/
|
|
77
|
+
readonly scale?: number | undefined;
|
|
78
|
+
}
|
|
79
|
+
export type ImageRequireSource = number;
|
|
80
|
+
export type ImageSource = ImageRequireSource | ImageURISource | ReadonlyArray<ImageURISource>;
|
|
81
|
+
type ImageSourceProperties = {
|
|
82
|
+
body?: string | undefined;
|
|
83
|
+
bundle?: string | undefined;
|
|
84
|
+
cache?: ("default" | "reload" | "force-cache" | "only-if-cached") | undefined;
|
|
85
|
+
headers?: {
|
|
86
|
+
[$$Key$$: string]: string;
|
|
87
|
+
} | undefined;
|
|
88
|
+
height?: number | undefined;
|
|
89
|
+
method?: string | undefined;
|
|
90
|
+
scale?: number | undefined;
|
|
91
|
+
uri?: string | undefined;
|
|
92
|
+
width?: number | undefined;
|
|
93
|
+
};
|
|
94
|
+
export declare function getImageSourceProperties(imageSource: ImageURISource): Readonly<ImageSourceProperties>;
|
|
@@ -0,0 +1,61 @@
|
|
|
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<<be5e5f8ed460e8f99fe3ac0930ab4e78>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Image/ImageTypes.flow.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { HostInstance } from "../..";
|
|
14
|
+
import type { RootTag } from "../Types/RootTagTypes";
|
|
15
|
+
import type { ResolvedAssetSource } from "./AssetSourceResolver";
|
|
16
|
+
import type { ImageProps as ImagePropsType } from "./ImageProps";
|
|
17
|
+
import type { ImageSource } from "./ImageSource";
|
|
18
|
+
import * as React from "react";
|
|
19
|
+
export type ImageSize = {
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
23
|
+
export type ImageResolvedAssetSource = ResolvedAssetSource;
|
|
24
|
+
type ImageComponentStaticsIOS = Readonly<{
|
|
25
|
+
getSize(uri: string): Promise<ImageSize>;
|
|
26
|
+
getSize(uri: string, success: (width: number, height: number) => void, failure?: (error: unknown) => void): void;
|
|
27
|
+
getSizeWithHeaders(uri: string, headers: {
|
|
28
|
+
[$$Key$$: string]: string;
|
|
29
|
+
}): Promise<ImageSize>;
|
|
30
|
+
getSizeWithHeaders(uri: string, headers: {
|
|
31
|
+
[$$Key$$: string]: string;
|
|
32
|
+
}, success: (width: number, height: number) => void, failure?: (error: unknown) => void): void;
|
|
33
|
+
prefetch(url: string): Promise<boolean>;
|
|
34
|
+
prefetchWithMetadata(url: string, queryRootName: string, rootTag?: RootTag | undefined): Promise<boolean>;
|
|
35
|
+
queryCache(urls: Array<string>): Promise<{
|
|
36
|
+
[url: string]: "memory" | "disk" | "disk/memory";
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* @see https://reactnative.dev/docs/image#resolveassetsource
|
|
40
|
+
*/
|
|
41
|
+
resolveAssetSource(source: ImageSource): ImageResolvedAssetSource | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
type ImageComponentStaticsAndroid = Readonly<Omit<ImageComponentStaticsIOS, keyof {
|
|
44
|
+
abortPrefetch(requestId: number): void;
|
|
45
|
+
}> & {
|
|
46
|
+
abortPrefetch(requestId: number): void;
|
|
47
|
+
}>;
|
|
48
|
+
export type AbstractImageAndroid = (props: Omit<ImagePropsType, keyof {
|
|
49
|
+
ref?: React.Ref<HostInstance>;
|
|
50
|
+
}> & {
|
|
51
|
+
ref?: React.Ref<HostInstance>;
|
|
52
|
+
}) => React.ReactNode;
|
|
53
|
+
export type ImageAndroid = AbstractImageAndroid & ImageComponentStaticsAndroid;
|
|
54
|
+
export type AbstractImageIOS = (props: Omit<ImagePropsType, keyof {
|
|
55
|
+
ref?: React.Ref<HostInstance>;
|
|
56
|
+
}> & {
|
|
57
|
+
ref?: React.Ref<HostInstance>;
|
|
58
|
+
}) => React.ReactNode;
|
|
59
|
+
export type ImageIOS = AbstractImageIOS & ImageComponentStaticsIOS;
|
|
60
|
+
export type ImageType = ImageIOS | ImageAndroid;
|
|
61
|
+
export type { ImageProps } from "./ImageProps";
|
|
@@ -0,0 +1,117 @@
|
|
|
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<<25d4684e56604de035c6bb597d9e14cb>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Interaction/InteractionManager.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { EventSubscription } from "../vendor/emitter/EventEmitter";
|
|
14
|
+
export type SimpleTask = {
|
|
15
|
+
name: string;
|
|
16
|
+
run: () => void;
|
|
17
|
+
};
|
|
18
|
+
export type PromiseTask = {
|
|
19
|
+
name: string;
|
|
20
|
+
gen: () => Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export type Task = SimpleTask | PromiseTask | (() => void);
|
|
23
|
+
export type Handle = number;
|
|
24
|
+
declare const InteractionManagerStub: {
|
|
25
|
+
Events: {
|
|
26
|
+
interactionStart: "interactionStart";
|
|
27
|
+
interactionComplete: "interactionComplete";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Schedule a function to run after all interactions have completed. Returns a cancellable
|
|
31
|
+
* "promise".
|
|
32
|
+
*
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
35
|
+
runAfterInteractions(task: null | undefined | Task): {
|
|
36
|
+
then: <U>(onFulfill?: (($$PARAM_0$$: void) => (Promise<U> | U) | undefined) | undefined, onReject?: ((error: unknown) => (Promise<U> | U) | undefined) | undefined) => Promise<U>;
|
|
37
|
+
cancel: () => void;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Notify manager that an interaction has started.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated
|
|
43
|
+
*/
|
|
44
|
+
createInteractionHandle(): Handle;
|
|
45
|
+
/**
|
|
46
|
+
* Notify manager that an interaction has completed.
|
|
47
|
+
*
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
50
|
+
clearInteractionHandle(handle: Handle): void;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
*/
|
|
54
|
+
addListener(eventType: string, listener: (...args: any) => unknown, context: unknown): EventSubscription;
|
|
55
|
+
/**
|
|
56
|
+
* A positive number will use setTimeout to schedule any tasks after the
|
|
57
|
+
* eventLoopRunningTime hits the deadline value, otherwise all tasks will be
|
|
58
|
+
* executed in one setImmediate batch (default).
|
|
59
|
+
*
|
|
60
|
+
* @deprecated
|
|
61
|
+
*/
|
|
62
|
+
setDeadline(deadline: number): void;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* InteractionManager allows long-running work to be scheduled after any
|
|
66
|
+
* interactions/animations have completed. In particular, this allows JavaScript
|
|
67
|
+
* animations to run smoothly.
|
|
68
|
+
*
|
|
69
|
+
* Applications can schedule tasks to run after interactions with the following:
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
* InteractionManager.runAfterInteractions(() => {
|
|
73
|
+
* // ...long-running synchronous task...
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* Compare this to other scheduling alternatives:
|
|
78
|
+
*
|
|
79
|
+
* - requestAnimationFrame(): for code that animates a view over time.
|
|
80
|
+
* - setImmediate/setTimeout(): run code later, note this may delay animations.
|
|
81
|
+
* - runAfterInteractions(): run code later, without delaying active animations.
|
|
82
|
+
*
|
|
83
|
+
* The touch handling system considers one or more active touches to be an
|
|
84
|
+
* 'interaction' and will delay `runAfterInteractions()` callbacks until all
|
|
85
|
+
* touches have ended or been cancelled.
|
|
86
|
+
*
|
|
87
|
+
* InteractionManager also allows applications to register animations by
|
|
88
|
+
* creating an interaction 'handle' on animation start, and clearing it upon
|
|
89
|
+
* completion:
|
|
90
|
+
*
|
|
91
|
+
* ```
|
|
92
|
+
* var handle = InteractionManager.createInteractionHandle();
|
|
93
|
+
* // run animation... (`runAfterInteractions` tasks are queued)
|
|
94
|
+
* // later, on animation completion:
|
|
95
|
+
* InteractionManager.clearInteractionHandle(handle);
|
|
96
|
+
* // queued tasks run if all handles were cleared
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* `runAfterInteractions` takes either a plain callback function, or a
|
|
100
|
+
* `PromiseTask` object with a `gen` method that returns a `Promise`. If a
|
|
101
|
+
* `PromiseTask` is supplied, then it is fully resolved (including asynchronous
|
|
102
|
+
* dependencies that also schedule more tasks via `runAfterInteractions`) before
|
|
103
|
+
* starting on the next task that might have been queued up synchronously
|
|
104
|
+
* earlier.
|
|
105
|
+
*
|
|
106
|
+
* By default, queued tasks are executed together in a loop in one
|
|
107
|
+
* `setImmediate` batch. If `setDeadline` is called with a positive number, then
|
|
108
|
+
* tasks will only be executed until the deadline (in terms of js event loop run
|
|
109
|
+
* time) approaches, at which point execution will yield via setTimeout,
|
|
110
|
+
* allowing events such as touches to start interactions and block queued tasks
|
|
111
|
+
* from executing, making apps more responsive.
|
|
112
|
+
*
|
|
113
|
+
* @deprecated
|
|
114
|
+
*/
|
|
115
|
+
declare const $$InteractionManager: typeof InteractionManagerStub;
|
|
116
|
+
declare type $$InteractionManager = typeof $$InteractionManager;
|
|
117
|
+
export default $$InteractionManager;
|
|
@@ -0,0 +1,228 @@
|
|
|
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<<d55e74e2efd5ee21a5a6947b85b1c69f>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Interaction/PanResponder.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { GestureResponderEvent } from "../Types/CoreEventTypes";
|
|
14
|
+
/**
|
|
15
|
+
* `PanResponder` reconciles several touches into a single gesture. It makes
|
|
16
|
+
* single-touch gestures resilient to extra touches, and can be used to
|
|
17
|
+
* recognize simple multi-touch gestures.
|
|
18
|
+
*
|
|
19
|
+
* It provides a predictable wrapper of the responder handlers provided by the
|
|
20
|
+
* [gesture responder system](docs/gesture-responder-system.html).
|
|
21
|
+
* For each handler, it provides a new `gestureState` object alongside the
|
|
22
|
+
* native event object:
|
|
23
|
+
*
|
|
24
|
+
* ```
|
|
25
|
+
* onPanResponderMove: (event, gestureState) => {}
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* A native event is a synthetic touch event with the following form:
|
|
29
|
+
*
|
|
30
|
+
* - `nativeEvent`
|
|
31
|
+
* + `changedTouches` - Array of all touch events that have changed since the last event
|
|
32
|
+
* + `identifier` - The ID of the touch
|
|
33
|
+
* + `locationX` - The X position of the touch, relative to the element
|
|
34
|
+
* + `locationY` - The Y position of the touch, relative to the element
|
|
35
|
+
* + `pageX` - The X position of the touch, relative to the root element
|
|
36
|
+
* + `pageY` - The Y position of the touch, relative to the root element
|
|
37
|
+
* + `target` - The node id of the element receiving the touch event
|
|
38
|
+
* + `timestamp` - A time identifier for the touch, useful for velocity calculation
|
|
39
|
+
* + `touches` - Array of all current touches on the screen
|
|
40
|
+
*
|
|
41
|
+
* A `gestureState` object has the following:
|
|
42
|
+
*
|
|
43
|
+
* - `stateID` - ID of the gestureState- persisted as long as there at least
|
|
44
|
+
* one touch on screen
|
|
45
|
+
* - `moveX` - the latest screen coordinates of the recently-moved touch
|
|
46
|
+
* - `moveY` - the latest screen coordinates of the recently-moved touch
|
|
47
|
+
* - `x0` - the screen coordinates of the responder grant
|
|
48
|
+
* - `y0` - the screen coordinates of the responder grant
|
|
49
|
+
* - `dx` - accumulated distance of the gesture since the touch started
|
|
50
|
+
* - `dy` - accumulated distance of the gesture since the touch started
|
|
51
|
+
* - `vx` - current velocity of the gesture
|
|
52
|
+
* - `vy` - current velocity of the gesture
|
|
53
|
+
* - `numberActiveTouches` - Number of touches currently on screen
|
|
54
|
+
*
|
|
55
|
+
* ### Basic Usage
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
* componentWillMount: function() {
|
|
59
|
+
* this._panResponder = PanResponder.create({
|
|
60
|
+
* // Ask to be the responder:
|
|
61
|
+
* onStartShouldSetPanResponder: (evt, gestureState) => true,
|
|
62
|
+
* onStartShouldSetPanResponderCapture: (evt, gestureState) => true,
|
|
63
|
+
* onMoveShouldSetPanResponder: (evt, gestureState) => true,
|
|
64
|
+
* onMoveShouldSetPanResponderCapture: (evt, gestureState) => true,
|
|
65
|
+
*
|
|
66
|
+
* onPanResponderGrant: (evt, gestureState) => {
|
|
67
|
+
* // The gesture has started. Show visual feedback so the user knows
|
|
68
|
+
* // what is happening!
|
|
69
|
+
*
|
|
70
|
+
* // gestureState.d{x,y} will be set to zero now
|
|
71
|
+
* },
|
|
72
|
+
* onPanResponderMove: (evt, gestureState) => {
|
|
73
|
+
* // The most recent move distance is gestureState.move{X,Y}
|
|
74
|
+
*
|
|
75
|
+
* // The accumulated gesture distance since becoming responder is
|
|
76
|
+
* // gestureState.d{x,y}
|
|
77
|
+
* },
|
|
78
|
+
* onPanResponderTerminationRequest: (evt, gestureState) => true,
|
|
79
|
+
* onPanResponderRelease: (evt, gestureState) => {
|
|
80
|
+
* // The user has released all touches while this view is the
|
|
81
|
+
* // responder. This typically means a gesture has succeeded
|
|
82
|
+
* },
|
|
83
|
+
* onPanResponderTerminate: (evt, gestureState) => {
|
|
84
|
+
* // Another component has become the responder, so this gesture
|
|
85
|
+
* // should be cancelled
|
|
86
|
+
* },
|
|
87
|
+
* onShouldBlockNativeResponder: (evt, gestureState) => {
|
|
88
|
+
* // Returns whether this component should block native components from becoming the JS
|
|
89
|
+
* // responder. Returns true by default. Is currently only supported on android.
|
|
90
|
+
* return true;
|
|
91
|
+
* },
|
|
92
|
+
* });
|
|
93
|
+
* },
|
|
94
|
+
*
|
|
95
|
+
* render: function() {
|
|
96
|
+
* return (
|
|
97
|
+
* <View {...this._panResponder.panHandlers} />
|
|
98
|
+
* );
|
|
99
|
+
* },
|
|
100
|
+
*
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* ### Working Example
|
|
104
|
+
*
|
|
105
|
+
* To see it in action, try the
|
|
106
|
+
* [PanResponder example in RNTester](https://github.com/react/react-native/blob/HEAD/packages/rn-tester/js/examples/PanResponder/PanResponderExample.js)
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
export type PanResponderGestureState = {
|
|
110
|
+
/**
|
|
111
|
+
* ID of the gestureState - persisted as long as there at least one touch on screen
|
|
112
|
+
*/
|
|
113
|
+
stateID: number;
|
|
114
|
+
/**
|
|
115
|
+
* The latest screen coordinates of the recently-moved touch
|
|
116
|
+
*/
|
|
117
|
+
moveX: number;
|
|
118
|
+
/**
|
|
119
|
+
* The latest screen coordinates of the recently-moved touch
|
|
120
|
+
*/
|
|
121
|
+
moveY: number;
|
|
122
|
+
/**
|
|
123
|
+
* The screen coordinates of the responder grant
|
|
124
|
+
*/
|
|
125
|
+
x0: number;
|
|
126
|
+
/**
|
|
127
|
+
* The screen coordinates of the responder grant
|
|
128
|
+
*/
|
|
129
|
+
y0: number;
|
|
130
|
+
/**
|
|
131
|
+
* Accumulated distance of the gesture since the touch started
|
|
132
|
+
*/
|
|
133
|
+
dx: number;
|
|
134
|
+
/**
|
|
135
|
+
* Accumulated distance of the gesture since the touch started
|
|
136
|
+
*/
|
|
137
|
+
dy: number;
|
|
138
|
+
/**
|
|
139
|
+
* Current velocity of the gesture
|
|
140
|
+
*/
|
|
141
|
+
vx: number;
|
|
142
|
+
/**
|
|
143
|
+
* Current velocity of the gesture
|
|
144
|
+
*/
|
|
145
|
+
vy: number;
|
|
146
|
+
/**
|
|
147
|
+
* Number of touches currently on screen
|
|
148
|
+
*/
|
|
149
|
+
numberActiveTouches: number;
|
|
150
|
+
};
|
|
151
|
+
type ActiveCallback = (event: GestureResponderEvent, gestureState: PanResponderGestureState) => boolean;
|
|
152
|
+
type PassiveCallback = (event: GestureResponderEvent, gestureState: PanResponderGestureState) => unknown;
|
|
153
|
+
export type GestureResponderHandlerMethods = {
|
|
154
|
+
onMoveShouldSetResponder: (event: GestureResponderEvent) => boolean;
|
|
155
|
+
onMoveShouldSetResponderCapture: (event: GestureResponderEvent) => boolean;
|
|
156
|
+
onResponderEnd: (event: GestureResponderEvent) => void;
|
|
157
|
+
onResponderGrant: (event: GestureResponderEvent) => boolean;
|
|
158
|
+
onResponderMove: (event: GestureResponderEvent) => void;
|
|
159
|
+
onResponderReject: (event: GestureResponderEvent) => void;
|
|
160
|
+
onResponderRelease: (event: GestureResponderEvent) => void;
|
|
161
|
+
onResponderStart: (event: GestureResponderEvent) => void;
|
|
162
|
+
onResponderTerminate: (event: GestureResponderEvent) => void;
|
|
163
|
+
onResponderTerminationRequest: (event: GestureResponderEvent) => boolean;
|
|
164
|
+
onStartShouldSetResponder: (event: GestureResponderEvent) => boolean;
|
|
165
|
+
onStartShouldSetResponderCapture: (event: GestureResponderEvent) => boolean;
|
|
166
|
+
};
|
|
167
|
+
export type PanResponderCallbacks = Readonly<{
|
|
168
|
+
onMoveShouldSetPanResponder?: ActiveCallback | undefined;
|
|
169
|
+
onMoveShouldSetPanResponderCapture?: ActiveCallback | undefined;
|
|
170
|
+
onStartShouldSetPanResponder?: ActiveCallback | undefined;
|
|
171
|
+
onStartShouldSetPanResponderCapture?: ActiveCallback | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* The body of `onResponderGrant` returns a bool, but the vast majority of
|
|
174
|
+
* callsites return void and this TODO notice is found in it:
|
|
175
|
+
* TODO: t7467124 investigate if this can be removed
|
|
176
|
+
*/
|
|
177
|
+
onPanResponderGrant?: (PassiveCallback | ActiveCallback) | undefined;
|
|
178
|
+
onPanResponderReject?: PassiveCallback | undefined;
|
|
179
|
+
onPanResponderStart?: PassiveCallback | undefined;
|
|
180
|
+
onPanResponderEnd?: PassiveCallback | undefined;
|
|
181
|
+
onPanResponderRelease?: PassiveCallback | undefined;
|
|
182
|
+
onPanResponderMove?: PassiveCallback | undefined;
|
|
183
|
+
onPanResponderTerminate?: PassiveCallback | undefined;
|
|
184
|
+
onPanResponderTerminationRequest?: ActiveCallback | undefined;
|
|
185
|
+
onShouldBlockNativeResponder?: ActiveCallback | undefined;
|
|
186
|
+
}>;
|
|
187
|
+
declare const PanResponder: {
|
|
188
|
+
/**
|
|
189
|
+
* @param {object} config Enhanced versions of all of the responder callbacks
|
|
190
|
+
* that provide not only the typical `ResponderSyntheticEvent`, but also the
|
|
191
|
+
* `PanResponder` gesture state. Simply replace the word `Responder` with
|
|
192
|
+
* `PanResponder` in each of the typical `onResponder*` callbacks. For
|
|
193
|
+
* example, the `config` object would look like:
|
|
194
|
+
*
|
|
195
|
+
* - `onMoveShouldSetPanResponder: (e, gestureState) => {...}`
|
|
196
|
+
* - `onMoveShouldSetPanResponderCapture: (e, gestureState) => {...}`
|
|
197
|
+
* - `onStartShouldSetPanResponder: (e, gestureState) => {...}`
|
|
198
|
+
* - `onStartShouldSetPanResponderCapture: (e, gestureState) => {...}`
|
|
199
|
+
* - `onPanResponderReject: (e, gestureState) => {...}`
|
|
200
|
+
* - `onPanResponderGrant: (e, gestureState) => {...}`
|
|
201
|
+
* - `onPanResponderStart: (e, gestureState) => {...}`
|
|
202
|
+
* - `onPanResponderEnd: (e, gestureState) => {...}`
|
|
203
|
+
* - `onPanResponderRelease: (e, gestureState) => {...}`
|
|
204
|
+
* - `onPanResponderMove: (e, gestureState) => {...}`
|
|
205
|
+
* - `onPanResponderTerminate: (e, gestureState) => {...}`
|
|
206
|
+
* - `onPanResponderTerminationRequest: (e, gestureState) => {...}`
|
|
207
|
+
* - `onShouldBlockNativeResponder: (e, gestureState) => {...}`
|
|
208
|
+
*
|
|
209
|
+
* In general, for events that have capture equivalents, we update the
|
|
210
|
+
* gestureState once in the capture phase and can use it in the bubble phase
|
|
211
|
+
* as well.
|
|
212
|
+
*
|
|
213
|
+
* Be careful with onStartShould* callbacks. They only reflect updated
|
|
214
|
+
* `gestureState` for start/end events that bubble/capture to the Node.
|
|
215
|
+
* Once the node is the responder, you can rely on every start/end event
|
|
216
|
+
* being processed by the gesture and `gestureState` being updated
|
|
217
|
+
* accordingly. (numberActiveTouches) may not be totally accurate unless you
|
|
218
|
+
* are the responder.
|
|
219
|
+
*/
|
|
220
|
+
create(config: PanResponderCallbacks): {
|
|
221
|
+
getInteractionHandle: () => number | undefined;
|
|
222
|
+
panHandlers: GestureResponderHandlerMethods;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
export type PanResponderInstance = ReturnType<(typeof PanResponder)["create"]>;
|
|
226
|
+
declare const $$PanResponder: typeof PanResponder;
|
|
227
|
+
declare type $$PanResponder = typeof $$PanResponder;
|
|
228
|
+
export default $$PanResponder;
|
|
@@ -0,0 +1,76 @@
|
|
|
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<<c16cf115fa244072ea249a1a16dd7ada>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { LayoutAnimationConfig, LayoutAnimationProperty, LayoutAnimationType } from "../Renderer/shims/ReactNativeTypes";
|
|
14
|
+
export type { LayoutAnimationType, LayoutAnimationProperty, LayoutAnimationAnimationConfig as LayoutAnimationAnim } from "../Renderer/shims/ReactNativeTypes";
|
|
15
|
+
export type { LayoutAnimationConfig } from "../Renderer/shims/ReactNativeTypes";
|
|
16
|
+
export type LayoutAnimationTypes = Readonly<{ [type in LayoutAnimationType]: type }>;
|
|
17
|
+
export type LayoutAnimationProperties = Readonly<{ [prop in LayoutAnimationProperty]: prop }>;
|
|
18
|
+
type OnAnimationDidEndCallback = () => void;
|
|
19
|
+
type OnAnimationDidFailCallback = () => void;
|
|
20
|
+
declare function setLayoutAnimationEnabled(value: boolean): void;
|
|
21
|
+
/**
|
|
22
|
+
* Configures the next commit to be animated.
|
|
23
|
+
*
|
|
24
|
+
* onAnimationDidEnd is guaranteed to be called when the animation completes.
|
|
25
|
+
* onAnimationDidFail is *never* called in the classic, pre-Fabric renderer,
|
|
26
|
+
* and never has been. In the new renderer (Fabric) it is called only if configuration
|
|
27
|
+
* parsing fails.
|
|
28
|
+
*/
|
|
29
|
+
declare function configureNext(config: LayoutAnimationConfig, onAnimationDidEnd?: OnAnimationDidEndCallback, onAnimationDidFail?: OnAnimationDidFailCallback): void;
|
|
30
|
+
declare function createLayoutAnimation(duration: number, type?: LayoutAnimationType, property?: LayoutAnimationProperty): LayoutAnimationConfig;
|
|
31
|
+
declare const Presets: {
|
|
32
|
+
easeInEaseOut: LayoutAnimationConfig;
|
|
33
|
+
linear: LayoutAnimationConfig;
|
|
34
|
+
spring: LayoutAnimationConfig;
|
|
35
|
+
};
|
|
36
|
+
declare const LayoutAnimation: {
|
|
37
|
+
/**
|
|
38
|
+
* Schedules an animation to happen on the next layout.
|
|
39
|
+
*
|
|
40
|
+
* @param config Specifies animation properties:
|
|
41
|
+
*
|
|
42
|
+
* - `duration` in milliseconds
|
|
43
|
+
* - `create`, `AnimationConfig` for animating in new views
|
|
44
|
+
* - `update`, `AnimationConfig` for animating views that have been updated
|
|
45
|
+
*
|
|
46
|
+
* @param onAnimationDidEnd Called when the animation finished.
|
|
47
|
+
* Only supported on iOS.
|
|
48
|
+
* @param onError Called on error. Only supported on iOS.
|
|
49
|
+
*/
|
|
50
|
+
configureNext: typeof configureNext;
|
|
51
|
+
/**
|
|
52
|
+
* Helper for creating a config for `configureNext`.
|
|
53
|
+
*/
|
|
54
|
+
create: typeof createLayoutAnimation;
|
|
55
|
+
Types: LayoutAnimationTypes;
|
|
56
|
+
Properties: LayoutAnimationProperties;
|
|
57
|
+
checkConfig(...args: Array<unknown>): void;
|
|
58
|
+
Presets: typeof Presets;
|
|
59
|
+
easeInEaseOut: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void;
|
|
60
|
+
linear: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void;
|
|
61
|
+
spring: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void;
|
|
62
|
+
setEnabled: typeof setLayoutAnimationEnabled;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Automatically animates views to their new positions when the
|
|
66
|
+
* next layout happens.
|
|
67
|
+
*
|
|
68
|
+
* A common way to use this API is to call it before calling `setState`.
|
|
69
|
+
*
|
|
70
|
+
* Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:
|
|
71
|
+
*
|
|
72
|
+
* UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
|
|
73
|
+
*/
|
|
74
|
+
declare const $$LayoutAnimation: typeof LayoutAnimation;
|
|
75
|
+
declare type $$LayoutAnimation = typeof $$LayoutAnimation;
|
|
76
|
+
export default $$LayoutAnimation;
|
|
@@ -0,0 +1,68 @@
|
|
|
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<<cfe12ab4e47faca1a7b8a598363e1b66>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/Linking/Linking.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { EventSubscription } from "../vendor/emitter/EventEmitter";
|
|
14
|
+
import NativeEventEmitter from "../EventEmitter/NativeEventEmitter";
|
|
15
|
+
type LinkingEventDefinitions = {
|
|
16
|
+
url: [{
|
|
17
|
+
url: string;
|
|
18
|
+
}];
|
|
19
|
+
};
|
|
20
|
+
declare class LinkingImpl extends NativeEventEmitter<LinkingEventDefinitions> {
|
|
21
|
+
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* Add a handler to Linking changes by listening to the `url` event type
|
|
24
|
+
* and providing the handler
|
|
25
|
+
*
|
|
26
|
+
* See https://reactnative.dev/docs/linking#addeventlistener
|
|
27
|
+
*/
|
|
28
|
+
addEventListener<K extends keyof LinkingEventDefinitions>(eventType: K, listener: (...$$REST$$: LinkingEventDefinitions[K]) => unknown): EventSubscription;
|
|
29
|
+
/**
|
|
30
|
+
* Try to open the given `url` with any of the installed apps.
|
|
31
|
+
*
|
|
32
|
+
* See https://reactnative.dev/docs/linking#openurl
|
|
33
|
+
*/
|
|
34
|
+
openURL(url: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Determine whether or not an installed app can handle a given URL.
|
|
37
|
+
*
|
|
38
|
+
* See https://reactnative.dev/docs/linking#canopenurl
|
|
39
|
+
*/
|
|
40
|
+
canOpenURL(url: string): Promise<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* Open app settings.
|
|
43
|
+
*
|
|
44
|
+
* See https://reactnative.dev/docs/linking#opensettings
|
|
45
|
+
*/
|
|
46
|
+
openSettings(): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* If the app launch was triggered by an app link,
|
|
49
|
+
* it will give the link url, otherwise it will give `null`
|
|
50
|
+
*
|
|
51
|
+
* See https://reactnative.dev/docs/linking#getinitialurl
|
|
52
|
+
*/
|
|
53
|
+
getInitialURL(): Promise<null | undefined | string>;
|
|
54
|
+
sendIntent(action: string, extras?: Array<{
|
|
55
|
+
key: string;
|
|
56
|
+
value: string | number | boolean;
|
|
57
|
+
}>): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
declare const Linking: LinkingImpl;
|
|
60
|
+
/**
|
|
61
|
+
* `Linking` gives you a general interface to interact with both incoming
|
|
62
|
+
* and outgoing app links.
|
|
63
|
+
*
|
|
64
|
+
* See https://reactnative.dev/docs/linking
|
|
65
|
+
*/
|
|
66
|
+
declare const $$Linking: typeof Linking;
|
|
67
|
+
declare type $$Linking = typeof $$Linking;
|
|
68
|
+
export default $$Linking;
|