diff --git a/packages/react-native/Libraries/Pressability/Pressability.js b/packages/react-native/Libraries/Pressability/Pressability.js index 0be465bec546..6a4ae91fe9f2 100644 --- a/packages/react-native/Libraries/Pressability/Pressability.js +++ b/packages/react-native/Libraries/Pressability/Pressability.js @@ -805,7 +805,7 @@ export default class Pressability { if (typeof this._responderID === 'number') { UIManager.measure(this._responderID, this._measureCallback); } else { - this._responderID.measure(this._measureCallback); + this._responderID.measureAsyncOnUI(this._measureCallback); } } diff --git a/packages/react-native/React/Fabric/Mounting/RCTMountingManager.h b/packages/react-native/React/Fabric/Mounting/RCTMountingManager.h index 70a56433d57b..24e8fe989596 100644 --- a/packages/react-native/React/Fabric/Mounting/RCTMountingManager.h +++ b/packages/react-native/React/Fabric/Mounting/RCTMountingManager.h @@ -7,6 +7,7 @@ #import +#import #import #import #import @@ -69,6 +70,10 @@ NS_ASSUME_NONNULL_BEGIN - (void)synchronouslyUpdateViewOnUIThread:(ReactTag)reactTag changedProps:(folly::dynamic)props componentDescriptor:(const facebook::react::ComponentDescriptor &)componentDescriptor; + +- (void)measureAsyncOnUI:(ReactTag)reactTag + rootView:(UIView *)rootView + callback:(const std::function &)callback; @end NS_ASSUME_NONNULL_END diff --git a/packages/react-native/React/Fabric/Mounting/RCTMountingManager.mm b/packages/react-native/React/Fabric/Mounting/RCTMountingManager.mm index 68662f06d59b..f3f51578aeaa 100644 --- a/packages/react-native/React/Fabric/Mounting/RCTMountingManager.mm +++ b/packages/react-native/React/Fabric/Mounting/RCTMountingManager.mm @@ -347,4 +347,30 @@ - (void)synchronouslyDispatchAccessbilityEventOnUIThread:(ReactTag)reactTag even } } +- (void)measureAsyncOnUI:(ReactTag)reactTag rootView:(UIView*)rootView callback:(const std::function &)callback { + RCTAssertMainQueue(); + + UIView *view = [self->_componentViewRegistry findComponentViewWithTag:reactTag]; + if (!view) { + // this view was probably collapsed out + RCTLogWarn(@"measure cannot find view with tag #%@", reactTag); + callback({}); + return; + } + + // By convention, all coordinates, whether they be touch coordinates, or + // measurement coordinates are with respect to the root view. + CGRect frame = view.frame; + CGRect globalBounds = [view convertRect:view.bounds toView:rootView]; + + callback( + folly::dynamic::array(frame.origin.x, + frame.origin.y, + globalBounds.size.width, + globalBounds.size.height, + globalBounds.origin.x, + globalBounds.origin.y) + ); +} + @end diff --git a/packages/react-native/React/Fabric/RCTScheduler.h b/packages/react-native/React/Fabric/RCTScheduler.h index 8b809580c10c..2d925e70a712 100644 --- a/packages/react-native/React/Fabric/RCTScheduler.h +++ b/packages/react-native/React/Fabric/RCTScheduler.h @@ -45,6 +45,9 @@ NS_ASSUME_NONNULL_BEGIN forShadowView:(const facebook::react::ShadowView &)shadowView; - (void)schedulerDidSynchronouslyUpdateViewOnUIThread:(facebook::react::Tag)reactTag props:(folly::dynamic)props; + +- (void)schedulerMeasureAsyncOnUI:(const facebook::react::ShadowView &)shadowView + callback:(const std::function &)callback; @end /** diff --git a/packages/react-native/React/Fabric/RCTScheduler.mm b/packages/react-native/React/Fabric/RCTScheduler.mm index 9519f18428e4..46e723ad2444 100644 --- a/packages/react-native/React/Fabric/RCTScheduler.mm +++ b/packages/react-native/React/Fabric/RCTScheduler.mm @@ -85,6 +85,11 @@ void schedulerDidUpdateShadowTree(const std::unordered_map // This delegate method is not currently used on iOS. } + void schedulerMeasureAsyncOnUI(const ShadowView& shadowView, const std::function &callback) override { + RCTScheduler *scheduler = (__bridge RCTScheduler *)scheduler_; + [scheduler.delegate schedulerMeasureAsyncOnUI:shadowView callback:callback]; + } + void schedulerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) override { // Does nothing. diff --git a/packages/react-native/React/Fabric/RCTSurfacePresenter.mm b/packages/react-native/React/Fabric/RCTSurfacePresenter.mm index 0e4bbe376463..3bb47854a1c8 100644 --- a/packages/react-native/React/Fabric/RCTSurfacePresenter.mm +++ b/packages/react-native/React/Fabric/RCTSurfacePresenter.mm @@ -424,6 +424,19 @@ - (void)schedulerDidSetIsJSResponder:(BOOL)isJSResponder [_mountingManager setIsJSResponder:isJSResponder blockNativeResponder:blockNativeResponder forShadowView:shadowView]; } +- (void)schedulerMeasureAsyncOnUI:(const facebook::react::ShadowView &)shadowView callback:(const std::function &)callback { + ReactTag tag = shadowView.tag; + SurfaceId surfaceId = shadowView.surfaceId; + RCTFabricSurface *surface = [self surfaceForRootTag:surfaceId]; + + std::function callbackCopy = callback; + RCTExecuteOnMainQueue(^{ + UIView *rootView = surface.view; + [self->_mountingManager measureAsyncOnUI:tag rootView:rootView callback:callbackCopy]; + }); +} + + - (void)addObserver:(id)observer { std::unique_lock lock(_observerListMutex); diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java index ee64131ab187..d0fd349edd12 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java @@ -25,6 +25,7 @@ import android.view.View; import android.view.accessibility.AccessibilityEvent; import androidx.annotation.AnyThread; +import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.UiThread; import androidx.core.view.ViewCompat.FocusDirection; @@ -33,6 +34,7 @@ import com.facebook.infer.annotation.Nullsafe; import com.facebook.infer.annotation.ThreadConfined; import com.facebook.proguard.annotations.DoNotStripAny; +import com.facebook.react.bridge.Callback; import com.facebook.react.bridge.ColorPropConverter; import com.facebook.react.bridge.GuardedRunnable; import com.facebook.react.bridge.LifecycleEventListener; @@ -1398,6 +1400,44 @@ public String toString() { }); } + public void measureAsyncOnUI(int surfaceId, int reactTag, final Callback callback) { + mMountItemDispatcher.addMountItem( + new MountItem() { + @Override + public void execute(@NonNull MountingManager mountingManager) { + int[] mMeasureBuffer = new int[4]; + boolean result = mountingManager.measureAsyncOnUI( + surfaceId, + reactTag, + mMeasureBuffer + ); + + if (!result) { + // TODO: add error handling callback + return; + } + + double x = PixelUtil.toDIPFromPixel(mMeasureBuffer[0]); + double y = PixelUtil.toDIPFromPixel(mMeasureBuffer[1]); + double width = PixelUtil.toDIPFromPixel(mMeasureBuffer[2]); + double height = PixelUtil.toDIPFromPixel(mMeasureBuffer[3]); + + callback.invoke(0, 0, width, height, x, y); + } + + @Override + public int getSurfaceId() { + return surfaceId; + } + + @NonNull + @Override + public String toString() { + return "MEASURE_VIEW"; + } + }); + } + @Override public void profileNextBatch() { // TODO T31905686: Remove this method and add support for multi-threading performance counters diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MeasureAsyncUtil.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MeasureAsyncUtil.kt new file mode 100644 index 000000000000..9680cf5e99e3 --- /dev/null +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MeasureAsyncUtil.kt @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +package com.facebook.react.fabric.mounting + +import android.graphics.RectF +import android.view.View +import android.view.ViewParent + +public object MeasureAsyncUtil { + private val mBoundingBox = RectF() + + /** + * Output buffer will be {x, y, width, height}. + */ + public fun measure(rootView: View, viewToMeasure: View, outputBuffer: IntArray) { + computeBoundingBox(rootView, outputBuffer) + val rootX = outputBuffer[0] + val rootY = outputBuffer[1] + computeBoundingBox(viewToMeasure, outputBuffer) + outputBuffer[0] -= rootX + outputBuffer[1] -= rootY + } + + private fun computeBoundingBox(view: View, outputBuffer: IntArray) { + mBoundingBox.set(0f, 0f, view.width.toFloat(), view.height.toFloat()) + mapRectFromViewToWindowCoords(view, mBoundingBox) + + outputBuffer[0] = Math.round(mBoundingBox.left) + outputBuffer[1] = Math.round(mBoundingBox.top) + outputBuffer[2] = Math.round(mBoundingBox.right - mBoundingBox.left) + outputBuffer[3] = Math.round(mBoundingBox.bottom - mBoundingBox.top) + } + + private fun mapRectFromViewToWindowCoords(view: View, rect: RectF) { + var matrix = view.getMatrix() + if (!matrix.isIdentity) { + matrix.mapRect(rect) + } + + rect.offset(view.left.toFloat(), view.top.toFloat()) + + var parent: ViewParent? = view.parent + while (parent is View) { + val parentView = parent as View + + rect.offset(-parentView.scrollX.toFloat(), -parentView.scrollY.toFloat()) + + matrix = parentView.getMatrix() + if (!matrix.isIdentity) { + matrix.mapRect(rect) + } + + rect.offset(parentView.left.toFloat(), parentView.top.toFloat()) + + parent = parentView.parent + } + } +} diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.kt index 48410a98298a..7825dd16ef6f 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.kt @@ -22,6 +22,7 @@ import com.facebook.react.bridge.WritableMap import com.facebook.react.fabric.events.EventEmitterWrapper import com.facebook.react.fabric.mounting.mountitems.MountItem import com.facebook.react.touch.JSResponderHandler +import com.facebook.react.uimanager.IllegalViewOperationException import com.facebook.react.uimanager.RootViewManager import com.facebook.react.uimanager.ThemedReactContext import com.facebook.react.uimanager.ViewManagerRegistry @@ -327,6 +328,32 @@ internal class MountingManager( attachmentsPositions, ) + @UiThread + @ThreadConfined(ThreadConfined.UI) + fun measureAsyncOnUI( + surfaceId: Int, + reactTag: Int, + outputBuffer: IntArray, + ): Boolean { + val smm = getSurfaceManagerEnforced(surfaceId, "measure") + val view = try { + smm.getView(reactTag) + } catch (ex: IllegalViewOperationException) { + FLog.e(TAG, "Failed to find view for tag: %d. Error: %s", reactTag, ex.message) + return false + } + + val rootView = try { + smm.getView(surfaceId) + } catch (ex: IllegalViewOperationException) { + FLog.e(TAG, "Failed to find root view for surfaceId: %d. Error: %s", surfaceId, ex.message) + return false + } + + MeasureAsyncUtil.measure(rootView, view, outputBuffer) + return true + } + fun dispatchEvent( surfaceId: Int, reactTag: Int, diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.cpp b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.cpp index b82bdab278c2..66436ac6ca0a 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.cpp +++ b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -1260,4 +1261,16 @@ void FabricMountingManager::scheduleReactRevisionMerge(SurfaceId surfaceId) { scheduleReactRevisionMerge(javaUIManager_, surfaceId); } +void FabricMountingManager::measureAsyncOnUI( + const ShadowView& shadowView, + const std::function& callback) { + static auto measureJNI = + JFabricUIManager::javaClassStatic()->getMethod)>( + "measureAsyncOnUI"); + + auto javaCallback = JCxxCallbackImpl::newObjectCxxArgs(callback); + + measureJNI(javaUIManager_, shadowView.surfaceId, shadowView.tag, javaCallback); +} + } // namespace facebook::react diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.h b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.h index 377880b658bb..f1643c1ff271 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.h +++ b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.h @@ -76,6 +76,10 @@ class FabricMountingManager final { void scheduleReactRevisionMerge(SurfaceId surfaceId); + void measureAsyncOnUI( + const ShadowView& shadowView, + const std::function& callback); + private: bool isOnMainThread(); diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp index dfaac96caefc..fad13d1980b0 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp +++ b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp @@ -820,6 +820,17 @@ void FabricUIManagerBinding::schedulerDidClearPendingSnapshots() { } } +void FabricUIManagerBinding::schedulerMeasureAsyncOnUI( + const facebook::react::ShadowView& shadowView, + const std::function& callback) { + auto mountingManager = getMountingManager("schedulerMeasureAsyncOnUI"); + if (!mountingManager) { + return; + } + + mountingManager->measureAsyncOnUI(shadowView, callback); +} + void FabricUIManagerBinding::onAnimationStarted() { auto mountingManager = getMountingManager("onAnimationStarted"); if (!mountingManager) { diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.h b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.h index caf652d2352e..1f2d3d0d7751 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.h +++ b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.h @@ -123,6 +123,10 @@ class FabricUIManagerBinding : public jni::HybridClass, void schedulerDidClearPendingSnapshots() override; + void schedulerMeasureAsyncOnUI( + const ShadowView& shadowView, + const std::function& callback) override; + void setPixelDensity(float pointScaleFactor); void driveCxxAnimations(); diff --git a/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.cpp b/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.cpp index da40ea3b7899..ef7a336b125c 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +++ b/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.cpp @@ -466,6 +466,30 @@ void NativeDOM::measureLayout( onSuccess(rect.x, rect.y, rect.width, rect.height); } +void NativeDOM::measureAsyncOnUI( + jsi::Runtime& rt, + std::shared_ptr shadowNode, + const MeasureAsyncOnUICallback& callback) { + UIManager& uiManager = getUIManagerFromRuntime(rt); + UIManagerDelegate* uiManagerDelegate = uiManager.getDelegate(); + if (uiManagerDelegate == nullptr) { + return; + } + + std::function jsCallback = [callback](const folly::dynamic& args) { + // TODO: can we make the rest accept an AsyncFunction directly? + callback.call( + args.at(0).getDouble(), + args.at(1).getDouble(), + args.at(2).getDouble(), + args.at(3).getDouble(), + args.at(4).getDouble(), + args.at(5).getDouble()); + }; + + uiManagerDelegate->uiManagerMeasureAsyncOnUI(shadowNode, jsCallback); +} + #pragma mark - Legacy direct manipulation APIs (for `ReactNativeElement`). void NativeDOM::setNativeProps( diff --git a/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h b/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h index 19157a9cd9da..4997db892811 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h +++ b/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h @@ -27,6 +27,9 @@ using MeasureInWindowOnSuccessCallback = SyncCallback; +using MeasureAsyncOnUICallback = + AsyncCallback; + class NativeDOM : public NativeDOMCxxSpec { public: NativeDOM(std::shared_ptr jsInvoker); @@ -108,6 +111,11 @@ class NativeDOM : public NativeDOMCxxSpec { jsi::Function onFail, const MeasureLayoutOnSuccessCallback &onSuccess); + void measureAsyncOnUI( + jsi::Runtime& rt, + std::shared_ptr shadowNode, + const MeasureAsyncOnUICallback& callback); + #pragma mark - Legacy direct manipulation APIs (for `ReactNativeElement`). void setNativeProps(jsi::Runtime &rt, std::shared_ptr shadowNode, jsi::Value updatePayload); diff --git a/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp b/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp index 7ea5fc3c782f..86fa4071d27c 100644 --- a/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp +++ b/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp @@ -462,6 +462,15 @@ void Scheduler::uiManagerDidStartSurface(const ShadowTree& shadowTree) { } } +void Scheduler::uiManagerMeasureAsyncOnUI( + const std::shared_ptr& shadowNode, + const std::function& callback) { + if (delegate_ != nullptr) { + auto shadowView = ShadowView(*shadowNode); + delegate_->schedulerMeasureAsyncOnUI(shadowView, callback); + } +} + void Scheduler::reportMount(SurfaceId surfaceId) const { uiManager_->reportMount(surfaceId); } diff --git a/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h b/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h index bd6de832e04d..faa7d48c0b59 100644 --- a/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h +++ b/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h @@ -103,6 +103,9 @@ class Scheduler final : public UIManagerDelegate { void uiManagerDidFinishReactCommit(const ShadowTree &shadowTree) override; void uiManagerDidPromoteReactRevision(const ShadowTree &shadowTree) override; void uiManagerDidStartSurface(const ShadowTree &shadowTree) override; + void uiManagerMeasureAsyncOnUI( + const std::shared_ptr& shadowNode, + const std::function& callback) override; #pragma mark - ContextContainer std::shared_ptr getContextContainer() const; diff --git a/packages/react-native/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h b/packages/react-native/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h index 06d9773e4ba5..80cb0c4e6c33 100644 --- a/packages/react-native/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h +++ b/packages/react-native/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h @@ -71,6 +71,10 @@ class SchedulerDelegate { virtual void schedulerDidSetViewSnapshot(Tag sourceTag, Tag targetTag, SurfaceId surfaceId) = 0; virtual void schedulerDidClearPendingSnapshots() = 0; + virtual void schedulerMeasureAsyncOnUI( + const ShadowView& shadowView, + const std::function& callback) = 0; + virtual ~SchedulerDelegate() noexcept = default; }; diff --git a/packages/react-native/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h b/packages/react-native/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h index 235b1fe34eac..b6aa0cf43356 100644 --- a/packages/react-native/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h +++ b/packages/react-native/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h @@ -79,6 +79,14 @@ class UIManagerDelegate { */ virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr &listener) = 0; + /* + * Measures the layout of the shadow node async on the UI thread using the native layout hierarchy. + * As this has to schedule a call on the UI thread its async. + */ + virtual void uiManagerMeasureAsyncOnUI( + const std::shared_ptr& shadowNode, + const std::function& callback) = 0; + /* * Start surface. */ diff --git a/packages/react-native/ReactCxxPlatform/react/renderer/scheduler/SchedulerDelegateImpl.cpp b/packages/react-native/ReactCxxPlatform/react/renderer/scheduler/SchedulerDelegateImpl.cpp index 9ad1bb1a4f54..ad627f2da2a6 100644 --- a/packages/react-native/ReactCxxPlatform/react/renderer/scheduler/SchedulerDelegateImpl.cpp +++ b/packages/react-native/ReactCxxPlatform/react/renderer/scheduler/SchedulerDelegateImpl.cpp @@ -87,4 +87,10 @@ void SchedulerDelegateImpl::schedulerDidSetViewSnapshot( void SchedulerDelegateImpl::schedulerDidClearPendingSnapshots() {} +void SchedulerDelegateImpl::schedulerMeasureAsyncOnUI( + const ShadowView& /*shadowView*/, + const std::function& /*callback*/) { + // No-op implementation, can be overridden by subclasses if needed +} + } // namespace facebook::react diff --git a/packages/react-native/ReactCxxPlatform/react/renderer/scheduler/SchedulerDelegateImpl.h b/packages/react-native/ReactCxxPlatform/react/renderer/scheduler/SchedulerDelegateImpl.h index 089b64d5731c..8b7db29d6fcd 100644 --- a/packages/react-native/ReactCxxPlatform/react/renderer/scheduler/SchedulerDelegateImpl.h +++ b/packages/react-native/ReactCxxPlatform/react/renderer/scheduler/SchedulerDelegateImpl.h @@ -57,6 +57,10 @@ class SchedulerDelegateImpl : public SchedulerDelegate { void schedulerDidClearPendingSnapshots() override; + void schedulerMeasureAsyncOnUI( + const ShadowView& shadowView, + const std::function& callback) override; + std::shared_ptr mountingManager_; std::shared_ptr uiManager_; }; diff --git a/packages/react-native/ReactNativeApi.d.ts b/packages/react-native/ReactNativeApi.d.ts index 567e2db03e99..edfb4c4fa46f 100644 --- a/packages/react-native/ReactNativeApi.d.ts +++ b/packages/react-native/ReactNativeApi.d.ts @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated SignedSource<> + * @generated SignedSource<<83d37c9442c1d26126bbd235ae17916c>> * * This file was generated by scripts/js-api/build-types/index.js. */ @@ -21,7 +21,80 @@ /* eslint-disable redundant-undefined/redundant-undefined */ +import type { AnimatedComponentType } from "../createAnimatedComponent" +import { AnimatedComponentType as AnimatedComponentType_2 } from "./createAnimatedComponent" +import type { AnimatedProps } from "../createAnimatedComponent" +import { AnimatedProps as AnimatedProps_2 } from "./createAnimatedComponent" +import { BlurEvent } from "./Libraries/Types/CoreEventTypes" +import type { BlurEvent as BlurEvent_2 } from "../../Types/CoreEventTypes" +import type { BlurEvent as BlurEvent_3 } from "../Types/CoreEventTypes" +import { BoxShadowValue } from "./Libraries/StyleSheet/StyleSheetTypes" +import { ColorValue } from "./Libraries/StyleSheet/StyleSheet" +import { ColorValue as ColorValue_2 } from "../../StyleSheet/StyleSheet" +import { ColorValue as ColorValue_3 } from "../StyleSheet/StyleSheet" +import type { ColorValue as ColorValue_4 } from "./StyleSheet" +import createAnimatedComponent from "./createAnimatedComponent" +import { CursorValue } from "./Libraries/StyleSheet/StyleSheetTypes" +import { DimensionValue } from "./Libraries/StyleSheet/StyleSheetTypes" +import { DropShadowValue } from "./Libraries/StyleSheet/StyleSheetTypes" +import { EdgeInsetsValue } from "./Libraries/StyleSheet/StyleSheetTypes" +import { FilterFunction } from "./Libraries/StyleSheet/StyleSheet" +import { FocusEvent } from "./Libraries/Types/CoreEventTypes" +import type { FocusEvent as FocusEvent_2 } from "../../Types/CoreEventTypes" +import type { FocusEvent as FocusEvent_3 } from "../Types/CoreEventTypes" +import { FontVariant } from "./Libraries/StyleSheet/StyleSheet" +import { GestureResponderEvent } from "./Libraries/Types/CoreEventTypes" +import type { GestureResponderEvent as GestureResponderEvent_2 } from "../../Types/CoreEventTypes" +import type { GestureResponderEvent as GestureResponderEvent_3 } from "../Types/CoreEventTypes" +import type HTMLCollection from "../oldstylecollections/HTMLCollection" +import { ImageStyle } from "./Libraries/StyleSheet/StyleSheet" +import type { ImageStyleProp } from "../StyleSheet/StyleSheet" +import { KeyDownEvent } from "./Libraries/Types/CoreEventTypes" +import type { KeyDownEvent as KeyDownEvent_2 } from "../../Types/CoreEventTypes" +import { KeyEvent } from "./Libraries/Types/CoreEventTypes" +import { KeyUpEvent } from "./Libraries/Types/CoreEventTypes" +import type { KeyUpEvent as KeyUpEvent_2 } from "../../Types/CoreEventTypes" +import { LayoutChangeEvent } from "./Libraries/Types/CoreEventTypes" +import type { LayoutChangeEvent as LayoutChangeEvent_2 } from "../../Types/CoreEventTypes" +import type { LayoutChangeEvent as LayoutChangeEvent_3 } from "../Types/CoreEventTypes" +import { LayoutRectangle } from "./Libraries/Types/CoreEventTypes" +import { MouseEvent } from "./Libraries/Types/CoreEventTypes" +import type { MouseEvent as MouseEvent_2 } from "../../Types/CoreEventTypes" +import type { MouseEvent as MouseEvent_3 } from "../Types/CoreEventTypes" +import { NativeColorValue } from "./Libraries/StyleSheet/StyleSheet" +import type { NativeColorValue as NativeColorValue_2 } from "./StyleSheet" +import type { NativeColorValue as NativeColorValue_3 } from "../../StyleSheet/StyleSheetTypes" +import { NativeMouseEvent } from "./Libraries/Types/CoreEventTypes" +import { NativePointerEvent } from "./Libraries/Types/CoreEventTypes" +import { NativeScrollEvent } from "./Libraries/Types/CoreEventTypes" +import { NativeSyntheticEvent } from "./Libraries/Types/CoreEventTypes" +import type { NativeSyntheticEvent as NativeSyntheticEvent_2 } from "../../Types/CoreEventTypes" +import type { NativeSyntheticEvent as NativeSyntheticEvent_3 } from "../Types/CoreEventTypes" +import type { NativeSyntheticEvent as NativeSyntheticEvent_4 } from "./CoreEventTypes" +import { NativeTouchEvent } from "./Libraries/Types/CoreEventTypes" +import { NativeUIEvent } from "./Libraries/Types/CoreEventTypes" +import { OpaqueColorValue } from "./Libraries/StyleSheet/StyleSheet" +import { PointerEvent } from "./Libraries/Types/CoreEventTypes" +import type { PointerEvent as PointerEvent_2 } from "../../Types/CoreEventTypes" +import { PointerEvent as PointerEvent_3 } from "../Types/CoreEventTypes" +import { PointValue } from "./Libraries/StyleSheet/StyleSheetTypes" import * as React from "react" +import { ResponderSyntheticEvent } from "./Libraries/Types/CoreEventTypes" +import { ScrollEvent } from "./Libraries/Types/CoreEventTypes" +import type { ScrollEvent as ScrollEvent_2 } from "../../Types/CoreEventTypes" +import { StyleProp } from "./Libraries/StyleSheet/StyleSheet" +import { default as StyleSheet } from "./Libraries/StyleSheet/StyleSheet" +import { TargetedEvent } from "./Libraries/Types/CoreEventTypes" +import { TextLayoutEvent } from "./Libraries/Types/CoreEventTypes" +import type { TextLayoutEvent as TextLayoutEvent_2 } from "../Types/CoreEventTypes" +import { TextStyle } from "./Libraries/StyleSheet/StyleSheet" +import type { TextStyleProp } from "../StyleSheet/StyleSheet" +import { TextStyleProp as TextStyleProp_2 } from "../../StyleSheet/StyleSheet" +import { TransformsStyle } from "./Libraries/StyleSheet/StyleSheet" +import { ViewStyle } from "./Libraries/StyleSheet/StyleSheet" +import { ViewStyleProp } from "../../StyleSheet/StyleSheet" +import type { ViewStyleProp as ViewStyleProp_2 } from "../StyleSheet/StyleSheet" +import { WithAnimatedValue } from "./createAnimatedComponent" declare const $$AnimatedFlatList: ( props: Omit>, "ref"> & { ref?: React.Ref> @@ -38,7 +111,7 @@ declare const $$AnimatedImplementation: { add: typeof addImpl attachNativeEvent: typeof attachNativeEventImpl Color: typeof AnimatedColor_default - createAnimatedComponent: typeof createAnimatedComponent_default + createAnimatedComponent: typeof createAnimatedComponent decay: typeof decayImpl delay: typeof delayImpl diffClamp: typeof diffClampImpl @@ -75,7 +148,6 @@ declare const $$AnimatedView: AnimatedComponentType< ViewProps, React.ComponentRef > -declare const $$flattenStyle: typeof flattenStyle_default declare const $$index: { keyExtractor: typeof keyExtractor get FillRateHelper(): FillRateHelperT @@ -87,7 +159,6 @@ declare const $$index: { declare const $$NativeDeviceInfo: typeof NativeDeviceInfo_default declare const $$ReactFabric: typeof ReactFabric_default declare const $$ScrollViewContext: typeof ScrollViewContext_default -declare const absoluteFill: AbsoluteFillStyle declare const AccessibilityInfo: typeof AccessibilityInfo_default declare const AccessibilityInfo_default: { addEventListener( @@ -166,11 +237,7 @@ declare const Clipboard: { } declare const codegenNativeCommands: typeof codegenNativeCommands_default declare const codegenNativeComponent: typeof codegenNativeComponent_default -declare const compose: typeof composeStyles_default -declare const create: ( - obj: S & ____Styles_Internal, -) => Readonly -declare const createAnimatedComponent: typeof $$AnimatedImplementation.createAnimatedComponent +declare const createAnimatedComponent_2: typeof $$AnimatedImplementation.createAnimatedComponent declare const decay: typeof $$AnimatedImplementation.decay declare const decayImpl: ( value: @@ -203,7 +270,7 @@ declare const divideImpl: ( b: AnimatedNode_default | number, ) => AnimatedDivision_default declare const DrawerLayoutAndroid: typeof DrawerLayoutAndroid_default -declare const DynamicColorIOS: (tuple: DynamicColorIOSTuple) => ColorValue +declare const DynamicColorIOS: (tuple: DynamicColorIOSTuple) => ColorValue_4 declare const Easing: typeof EasingStatic_default declare const EasingStatic_default: { back(s?: number): EasingFunction @@ -230,9 +297,7 @@ declare const eventImpl: ( config: EventConfig, ) => any declare const findNodeHandle: typeof $$ReactFabric.findNodeHandle -declare const flatten: typeof $$flattenStyle declare const forkEvent: typeof $$AnimatedImplementation.forkEvent -declare const hairlineWidth: number declare const I18nManager: { doLeftAndRightSwapInRTL: I18nManagerConstants["doLeftAndRightSwapInRTL"] isRTL: I18nManagerConstants["isRTL"] @@ -375,10 +440,6 @@ declare const sequence: typeof $$AnimatedImplementation.sequence declare const sequenceImpl: ( animations: Array, ) => CompositeAnimation -declare const setStyleAttributePreprocessor: ( - property: string, - process: (nextProp: any) => any, -) => void declare const Settings: typeof Settings_default declare let Settings_default: { clearWatch(watchId: number): void @@ -467,7 +528,7 @@ declare const TouchableHighlight_default: ( declare const TouchableImpl_default: { Mixin: typeof TouchableMixinImpl renderDebugView: ($$PARAM_0$$: { - color: ColorValue + color: ColorValue_2 hitSlop?: EdgeInsetsProp }) => null | React.ReactNode } @@ -477,16 +538,16 @@ declare const TouchableMixinImpl: { componentWillUnmount: () => void touchableGetInitialState: () => { touchable: { - responderID: GestureResponderEvent["currentTarget"] | undefined + responderID: GestureResponderEvent_2["currentTarget"] | undefined touchState: TouchableState | undefined } } - touchableHandleBlur: (e: BlurEvent) => void - touchableHandleFocus: (e: FocusEvent) => void - touchableHandleResponderGrant: (e: GestureResponderEvent) => void - touchableHandleResponderMove: (e: GestureResponderEvent) => void - touchableHandleResponderRelease: (e: GestureResponderEvent) => void - touchableHandleResponderTerminate: (e: GestureResponderEvent) => void + touchableHandleBlur: (e: BlurEvent_2) => void + touchableHandleFocus: (e: FocusEvent_2) => void + touchableHandleResponderGrant: (e: GestureResponderEvent_2) => void + touchableHandleResponderMove: (e: GestureResponderEvent_2) => void + touchableHandleResponderRelease: (e: GestureResponderEvent_2) => void + touchableHandleResponderTerminate: (e: GestureResponderEvent_2) => void touchableHandleResponderTerminationRequest: () => any touchableHandleStartShouldSetResponder: () => any touchableLongPressCancelsPress: () => boolean @@ -538,431 +599,6 @@ declare const VirtualizedSectionListComponent_default: < }> }, ) => React.ReactNode -declare type ____BlendMode_Internal = - | "color-burn" - | "color-dodge" - | "color" - | "darken" - | "difference" - | "exclusion" - | "hard-light" - | "hue" - | "lighten" - | "luminosity" - | "multiply" - | "normal" - | "overlay" - | "plus-lighter" - | "saturation" - | "screen" - | "soft-light" -declare type ____ColorValue_Internal = NativeColorValue | null | number | string -declare type ____DangerouslyImpreciseAnimatedStyleProp_Internal = - WithAnimatedValue>> -declare type ____DangerouslyImpreciseStyle_Internal = Readonly< - ____DangerouslyImpreciseStyle_InternalCore & - ____DangerouslyImpreciseStyle_InternalOverrides -> -declare type ____DangerouslyImpreciseStyle_InternalCore = Readonly< - ____TextStyle_Internal & { - objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down" - overlayColor?: ColorValue - resizeMode?: ImageResizeMode - tintColor?: ____ColorValue_Internal - } -> -declare type ____DangerouslyImpreciseStyle_InternalOverrides = {} -declare type ____FlattenStyleProp_Helper< - TStyleProp extends StyleProp, - Depth extends FlattenDepthLimiter[keyof FlattenDepthLimiter] = 9, -> = Depth extends 0 - ? never - : TStyleProp extends "" | false | null | void - ? never - : TStyleProp extends ReadonlyArray - ? ____FlattenStyleProp_Helper< - V, - Depth extends number ? FlattenDepthLimiter[Depth] : 0 - > - : TStyleProp -declare type ____FlattenStyleProp_Internal< - TStyleProp extends StyleProp, -> = - ____FlattenStyleProp_Helper extends never - ? any - : ____FlattenStyleProp_Helper -declare type ____FontVariant_Internal = - | "common-ligatures" - | "contextual" - | "discretionary-ligatures" - | "historical-ligatures" - | "lining-nums" - | "no-common-ligatures" - | "no-contextual" - | "no-discretionary-ligatures" - | "no-historical-ligatures" - | "oldstyle-nums" - | "proportional-nums" - | "small-caps" - | "stylistic-eight" - | "stylistic-eighteen" - | "stylistic-eleven" - | "stylistic-fifteen" - | "stylistic-five" - | "stylistic-four" - | "stylistic-fourteen" - | "stylistic-nine" - | "stylistic-nineteen" - | "stylistic-one" - | "stylistic-seven" - | "stylistic-seventeen" - | "stylistic-six" - | "stylistic-sixteen" - | "stylistic-ten" - | "stylistic-thirteen" - | "stylistic-three" - | "stylistic-twelve" - | "stylistic-twenty" - | "stylistic-two" - | "tabular-nums" -declare type ____FontVariantArray_Internal = - ReadonlyArray<____FontVariant_Internal> -declare type ____FontWeight_Internal = - | "100" - | "200" - | "300" - | "400" - | "500" - | "600" - | "700" - | "800" - | "900" - | "black" - | "bold" - | "condensed" - | "condensedBold" - | "heavy" - | "light" - | "medium" - | "normal" - | "regular" - | "semibold" - | "thin" - | "ultralight" - | 100 - | 200 - | 300 - | 400 - | 500 - | 600 - | 700 - | 800 - | 900 -declare type ____ImageStyle_Internal = Readonly< - ____ImageStyle_InternalCore & ____ImageStyle_InternalOverrides -> -declare type ____ImageStyle_InternalCore = Readonly< - Omit<____ViewStyle_Internal, "overflow"> & { - objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down" - overflow?: "hidden" | "visible" - overlayColor?: ColorValue - resizeMode?: ImageResizeMode - tintColor?: ____ColorValue_Internal - } -> -declare type ____ImageStyle_InternalOverrides = {} -declare type ____ImageStyleProp_Internal = StyleProp< - Readonly> -> -declare type ____LayoutStyle_Internal = { - readonly alignContent?: - | "center" - | "flex-end" - | "flex-start" - | "space-around" - | "space-between" - | "space-evenly" - | "stretch" - readonly alignItems?: - | "baseline" - | "center" - | "flex-end" - | "flex-start" - | "stretch" - readonly alignSelf?: - | "auto" - | "baseline" - | "center" - | "flex-end" - | "flex-start" - | "stretch" - readonly aspectRatio?: number | string - readonly borderBottomWidth?: number - readonly borderEndWidth?: number - readonly borderLeftWidth?: number - readonly borderRightWidth?: number - readonly borderStartWidth?: number - readonly borderTopWidth?: number - readonly borderWidth?: number - readonly bottom?: DimensionValue - readonly boxSizing?: "border-box" | "content-box" - readonly columnGap?: number | string - readonly direction?: "inherit" | "ltr" | "rtl" - readonly display?: "contents" | "flex" | "none" - readonly end?: DimensionValue - readonly flex?: number - readonly flexBasis?: number | string - readonly flexDirection?: "column-reverse" | "column" | "row-reverse" | "row" - readonly flexGrow?: number - readonly flexShrink?: number - readonly flexWrap?: "nowrap" | "wrap-reverse" | "wrap" - readonly gap?: number | string - readonly height?: DimensionValue - readonly inset?: DimensionValue - readonly insetBlock?: DimensionValue - readonly insetBlockEnd?: DimensionValue - readonly insetBlockStart?: DimensionValue - readonly insetInline?: DimensionValue - readonly insetInlineEnd?: DimensionValue - readonly insetInlineStart?: DimensionValue - readonly justifyContent?: - | "center" - | "flex-end" - | "flex-start" - | "space-around" - | "space-between" - | "space-evenly" - readonly left?: DimensionValue - readonly margin?: DimensionValue - readonly marginBlock?: DimensionValue - readonly marginBlockEnd?: DimensionValue - readonly marginBlockStart?: DimensionValue - readonly marginBottom?: DimensionValue - readonly marginEnd?: DimensionValue - readonly marginHorizontal?: DimensionValue - readonly marginInline?: DimensionValue - readonly marginInlineEnd?: DimensionValue - readonly marginInlineStart?: DimensionValue - readonly marginLeft?: DimensionValue - readonly marginRight?: DimensionValue - readonly marginStart?: DimensionValue - readonly marginTop?: DimensionValue - readonly marginVertical?: DimensionValue - readonly maxHeight?: DimensionValue - readonly maxWidth?: DimensionValue - readonly minHeight?: DimensionValue - readonly minWidth?: DimensionValue - readonly overflow?: "hidden" | "scroll" | "visible" - readonly padding?: DimensionValue - readonly paddingBlock?: DimensionValue - readonly paddingBlockEnd?: DimensionValue - readonly paddingBlockStart?: DimensionValue - readonly paddingBottom?: DimensionValue - readonly paddingEnd?: DimensionValue - readonly paddingHorizontal?: DimensionValue - readonly paddingInline?: DimensionValue - readonly paddingInlineEnd?: DimensionValue - readonly paddingInlineStart?: DimensionValue - readonly paddingLeft?: DimensionValue - readonly paddingRight?: DimensionValue - readonly paddingStart?: DimensionValue - readonly paddingTop?: DimensionValue - readonly paddingVertical?: DimensionValue - readonly position?: "absolute" | "relative" | "static" - readonly right?: DimensionValue - readonly rowGap?: number | string - readonly start?: DimensionValue - readonly top?: DimensionValue - readonly width?: DimensionValue - readonly zIndex?: number -} -declare type ____ShadowStyle_Internal = Readonly< - ____ShadowStyle_InternalCore & ____ShadowStyle_InternalOverrides -> -declare type ____ShadowStyle_InternalCore = { - readonly shadowColor?: ____ColorValue_Internal - readonly shadowOffset?: { - readonly height?: number - readonly width?: number - } - readonly shadowOpacity?: number - readonly shadowRadius?: number -} -declare type ____ShadowStyle_InternalOverrides = {} -declare type ____Styles_Internal = { - readonly [key: string]: Partial<____DangerouslyImpreciseStyle_Internal> -} -declare type ____TextStyle_Internal = Readonly< - ____TextStyle_InternalCore & ____TextStyle_InternalOverrides -> -declare type ____TextStyle_InternalBase = { - readonly color?: ____ColorValue_Internal - readonly fontFamily?: string - readonly fontSize?: number - readonly fontStyle?: "italic" | "normal" - readonly fontVariant?: ____FontVariantArray_Internal | string - readonly fontWeight?: ____FontWeight_Internal - readonly includeFontPadding?: boolean - readonly letterSpacing?: number - readonly lineHeight?: number - readonly textAlign?: "auto" | "center" | "justify" | "left" | "right" - readonly textAlignVertical?: "auto" | "bottom" | "center" | "top" - readonly textDecorationColor?: ____ColorValue_Internal - readonly textDecorationLine?: - | "line-through" - | "none" - | "underline line-through" - | "underline" - readonly textDecorationStyle?: - | "dashed" - | "dotted" - | "double" - | "solid" - | "wavy" - readonly textShadowColor?: ____ColorValue_Internal - readonly textShadowOffset?: { - readonly height: number - readonly width: number - } - readonly textShadowRadius?: number - readonly textTransform?: "capitalize" | "lowercase" | "none" | "uppercase" - readonly userSelect?: "all" | "auto" | "contain" | "none" | "text" - readonly verticalAlign?: "auto" | "bottom" | "middle" | "top" - readonly writingDirection?: "auto" | "ltr" | "rtl" -} -declare type ____TextStyle_InternalCore = Readonly< - ____ViewStyle_Internal & ____TextStyle_InternalBase -> -declare type ____TextStyle_InternalOverrides = {} -declare type ____TextStyleProp_Internal = StyleProp< - Readonly> -> -declare type ____TransformStyle_Internal = { - readonly transform?: - | ReadonlyArray< - Readonly< - MaximumOneOf< - MergeUnion< - | { - readonly matrix: - | AnimatedNode_default - | ReadonlyArray - } - | { - readonly perspective: AnimatedNode_default | number - } - | { - readonly rotate: AnimatedNode_default | string - } - | { - readonly rotateX: AnimatedNode_default | string - } - | { - readonly rotateY: AnimatedNode_default | string - } - | { - readonly rotateZ: AnimatedNode_default | string - } - | { - readonly scale: AnimatedNode_default | number - } - | { - readonly scaleX: AnimatedNode_default | number - } - | { - readonly scaleY: AnimatedNode_default | number - } - | { - readonly skewX: AnimatedNode_default | string - } - | { - readonly skewY: AnimatedNode_default | string - } - | { - readonly translate: - | [ - AnimatedNode_default | number | string, - AnimatedNode_default | number | string, - ] - | AnimatedNode_default - } - | { - readonly translateX: AnimatedNode_default | number | string - } - | { - readonly translateY: AnimatedNode_default | number | string - } - > - > - > - > - | string - readonly transformOrigin?: - | [number | string, number | string, number | string] - | string -} -declare type ____ViewStyle_Internal = Readonly< - ____ViewStyle_InternalCore & ____ViewStyle_InternalOverrides -> -declare type ____ViewStyle_InternalBase = { - readonly backfaceVisibility?: "hidden" | "visible" - readonly backgroundColor?: ____ColorValue_Internal - readonly backgroundImage?: ReadonlyArray | string - readonly borderBlockColor?: ____ColorValue_Internal - readonly borderBlockEndColor?: ____ColorValue_Internal - readonly borderBlockStartColor?: ____ColorValue_Internal - readonly borderBottomColor?: ____ColorValue_Internal - readonly borderBottomEndRadius?: number | string - readonly borderBottomLeftRadius?: number | string - readonly borderBottomRightRadius?: number | string - readonly borderBottomStartRadius?: number | string - readonly borderBottomWidth?: number - readonly borderColor?: ____ColorValue_Internal - readonly borderCurve?: "circular" | "continuous" - readonly borderEndColor?: ____ColorValue_Internal - readonly borderEndEndRadius?: number | string - readonly borderEndStartRadius?: number | string - readonly borderEndWidth?: number - readonly borderLeftColor?: ____ColorValue_Internal - readonly borderLeftWidth?: number - readonly borderRadius?: number | string - readonly borderRightColor?: ____ColorValue_Internal - readonly borderRightWidth?: number - readonly borderStartColor?: ____ColorValue_Internal - readonly borderStartEndRadius?: number | string - readonly borderStartStartRadius?: number | string - readonly borderStartWidth?: number - readonly borderStyle?: "dashed" | "dotted" | "solid" - readonly borderTopColor?: ____ColorValue_Internal - readonly borderTopEndRadius?: number | string - readonly borderTopLeftRadius?: number | string - readonly borderTopRightRadius?: number | string - readonly borderTopStartRadius?: number | string - readonly borderTopWidth?: number - readonly borderWidth?: number - readonly boxShadow?: ReadonlyArray | string - readonly cursor?: CursorValue - readonly elevation?: number - readonly filter?: ReadonlyArray | string - readonly isolation?: "auto" | "isolate" - readonly mixBlendMode?: ____BlendMode_Internal - readonly opacity?: number - readonly outlineColor?: ____ColorValue_Internal - readonly outlineOffset?: number - readonly outlineStyle?: "dashed" | "dotted" | "solid" - readonly outlineWidth?: number - readonly pointerEvents?: "auto" | "box-none" | "box-only" | "none" -} -declare type ____ViewStyle_InternalCore = Readonly< - ____LayoutStyle_Internal & - ____ShadowStyle_Internal & - ____TransformStyle_Internal & - ____ViewStyle_InternalBase -> -declare type ____ViewStyle_InternalOverrides = {} -declare type ____ViewStyleProp_Internal = StyleProp< - Readonly> -> declare class _TextInputInstance extends ReactNativeElement_default { clear(): void getNativeRef(): ReactNativeElement_default | undefined @@ -976,19 +612,10 @@ declare type $$AnimatedScrollView = typeof $$AnimatedScrollView declare type $$AnimatedSectionList = typeof $$AnimatedSectionList declare type $$AnimatedText = typeof $$AnimatedText declare type $$AnimatedView = typeof $$AnimatedView -declare type $$flattenStyle = typeof $$flattenStyle declare type $$index = typeof $$index declare type $$NativeDeviceInfo = typeof $$NativeDeviceInfo declare type $$ReactFabric = typeof $$ReactFabric declare type $$ScrollViewContext = typeof $$ScrollViewContext -declare type absoluteFill = typeof absoluteFill -declare type AbsoluteFillStyle = { - readonly bottom: 0 - readonly left: 0 - readonly position: "absolute" - readonly right: 0 - readonly top: 0 -} declare type AbstractImageAndroid = ( props: ImageProps & { ref?: React.Ref @@ -999,7 +626,7 @@ declare type AbstractImageIOS = ( ref?: React.Ref }, ) => React.ReactNode -declare type AccessibilityActionEvent = NativeSyntheticEvent<{ +declare type AccessibilityActionEvent = NativeSyntheticEvent_2<{ readonly actionName: string }> declare type AccessibilityActionInfo = { @@ -1150,20 +777,20 @@ declare type ActionSheetIOS = typeof ActionSheetIOS declare type ActionSheetIOSOptions = { readonly anchor?: number readonly cancelButtonIndex?: number - readonly cancelButtonTintColor?: ColorValue | ProcessedColorValue + readonly cancelButtonTintColor?: ColorValue_3 | ProcessedColorValue readonly destructiveButtonIndex?: | (Array | undefined) | (number | undefined) readonly disabledButtonIndices?: Array - readonly disabledButtonTintColor?: ColorValue | ProcessedColorValue + readonly disabledButtonTintColor?: ColorValue_3 | ProcessedColorValue readonly message?: string readonly options: Array - readonly tintColor?: ColorValue | ProcessedColorValue + readonly tintColor?: ColorValue_3 | ProcessedColorValue readonly title?: string readonly userInterfaceStyle?: string } declare type ActiveCallback = ( - event: GestureResponderEvent, + event: GestureResponderEvent_3, gestureState: PanResponderGestureState, ) => boolean declare type ActivityIndicator = typeof ActivityIndicator @@ -1174,7 +801,7 @@ declare type ActivityIndicatorIOSProps = { declare interface ActivityIndicatorProps extends Readonly { readonly animating?: boolean - readonly color?: ColorValue + readonly color?: ColorValue_2 readonly size?: IndicatorSize } declare type add = typeof add @@ -1302,11 +929,11 @@ declare namespace Animated { AnimatedMultiplication_default as AnimatedMultiplication, AnimatedSubtraction_default as AnimatedSubtraction, WithAnimatedValue, - AnimatedProps, - AnimatedComponentType as AnimatedComponent, + AnimatedProps_2 as AnimatedProps, + AnimatedComponentType_2 as AnimatedComponent, add, attachNativeEvent, - createAnimatedComponent, + createAnimatedComponent_2 as createAnimatedComponent, decay, delay, diffClamp, @@ -1339,7 +966,7 @@ declare class AnimatedColor_default extends AnimatedWithChildren_default { a: AnimatedValue_default b: AnimatedValue_default g: AnimatedValue_default - nativeColor: NativeColorValue | null | undefined + nativeColor: NativeColorValue_3 | null | undefined r: AnimatedValue_default constructor( valueIn?: InputValue, @@ -1349,7 +976,7 @@ declare class AnimatedColor_default extends AnimatedWithChildren_default { flattenOffset(): void resetAnimation(callback?: ColorListenerCallback): void setOffset(offset: RgbaValue): void - setValue(value: ColorValue | RgbaValue): void + setValue(value: ColorValue_2 | RgbaValue): void stopAnimation(callback?: ColorListenerCallback): void } declare type AnimatedColorConfig = Readonly< @@ -1357,11 +984,6 @@ declare type AnimatedColorConfig = Readonly< useNativeDriver: boolean } > -declare type AnimatedComponentType = ( - props: Omit, "ref"> & { - ref?: React.Ref - }, -) => React.ReactNode declare class AnimatedDiffClamp_default extends AnimatedWithChildren_default { constructor( a: AnimatedNode_default, @@ -1431,15 +1053,6 @@ declare class AnimatedNode_default { declare type AnimatedNodeConfig = { readonly debugID?: string } -declare type AnimatedProps = LooseOmit< - { - [K in keyof Props]: K extends NonAnimatedProps - ? Props[K] - : WithAnimatedValue - }, - "ref" -> & - PassThroughProps declare type AnimatedScrollViewInstance = React.ComponentRef declare class AnimatedSubtraction_default extends AnimatedWithChildren_default { constructor( @@ -1650,7 +1263,6 @@ declare type AttributeType = readonly process?: (arg1: V) => T } declare type AutoCapitalize = "characters" | "none" | "sentences" | "words" -declare type BackgroundImageValue = LinearGradientValue | RadialGradientValue declare type BackHandler = typeof BackHandler declare type BackPressEventName = "backPress" | "hardwareBackPress" declare type BaseKeyboardEvent = { @@ -1681,22 +1293,10 @@ declare type BlobOptions = { lastModified: number type: string } -declare type BlurEvent = NativeSyntheticEvent -declare type BoxShadowValue = { - blurRadius?: number | string - color?: ____ColorValue_Internal - inset?: boolean - offsetX: number | string - offsetY: number | string - spreadDistance?: number | string -} declare type BubblingEventHandler< T, PaperName extends never | string = never, -> = (event: NativeSyntheticEvent) => Promise | void -declare type Builtin = ( - ...$$REST$$: ReadonlyArray -) => Date | Error | RegExp | unknown +> = (event: NativeSyntheticEvent_4) => Promise | void declare type Button = typeof Button declare type ButtonInstance = React.ComponentRef declare interface ButtonProps { @@ -1712,7 +1312,7 @@ declare interface ButtonProps { readonly "aria-expanded"?: boolean readonly "aria-label"?: string readonly "aria-selected"?: boolean - readonly color?: ColorValue + readonly color?: ColorValue_3 readonly disabled?: boolean readonly hasTVPreferredFocus?: boolean readonly importantForAccessibility?: @@ -1729,7 +1329,7 @@ declare interface ButtonProps { readonly testID?: string readonly title: string readonly touchSoundDisabled?: boolean - readonly onPress?: (event?: GestureResponderEvent) => unknown + readonly onPress?: (event?: GestureResponderEvent_3) => unknown } declare function cancelHeadlessTask(taskId: number, taskKey: string): void declare type Category = string @@ -1791,20 +1391,14 @@ declare namespace CodegenTypes { EventEmitter_2 as EventEmitter, } } -declare type ColorListenerCallback = (value: ColorValue) => unknown +declare type ColorListenerCallback = (value: ColorValue_2) => unknown declare type ColorSchemeName = "dark" | "light" declare type ColorSchemeOverride = "auto" | "dark" | "light" | "unspecified" -declare type ColorValue = ____ColorValue_Internal declare type ComponentProvider = () => React.ComponentType declare type ComponentProviderInstrumentationHook = ( component_: ComponentProvider, scopedPerformanceLogger: IPerformanceLogger, ) => React.ComponentType -declare type compose = typeof compose -declare function composeStyles_default( - style1: null | U | undefined, - style2: null | undefined | V, -): (ReadonlyArray | T) | null | undefined declare type CompositeAnimation = { reset: () => void start: (callback?: EndCallback | undefined, isLooping?: boolean) => void @@ -1839,21 +1433,7 @@ declare type Context = { }) => void } declare function counterEvent(eventName: EventName, value: number): void -declare type create = typeof create -declare type createAnimatedComponent = typeof createAnimatedComponent -declare function createAnimatedComponent_default< - TInstance extends React.ComponentType, ->( - Component: TInstance, -): AnimatedComponentType< - Readonly< - React.JSX.LibraryManagedAttributes< - TInstance, - React.ComponentProps - > - >, - React.ComponentRef -> +declare type createAnimatedComponent_2 = typeof createAnimatedComponent_2 declare function createLayoutAnimation( duration: number, type?: LayoutAnimationType, @@ -1864,7 +1444,6 @@ declare function createPublicTextInstance( ownerDocument: ReactNativeDocument_default, ): ReadOnlyText_default declare type createPublicTextInstanceT = typeof createPublicTextInstance -declare type CursorValue = "auto" | "pointer" declare type DataDetectorTypesType = | "address" | "all" @@ -1929,15 +1508,14 @@ declare type DimensionsPayload = { window?: DisplayMetrics windowPhysicalPixels?: DisplayMetricsAndroid } -declare type DimensionValue = "auto" | null | number | string declare type DirectEventHandler = ( - event: NativeSyntheticEvent, + event: NativeSyntheticEvent_4, ) => Promise | void declare type DirectEventProps = { readonly onAccessibilityAction?: (event: AccessibilityActionEvent) => unknown readonly onAccessibilityEscape?: () => unknown readonly onAccessibilityTap?: () => unknown - readonly onLayout?: (event: LayoutChangeEvent) => unknown + readonly onLayout?: (event: LayoutChangeEvent_2) => unknown readonly onMagicTap?: () => unknown } declare type DisplayMetrics = { @@ -2040,7 +1618,7 @@ declare interface DrawerLayoutAndroidMethods { } declare type DrawerLayoutAndroidProps = Readonly< ViewProps & { - drawerBackgroundColor?: ColorValue + drawerBackgroundColor?: ColorValue_2 drawerLockMode?: "locked-closed" | "locked-open" | "unlocked" drawerPosition: ("left" | "right") | undefined drawerWidth?: number @@ -2049,40 +1627,28 @@ declare type DrawerLayoutAndroidProps = Readonly< onDrawerOpen?: () => unknown onDrawerSlide?: (event: DrawerSlideEvent) => unknown onDrawerStateChanged?: (state: DrawerStates) => unknown - statusBarBackgroundColor?: ColorValue + statusBarBackgroundColor?: ColorValue_2 renderNavigationView: () => React.JSX.Element } > declare type DrawerLayoutAndroidState = { drawerOpened: boolean } -declare type DrawerSlideEvent = NativeSyntheticEvent<{ +declare type DrawerSlideEvent = NativeSyntheticEvent_2<{ readonly offset: number }> declare type DrawerStates = "Dragging" | "Idle" | "Settling" -declare type DropShadowValue = { - color?: ____ColorValue_Internal - offsetX: number | string - offsetY: number | string - standardDeviation?: number | string -} declare type DynamicColorIOS = typeof DynamicColorIOS declare type DynamicColorIOSTuple = { - dark: ColorValue - highContrastDark?: ColorValue - highContrastLight?: ColorValue - light: ColorValue + dark: ColorValue_4 + highContrastDark?: ColorValue_4 + highContrastLight?: ColorValue_4 + light: ColorValue_4 } declare type Easing = typeof Easing declare type EasingFunction = (t: number) => number declare type EdgeInsetsOrSizeProp = RectOrSize declare type EdgeInsetsProp = Rect -declare type EdgeInsetsValue = { - bottom: number - left: number - right: number - top: number -} declare type EmitterSubscription = EventSubscription declare function endAsyncEvent( eventName: EventName, @@ -2136,7 +1702,7 @@ declare type EventArgs = [$$Key$$: string]: string } declare type EventConfig = { - listener?: ($$PARAM_0$$: NativeSyntheticEvent) => unknown + listener?: ($$PARAM_0$$: NativeSyntheticEvent_3) => unknown platformConfig?: PlatformConfig useNativeDriver: boolean } @@ -2219,37 +1785,6 @@ declare class FillRateHelper_default { } declare type FillRateHelperT = typeof FillRateHelper_default declare type FillRateInfo = Info -declare type FilterFunction = - | { - blur: number | string - } - | { - brightness: number | string - } - | { - contrast: number | string - } - | { - dropShadow: DropShadowValue | string - } - | { - grayscale: number | string - } - | { - hueRotate: number | string - } - | { - invert: number | string - } - | { - opacity: number | string - } - | { - saturate: number | string - } - | { - sepia: number | string - } declare type findNodeHandle = typeof findNodeHandle declare class FlatList extends React.PureComponent< FlatListProps @@ -2301,28 +1836,16 @@ declare interface FlatListProps > & FlatListBaseProps > {} -declare type flatten = typeof flatten -declare type FlattenDepthLimiter = [void, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9] -declare function flattenStyle_default< - TStyleProp extends ____DangerouslyImpreciseAnimatedStyleProp_Internal, ->( - style: null | TStyleProp | undefined, -): - | NonAnimatedNodeObject<____FlattenStyleProp_Internal> - | null - | undefined declare type Float = number declare type Fn, Return> = ( ...$$REST$$: Args ) => Return -declare type FocusEvent = NativeSyntheticEvent declare type FocusEventProps = { - readonly onBlur?: (event: BlurEvent) => void - readonly onBlurCapture?: (event: BlurEvent) => void - readonly onFocus?: (event: FocusEvent) => void - readonly onFocusCapture?: (event: FocusEvent) => void + readonly onBlur?: (event: BlurEvent_2) => void + readonly onBlurCapture?: (event: BlurEvent_2) => void + readonly onFocus?: (event: FocusEvent_2) => void + readonly onFocusCapture?: (event: FocusEvent_2) => void } -declare type FontVariant = ____FontVariant_Internal declare type forkEvent = typeof forkEvent declare function forkEventImpl( event: (AnimatedEvent | null | undefined) | (Function | null | undefined), @@ -2352,37 +1875,38 @@ declare type FormDataValue = type?: string uri: string } -declare type GestureResponderEvent = ResponderSyntheticEvent declare type GestureResponderHandlerMethods = { - onMoveShouldSetResponder: (event: GestureResponderEvent) => boolean - onMoveShouldSetResponderCapture: (event: GestureResponderEvent) => boolean - onResponderEnd: (event: GestureResponderEvent) => void - onResponderGrant: (event: GestureResponderEvent) => boolean - onResponderMove: (event: GestureResponderEvent) => void - onResponderReject: (event: GestureResponderEvent) => void - onResponderRelease: (event: GestureResponderEvent) => void - onResponderStart: (event: GestureResponderEvent) => void - onResponderTerminate: (event: GestureResponderEvent) => void - onResponderTerminationRequest: (event: GestureResponderEvent) => boolean - onStartShouldSetResponder: (event: GestureResponderEvent) => boolean - onStartShouldSetResponderCapture: (event: GestureResponderEvent) => boolean + onMoveShouldSetResponder: (event: GestureResponderEvent_3) => boolean + onMoveShouldSetResponderCapture: (event: GestureResponderEvent_3) => boolean + onResponderEnd: (event: GestureResponderEvent_3) => void + onResponderGrant: (event: GestureResponderEvent_3) => boolean + onResponderMove: (event: GestureResponderEvent_3) => void + onResponderReject: (event: GestureResponderEvent_3) => void + onResponderRelease: (event: GestureResponderEvent_3) => void + onResponderStart: (event: GestureResponderEvent_3) => void + onResponderTerminate: (event: GestureResponderEvent_3) => void + onResponderTerminationRequest: (event: GestureResponderEvent_3) => boolean + onStartShouldSetResponder: (event: GestureResponderEvent_3) => boolean + onStartShouldSetResponderCapture: (event: GestureResponderEvent_3) => boolean } declare type GestureResponderHandlers = { - readonly onMoveShouldSetResponder?: (e: GestureResponderEvent) => boolean + readonly onMoveShouldSetResponder?: (e: GestureResponderEvent_2) => boolean readonly onMoveShouldSetResponderCapture?: ( - e: GestureResponderEvent, + e: GestureResponderEvent_2, ) => boolean - readonly onResponderEnd?: (e: GestureResponderEvent) => void - readonly onResponderGrant?: (e: GestureResponderEvent) => boolean | void - readonly onResponderMove?: (e: GestureResponderEvent) => void - readonly onResponderReject?: (e: GestureResponderEvent) => void - readonly onResponderRelease?: (e: GestureResponderEvent) => void - readonly onResponderStart?: (e: GestureResponderEvent) => void - readonly onResponderTerminate?: (e: GestureResponderEvent) => void - readonly onResponderTerminationRequest?: (e: GestureResponderEvent) => boolean - readonly onStartShouldSetResponder?: (e: GestureResponderEvent) => boolean + readonly onResponderEnd?: (e: GestureResponderEvent_2) => void + readonly onResponderGrant?: (e: GestureResponderEvent_2) => boolean | void + readonly onResponderMove?: (e: GestureResponderEvent_2) => void + readonly onResponderReject?: (e: GestureResponderEvent_2) => void + readonly onResponderRelease?: (e: GestureResponderEvent_2) => void + readonly onResponderStart?: (e: GestureResponderEvent_2) => void + readonly onResponderTerminate?: (e: GestureResponderEvent_2) => void + readonly onResponderTerminationRequest?: ( + e: GestureResponderEvent_2, + ) => boolean + readonly onStartShouldSetResponder?: (e: GestureResponderEvent_2) => boolean readonly onStartShouldSetResponderCapture?: ( - e: GestureResponderEvent, + e: GestureResponderEvent_2, ) => boolean } declare function get( @@ -2403,7 +1927,6 @@ declare function getWithFallback_DEPRECATED( name: string, viewConfigProvider: () => PartialViewConfig, ): React.ComponentType -declare type hairlineWidth = typeof hairlineWidth declare interface HardwareBackPressEvent { readonly timeStamp: number readonly type: string @@ -2418,13 +1941,6 @@ declare type HostComponent = ( }, ) => React.ReactNode declare type HostInstance = ReactNativeElement_default -declare class HTMLCollection_default implements Iterable, ArrayLike_2 { - [index: number]: T - readonly length: number - item(index: number): null | T - namedItem(name: string): null | T - [Symbol.iterator](): Iterator -} declare type I18nManager = typeof I18nManager declare type I18nManagerConstants = { doLeftAndRightSwapInRTL: boolean @@ -2474,7 +1990,7 @@ declare interface ImageBackgroundProps readonly children?: React.ReactNode readonly imageRef?: React.Ref> readonly imageStyle?: ImageStyleProp - readonly style?: ViewStyleProp + readonly style?: ViewStyleProp_2 } declare type ImageComponentStaticsAndroid = Readonly< ImageComponentStaticsIOS & { @@ -2513,7 +2029,7 @@ declare type ImageComponentStaticsIOS = { }> resolveAssetSource(source: ImageSource): ImageResolvedAssetSource | undefined } -declare type ImageErrorEvent = NativeSyntheticEvent< +declare type ImageErrorEvent = NativeSyntheticEvent_3< Readonly > declare type ImageErrorEventData = { @@ -2521,7 +2037,9 @@ declare type ImageErrorEventData = { } declare type ImageInstance = HostInstance declare type ImageIOS = AbstractImageIOS & ImageComponentStaticsIOS -declare type ImageLoadEvent = NativeSyntheticEvent> +declare type ImageLoadEvent = NativeSyntheticEvent_3< + Readonly +> declare type ImageLoadEventData = { source: { height: number @@ -2533,7 +2051,7 @@ declare type ImageProgressEventDataIOS = { loaded: number total: number } -declare type ImageProgressEventIOS = NativeSyntheticEvent< +declare type ImageProgressEventIOS = NativeSyntheticEvent_3< Readonly > declare type ImageProps = Readonly< @@ -2575,7 +2093,7 @@ declare interface ImagePropsBase readonly height?: number readonly internal_analyticTag?: string readonly onError?: (event: ImageErrorEvent) => void - readonly onLayout?: (event: LayoutChangeEvent) => unknown + readonly onLayout?: (event: LayoutChangeEvent_3) => unknown readonly onLoad?: (event: ImageLoadEvent) => void readonly onLoadEnd?: () => void readonly onLoadStart?: () => void @@ -2593,7 +2111,7 @@ declare interface ImagePropsBase readonly src?: string readonly srcSet?: string readonly testID?: string - readonly tintColor?: ColorValue + readonly tintColor?: ColorValue_3 readonly width?: number } declare type ImagePropsIOS = { @@ -2619,8 +2137,6 @@ declare type ImageSource = | ImageURISource | ReadonlyArray declare type ImageSourcePropType = ImageSource -declare type ImageStyle = ____ImageStyle_Internal -declare type ImageStyleProp = ____ImageStyleProp_Internal declare type ImageType = ImageAndroid | ImageIOS declare interface ImageURISource { readonly body?: string @@ -2662,7 +2178,7 @@ declare class Info { declare type InnerViewInstance = React.ComponentRef declare type InputAccessoryView = typeof InputAccessoryView declare interface InputAccessoryViewProps { - readonly backgroundColor?: ColorValue + readonly backgroundColor?: ColorValue_2 readonly children: React.ReactNode readonly nativeID?: string readonly style?: ViewStyleProp @@ -2677,7 +2193,7 @@ declare type InputModeOptions = | "text" | "url" declare type InputValue = - | (ColorValue | RgbaAnimatedValue | RgbaValue) + | (ColorValue_2 | RgbaAnimatedValue | RgbaValue) | null | undefined declare type Insets = Rect @@ -2691,7 +2207,7 @@ declare type InternalTextInput = ( }, ) => React.ReactNode declare type InterpolationConfigSupportedOutputType = - | NativeColorValue + | NativeColorValue_3 | number | string declare type InterpolationConfigType< @@ -2861,26 +2377,13 @@ declare type KeyboardTypeOptions = | KeyboardType | KeyboardTypeAndroid | KeyboardTypeIOS -declare type KeyDownEvent = NativeSyntheticEvent -declare type KeyEvent = { - readonly altKey: boolean - readonly code: string - readonly ctrlKey: boolean - readonly isComposing?: boolean - readonly key: string - readonly metaKey: boolean - readonly repeat?: boolean - readonly shiftKey: boolean -} declare type KeyEventProps = { - readonly onKeyDown?: (event: KeyDownEvent) => void - readonly onKeyDownCapture?: (event: KeyDownEvent) => void - readonly onKeyUp?: (event: KeyUpEvent) => void - readonly onKeyUpCapture?: (event: KeyUpEvent) => void + readonly onKeyDown?: (event: KeyDownEvent_2) => void + readonly onKeyDownCapture?: (event: KeyDownEvent_2) => void + readonly onKeyUp?: (event: KeyUpEvent_2) => void + readonly onKeyUpCapture?: (event: KeyUpEvent_2) => void } declare function keyExtractor(item: any, index: number): string -declare type KeysOfUnion = T extends any ? keyof T : never -declare type KeyUpEvent = NativeSyntheticEvent declare type LayoutAnimation = typeof LayoutAnimation declare type LayoutAnimationAnim = { readonly delay?: number @@ -2914,27 +2417,10 @@ declare type LayoutAnimationType = declare type LayoutAnimationTypes = Readonly<{ [type in LayoutAnimationType]: type }> -declare type LayoutChangeEvent = NativeSyntheticEvent<{ - readonly layout: LayoutRectangle -}> declare type LayoutConformanceProps = { readonly children: React.ReactNode readonly mode: "compatibility" | "strict" } -declare type LayoutRectangle = { - readonly height: number - readonly width: number - readonly x: number - readonly y: number -} -declare type LinearGradientValue = { - colorStops: ReadonlyArray<{ - color: ____ColorValue_Internal - positions?: ReadonlyArray - }> - direction?: string - type: "linear-gradient" -} declare type Linking = typeof Linking declare type LinkingEventDefinitions = { url: [ @@ -3025,10 +2511,6 @@ declare type LoopAnimationConfig = { iterations: number resetBeforeIteration?: boolean } -declare type LooseOmit = Pick< - O, - Exclude -> declare type MacOSPlatform = { OS: "macos" select: (spec: PlatformSelectSpec) => T @@ -3055,9 +2537,6 @@ declare type Mapping = | { [key: string]: Mapping } -declare type MaximumOneOf = { - [K in keyof T]: { [P in keyof T]?: P extends K ? T[P] : never } -}[keyof { [K in keyof T]: { [P in keyof T]?: P extends K ? T[P] : never } }] declare type MeasureInWindowOnSuccessCallback = ( x: number, y: number, @@ -3078,7 +2557,6 @@ declare type MeasureOnSuccessCallback = ( pageX: number, pageY: number, ) => void -declare type MergeUnion = { [K in KeysOfUnion]?: ValueOfUnion } declare type Message = { readonly content: string readonly substitutions: ReadonlyArray<{ @@ -3090,7 +2568,7 @@ declare type Modal = typeof Modal declare interface ModalBaseProps { animated?: boolean animationType?: "fade" | "none" | "slide" - backdropColor?: ColorValue + backdropColor?: ColorValue_3 modalRef?: React.Ref onRequestClose?: DirectEventHandler onShow?: DirectEventHandler @@ -3136,22 +2614,12 @@ declare type ModeChangeEvent = Readonly< > declare type Module = {} declare type modulo = typeof modulo -declare type MouseEvent = NativeSyntheticEvent<{ - readonly clientX: number - readonly clientY: number - readonly pageX: number - readonly pageY: number - readonly timestamp: number -}> declare type MouseEventProps = { - readonly onMouseEnter?: (event: MouseEvent) => void - readonly onMouseLeave?: (event: MouseEvent) => void + readonly onMouseEnter?: (event: MouseEvent_2) => void + readonly onMouseLeave?: (event: MouseEvent_2) => void } declare type multiply = typeof multiply declare type NativeAppEventEmitter = typeof NativeAppEventEmitter -declare type NativeColorValue = symbol & { - __NativeColorValue__: string -} declare type NativeCommandsOptions = { readonly supportedCommands: ReadonlyArray } @@ -3227,101 +2695,7 @@ declare interface NativeModule { removeListeners(count: number): void } declare type NativeModules = typeof NativeModules -declare interface NativeMouseEvent extends NativeUIEvent { - readonly altKey: boolean - readonly button: number - readonly buttons: number - readonly clientX: number - readonly clientY: number - readonly ctrlKey: boolean - readonly metaKey: boolean - readonly offsetX: number - readonly offsetY: number - readonly pageX: number - readonly pageY: number - readonly relatedTarget: HostInstance | null | number - readonly screenX: number - readonly screenY: number - readonly shiftKey: boolean - readonly x: number - readonly y: number -} -declare interface NativePointerEvent extends NativeMouseEvent { - readonly height: number - readonly isPrimary: boolean - readonly pointerId: number - readonly pointerType: string - readonly pressure: number - readonly tangentialPressure: number - readonly tiltX: number - readonly tiltY: number - readonly twist: number - readonly width: number -} declare type NativeResponseType = "base64" | "blob" | "text" -declare type NativeScrollEvent = { - readonly contentInset: NativeScrollRectangle - readonly contentOffset: NativeScrollPoint - readonly contentSize: NativeScrollSize - readonly layoutMeasurement: NativeScrollSize - readonly responderIgnoreScroll?: boolean - readonly targetContentOffset?: NativeScrollPoint - readonly velocity?: NativeScrollVelocity - readonly zoomScale?: number -} -declare type NativeScrollPoint = { - readonly x: number - readonly y: number -} -declare type NativeScrollRectangle = { - readonly bottom: number - readonly left: number - readonly right: number - readonly top: number -} -declare type NativeScrollSize = { - readonly height: number - readonly width: number -} -declare type NativeScrollVelocity = { - readonly x: number - readonly y: number -} -declare type NativeSyntheticEvent = { - readonly bubbles: boolean | undefined - readonly cancelable: boolean | undefined - readonly currentTarget: HostInstance | number - readonly defaultPrevented: boolean | undefined - readonly dispatchConfig: { - readonly registrationName: string - } - readonly eventPhase: number | undefined - readonly isTrusted: boolean | undefined - readonly nativeEvent: T - readonly target: (number | undefined) | HostInstance - readonly timeStamp: number - readonly type: string | undefined - readonly isDefaultPrevented: () => boolean - readonly isPropagationStopped: () => boolean - readonly persist: () => void - readonly preventDefault: () => void - readonly stopPropagation: () => void -} -declare type NativeTouchEvent = { - readonly changedTouches: ReadonlyArray - readonly force?: number - readonly identifier: number - readonly locationX: number - readonly locationY: number - readonly pageX: number - readonly pageY: number - readonly target: number | undefined - readonly timestamp: number - readonly touches: ReadonlyArray -} -declare interface NativeUIEvent { - readonly detail: number -} declare type Networking = typeof Networking declare type Node = symbol & { __Node__: string @@ -3343,22 +2717,11 @@ declare class NodeList_default implements Iterable, ArrayLike_2 { values(): Iterator [Symbol.iterator](): Iterator } -declare type NonAnimatedNodeObject = - TStyleProp extends AnimatedNode_default ? never : TStyleProp -declare type NonAnimatedProps = - | "accessibilityLabel" - | "disabled" - | "innerViewRef" - | "ref" - | "scrollViewRef" - | "testID" -declare type Nullable = null | void declare type Omit_2 = T extends any ? Pick> : T declare type OnAnimationDidEndCallback = () => void declare type OnAnimationDidFailCallback = () => void -declare type OpaqueColorValue = NativeColorValue declare type OptionalFlatListProps = { - columnWrapperStyle?: ViewStyleProp + columnWrapperStyle?: ViewStyleProp_2 extraData?: any fadingEdgeLength?: | (number | undefined) @@ -3512,12 +2875,9 @@ declare type PartialViewConfig = { readonly validAttributes?: AttributeConfiguration } declare type PassiveCallback = ( - event: GestureResponderEvent, + event: GestureResponderEvent_3, gestureState: PanResponderGestureState, ) => unknown -declare type PassThroughProps = { - readonly passthroughAnimatedPropExplicitValues?: null | ViewProps -} declare type PasswordRules = string declare type Permission = PermissionsType[keyof PermissionsType] declare type PermissionsAndroid = typeof PermissionsAndroid @@ -3596,7 +2956,7 @@ declare class PixelRatio { static startDetecting(): void } declare type Platform = typeof Platform -declare function PlatformColor(...names: Array): NativeColorValue +declare function PlatformColor(...names: Array): NativeColorValue_2 declare type PlatformConfig = {} declare type PlatformOSType = | "android" @@ -3616,39 +2976,34 @@ declare type PlatformType = | MacOSPlatform | WebPlatform | WindowsPlatform -declare type PointerEvent = NativeSyntheticEvent declare type PointerEventProps = { - readonly onClick?: (event: PointerEvent) => void - readonly onClickCapture?: (event: PointerEvent) => void - readonly onGotPointerCapture?: (e: PointerEvent) => void - readonly onGotPointerCaptureCapture?: (e: PointerEvent) => void - readonly onLostPointerCapture?: (e: PointerEvent) => void - readonly onLostPointerCaptureCapture?: (e: PointerEvent) => void - readonly onPointerCancel?: (e: PointerEvent) => void - readonly onPointerCancelCapture?: (e: PointerEvent) => void - readonly onPointerDown?: (e: PointerEvent) => void - readonly onPointerDownCapture?: (e: PointerEvent) => void - readonly onPointerEnter?: (event: PointerEvent) => void - readonly onPointerEnterCapture?: (event: PointerEvent) => void - readonly onPointerLeave?: (event: PointerEvent) => void - readonly onPointerLeaveCapture?: (event: PointerEvent) => void - readonly onPointerMove?: (event: PointerEvent) => void - readonly onPointerMoveCapture?: (event: PointerEvent) => void - readonly onPointerOut?: (e: PointerEvent) => void - readonly onPointerOutCapture?: (e: PointerEvent) => void - readonly onPointerOver?: (e: PointerEvent) => void - readonly onPointerOverCapture?: (e: PointerEvent) => void - readonly onPointerUp?: (e: PointerEvent) => void - readonly onPointerUpCapture?: (e: PointerEvent) => void + readonly onClick?: (event: PointerEvent_2) => void + readonly onClickCapture?: (event: PointerEvent_2) => void + readonly onGotPointerCapture?: (e: PointerEvent_2) => void + readonly onGotPointerCaptureCapture?: (e: PointerEvent_2) => void + readonly onLostPointerCapture?: (e: PointerEvent_2) => void + readonly onLostPointerCaptureCapture?: (e: PointerEvent_2) => void + readonly onPointerCancel?: (e: PointerEvent_2) => void + readonly onPointerCancelCapture?: (e: PointerEvent_2) => void + readonly onPointerDown?: (e: PointerEvent_2) => void + readonly onPointerDownCapture?: (e: PointerEvent_2) => void + readonly onPointerEnter?: (event: PointerEvent_2) => void + readonly onPointerEnterCapture?: (event: PointerEvent_2) => void + readonly onPointerLeave?: (event: PointerEvent_2) => void + readonly onPointerLeaveCapture?: (event: PointerEvent_2) => void + readonly onPointerMove?: (event: PointerEvent_2) => void + readonly onPointerMoveCapture?: (event: PointerEvent_2) => void + readonly onPointerOut?: (e: PointerEvent_2) => void + readonly onPointerOutCapture?: (e: PointerEvent_2) => void + readonly onPointerOver?: (e: PointerEvent_2) => void + readonly onPointerOverCapture?: (e: PointerEvent_2) => void + readonly onPointerUp?: (e: PointerEvent_2) => void + readonly onPointerUpCapture?: (e: PointerEvent_2) => void } declare type PointProp = { readonly x: number readonly y: number } -declare type PointValue = { - x: number - y: number -} declare type PresentLocalNotificationDetails = { alertAction?: string alertBody: string @@ -3679,29 +3034,29 @@ declare type PressabilityConfig = { readonly disabled?: boolean readonly hitSlop?: RectOrSize readonly minPressDuration?: number - readonly onBlur?: (event: BlurEvent) => unknown - readonly onFocus?: (event: FocusEvent) => unknown - readonly onHoverIn?: (event: MouseEvent) => unknown - readonly onHoverOut?: (event: MouseEvent) => unknown - readonly onLongPress?: (event: GestureResponderEvent) => unknown - readonly onPress?: (event: GestureResponderEvent) => unknown - readonly onPressIn?: (event: GestureResponderEvent) => unknown - readonly onPressMove?: (event: GestureResponderEvent) => unknown - readonly onPressOut?: (event: GestureResponderEvent) => unknown + readonly onBlur?: (event: BlurEvent_3) => unknown + readonly onFocus?: (event: FocusEvent_3) => unknown + readonly onHoverIn?: (event: MouseEvent_3) => unknown + readonly onHoverOut?: (event: MouseEvent_3) => unknown + readonly onLongPress?: (event: GestureResponderEvent_3) => unknown + readonly onPress?: (event: GestureResponderEvent_3) => unknown + readonly onPressIn?: (event: GestureResponderEvent_3) => unknown + readonly onPressMove?: (event: GestureResponderEvent_3) => unknown + readonly onPressOut?: (event: GestureResponderEvent_3) => unknown readonly pressRectOffset?: RectOrSize } declare type PressabilityEventHandlers = { - readonly onBlur: (event: BlurEvent) => void - readonly onClick: (event: GestureResponderEvent) => void - readonly onFocus: (event: FocusEvent) => void - readonly onMouseEnter?: (event: MouseEvent) => void - readonly onMouseLeave?: (event: MouseEvent) => void - readonly onPointerEnter?: (event: PointerEvent) => void - readonly onPointerLeave?: (event: PointerEvent) => void - readonly onResponderGrant: (event: GestureResponderEvent) => boolean | void - readonly onResponderMove: (event: GestureResponderEvent) => void - readonly onResponderRelease: (event: GestureResponderEvent) => void - readonly onResponderTerminate: (event: GestureResponderEvent) => void + readonly onBlur: (event: BlurEvent_3) => void + readonly onClick: (event: GestureResponderEvent_3) => void + readonly onFocus: (event: FocusEvent_3) => void + readonly onMouseEnter?: (event: MouseEvent_3) => void + readonly onMouseLeave?: (event: MouseEvent_3) => void + readonly onPointerEnter?: (event: PointerEvent_3) => void + readonly onPointerLeave?: (event: PointerEvent_3) => void + readonly onResponderGrant: (event: GestureResponderEvent_3) => boolean | void + readonly onResponderMove: (event: GestureResponderEvent_3) => void + readonly onResponderRelease: (event: GestureResponderEvent_3) => void + readonly onResponderTerminate: (event: GestureResponderEvent_3) => void readonly onResponderTerminationRequest: () => boolean readonly onStartShouldSetResponder: () => boolean } @@ -3709,7 +3064,7 @@ declare type Pressable = typeof Pressable declare type PressableAndroidRippleConfig = { alpha?: number borderless?: boolean - color?: ColorValue + color?: ColorValue_2 foreground?: boolean radius?: number } @@ -3726,14 +3081,14 @@ declare type PressableBaseProps = { readonly delayLongPress?: number readonly disabled?: boolean readonly hitSlop?: RectOrSize - readonly onHoverIn?: (event: MouseEvent) => unknown - readonly onHoverOut?: (event: MouseEvent) => unknown - readonly onLayout?: (event: LayoutChangeEvent) => unknown - readonly onLongPress?: (event: GestureResponderEvent) => unknown - readonly onPress?: (event: GestureResponderEvent) => unknown - readonly onPressIn?: (event: GestureResponderEvent) => unknown - readonly onPressMove?: (event: GestureResponderEvent) => unknown - readonly onPressOut?: (event: GestureResponderEvent) => unknown + readonly onHoverIn?: (event: MouseEvent_2) => unknown + readonly onHoverOut?: (event: MouseEvent_2) => unknown + readonly onLayout?: (event: LayoutChangeEvent_2) => unknown + readonly onLongPress?: (event: GestureResponderEvent_2) => unknown + readonly onPress?: (event: GestureResponderEvent_2) => unknown + readonly onPressIn?: (event: GestureResponderEvent_2) => unknown + readonly onPressMove?: (event: GestureResponderEvent_2) => unknown + readonly onPressOut?: (event: GestureResponderEvent_2) => unknown readonly pressRetentionOffset?: RectOrSize readonly style?: | ((state: PressableStateCallbackType) => ViewStyleProp) @@ -3755,16 +3110,15 @@ declare type PressRetentionOffset = { readonly right: number readonly top: number } -declare type Primitive = boolean | number | string | symbol | void declare type processColor = typeof processColor declare function processColor_default( - color?: (ColorValue | number) | null | undefined, + color?: (ColorValue_4 | number) | null | undefined, ): null | ProcessedColorValue | undefined -declare type ProcessedColorValue = NativeColorValue | number +declare type ProcessedColorValue = NativeColorValue_2 | number declare type ProgressBarAndroid = typeof ProgressBarAndroid declare type ProgressBarAndroidBaseProps = { readonly animating?: boolean - readonly color?: ColorValue + readonly color?: ColorValue_2 readonly testID?: string } declare type ProgressBarAndroidInstance = HostInstance @@ -3855,45 +3209,6 @@ declare type PushNotificationPermissions = { badge: boolean sound: boolean } -declare type RadialExtent = - | "closest-corner" - | "closest-side" - | "farthest-corner" - | "farthest-side" -declare type RadialGradientPosition = - | { - bottom: number | string - left: number | string - } - | { - bottom: number | string - right: number | string - } - | { - left: number | string - top: number | string - } - | { - right: number | string - top: number | string - } -declare type RadialGradientShape = "circle" | "ellipse" -declare type RadialGradientSize = - | RadialExtent - | { - x: number | string - y: number | string - } -declare type RadialGradientValue = { - colorStops: ReadonlyArray<{ - color: ____ColorValue_Internal - positions?: ReadonlyArray - }> - position: RadialGradientPosition - shape: RadialGradientShape - size: RadialGradientSize - type: "radial-gradient" -} declare type Rationale = { buttonNegative?: string buttonNeutral?: string @@ -3956,7 +3271,7 @@ declare type ReactFabricType = { } declare class ReactNativeDocument_default extends ReadOnlyNode_default { get childElementCount(): number - get children(): HTMLCollection_default + get children(): HTMLCollection constructor( rootTag: RootTag, instanceHandle: ReactNativeDocumentInstanceHandle, @@ -3978,6 +3293,7 @@ declare class ReactNativeElement_default extends ReadOnlyElement_default { protected constructor() focus(): void measure(callback: MeasureOnSuccessCallback): void + measureAsyncOnUI(callback: MeasureOnSuccessCallback): void measureInWindow(callback: MeasureInWindowOnSuccessCallback): void measureLayout( relativeToNativeNode: HostInstance | number, @@ -4009,7 +3325,7 @@ declare class ReadOnlyCharacterData_default extends ReadOnlyNode_default { } declare class ReadOnlyElement_default extends ReadOnlyNode_default { get childElementCount(): number - get children(): HTMLCollection_default + get children(): HTMLCollection get clientHeight(): number get clientLeft(): number get clientTop(): number @@ -4102,15 +3418,15 @@ declare interface RefreshControlProps RefreshControlBaseProps > {} declare type RefreshControlPropsAndroid = { - readonly colors?: ReadonlyArray + readonly colors?: ReadonlyArray readonly enabled?: boolean - readonly progressBackgroundColor?: ColorValue + readonly progressBackgroundColor?: ColorValue_2 readonly size?: "default" | "large" } declare type RefreshControlPropsIOS = { - readonly tintColor?: ColorValue + readonly tintColor?: ColorValue_2 readonly title?: string - readonly titleColor?: ColorValue + readonly titleColor?: ColorValue_2 } declare type registerCallableModule = typeof registerCallableModule declare type RegisterCallableModule = ( @@ -4196,27 +3512,6 @@ declare type ResolvedAssetSource = { readonly uri: string readonly width: number | undefined } -declare type ResponderSyntheticEvent = Readonly< - NativeSyntheticEvent & { - touchHistory: { - readonly indexOfSingleActiveTouch: number - readonly mostRecentTimeStamp: number - readonly numberActiveTouches: number - readonly touchBank: ReadonlyArray<{ - readonly currentPageX: number - readonly currentPageY: number - readonly currentTimeStamp: number - readonly previousPageX: number - readonly previousPageY: number - readonly previousTimeStamp: number - readonly startPageX: number - readonly startPageY: number - readonly startTimeStamp: number - readonly touchActive: boolean - }> - } - } -> declare type ReturnKeyType = "done" | "go" | "next" | "search" | "send" declare type ReturnKeyTypeAndroid = "none" | "previous" declare type ReturnKeyTypeIOS = @@ -4312,7 +3607,7 @@ declare type RootTag = symbol & { __RootTag__: string } declare type RootTagContext = typeof RootTagContext -declare type RootViewStyleProvider = (appParameters: Object) => ViewStyleProp +declare type RootViewStyleProvider = (appParameters: Object) => ViewStyleProp_2 declare function runApplication( appKey: string, appParameters: AppParameters, @@ -4332,7 +3627,6 @@ declare type ScheduleLocalNotificationDetails = PresentLocalNotificationDetails & { repeatInterval?: "day" | "hour" | "minute" | "month" | "week" | "year" } -declare type ScrollEvent = NativeSyntheticEvent declare type ScrollResponderType = ScrollViewImperativeMethods declare type ScrollToLocationParamsType = { animated?: boolean @@ -4362,11 +3656,11 @@ declare type ScrollViewBaseProps = { readonly autoscrollToTopThreshold?: number readonly minIndexForVisible: number } - readonly onMomentumScrollBegin?: (event: ScrollEvent) => void - readonly onMomentumScrollEnd?: (event: ScrollEvent) => void - readonly onScroll?: (event: ScrollEvent) => void - readonly onScrollBeginDrag?: (event: ScrollEvent) => void - readonly onScrollEndDrag?: (event: ScrollEvent) => void + readonly onMomentumScrollBegin?: (event: ScrollEvent_2) => void + readonly onMomentumScrollEnd?: (event: ScrollEvent_2) => void + readonly onScroll?: (event: ScrollEvent_2) => void + readonly onScrollBeginDrag?: (event: ScrollEvent_2) => void + readonly onScrollEndDrag?: (event: ScrollEvent_2) => void readonly pagingEnabled?: boolean readonly refreshControl?: React.JSX.Element readonly removeClippedSubviews?: boolean @@ -4436,7 +3730,7 @@ declare interface ScrollViewProps ScrollViewBaseProps > {} declare type ScrollViewPropsAndroid = { - readonly endFillColor?: ColorValue + readonly endFillColor?: ColorValue_2 readonly fadingEdgeLength?: | (number | undefined) | { @@ -4476,7 +3770,7 @@ declare type ScrollViewPropsIOS = { readonly scrollToOverflowEnabled?: boolean readonly showsHorizontalScrollIndicator?: boolean readonly zoomScale?: number - readonly onScrollToTop?: (event: ScrollEvent) => void + readonly onScrollToTop?: (event: ScrollEvent_2) => void } declare interface ScrollViewScrollToOptions { animated?: boolean @@ -4491,7 +3785,7 @@ declare type ScrollViewStickyHeaderProps = { readonly nextHeaderLayoutY: number | undefined readonly scrollAnimatedValue: Animated.Value readonly scrollViewHeight: number | undefined - readonly onLayout: (event: LayoutChangeEvent) => void + readonly onLayout: (event: LayoutChangeEvent_2) => void } declare type SectionBase< SectionItemT, @@ -4580,8 +3874,6 @@ declare function setRuntimeConfigProvider( verify: boolean }, ): void -declare type setStyleAttributePreprocessor = - typeof setStyleAttributePreprocessor declare function setSurfaceProps( appKey: string, appParameters: Object, @@ -4639,7 +3931,7 @@ declare type ShareOptions = { dialogTitle?: string excludedActivityTypes?: Array subject?: string - tintColor?: ColorValue + tintColor?: ColorValue_3 } declare interface Spec extends TurboModule { readonly blur?: (reactTag: number) => void @@ -4843,7 +4135,7 @@ declare class StatusBar extends React.Component { static pushStackEntry(props: StatusBarProps): StackProps render(): React.ReactNode static replaceStackEntry(entry: StackProps, props: StatusBarProps): StackProps - static setBackgroundColor(color: ColorValue, animated?: boolean): void + static setBackgroundColor(color: ColorValue_2, animated?: boolean): void static setBarStyle(style: StatusBarStyle, animated?: boolean): void static setHidden(hidden: boolean, animation?: StatusBarAnimation): void static setNetworkActivityIndicatorVisible(visible: boolean): void @@ -4864,7 +4156,7 @@ declare type StatusBarProps = Readonly< StatusBarPropsAndroid & StatusBarPropsIOS & StatusBarBaseProps > declare type StatusBarPropsAndroid = { - readonly backgroundColor?: ColorValue + readonly backgroundColor?: ColorValue_2 readonly translucent?: boolean } declare type StatusBarPropsIOS = { @@ -4884,28 +4176,10 @@ declare type StickyHeaderComponentType = ( }> }, ) => React.ReactNode -declare type StyleProp = - | "" - | false - | null - | ReadonlyArray> - | T - | void -declare namespace StyleSheet { - export { - AbsoluteFillStyle, - hairlineWidth, - absoluteFill, - compose, - flatten, - setStyleAttributePreprocessor, - create, - } -} declare type SubmitBehavior = "blurAndSubmit" | "newline" | "submit" declare type subtract = typeof subtract declare type Switch = typeof Switch -declare type SwitchChangeEvent = NativeSyntheticEvent +declare type SwitchChangeEvent = NativeSyntheticEvent_2 declare type SwitchChangeEventData = { readonly target: number readonly value: boolean @@ -4915,20 +4189,20 @@ declare interface SwitchProps extends Readonly {} declare type SwitchPropsBase = { disabled?: boolean - ios_backgroundColor?: ColorValue + ios_backgroundColor?: ColorValue_2 onChange?: (event: SwitchChangeEvent) => Promise | void onValueChange?: (value: boolean) => Promise | void - thumbColor?: ColorValue + thumbColor?: ColorValue_2 trackColor?: { - readonly false?: ColorValue - readonly true?: ColorValue + readonly false?: ColorValue_2 + readonly true?: ColorValue_2 } value?: boolean } declare type SwitchPropsIOS = { - onTintColor?: ColorValue - thumbTintColor?: ColorValue - tintColor?: ColorValue + onTintColor?: ColorValue_2 + thumbTintColor?: ColorValue_2 + tintColor?: ColorValue_2 } declare namespace Systrace { export { @@ -4944,9 +4218,6 @@ declare namespace Systrace { EventArgs, } } -declare type TargetedEvent = { - readonly target: number -} declare type TargetEvent = { readonly target: number } @@ -4973,19 +4244,19 @@ declare type TextBaseProps = { readonly nativeID?: string readonly numberOfLines?: number readonly onAccessibilityAction?: (event: AccessibilityActionEvent) => unknown - readonly onLayout?: (event: LayoutChangeEvent) => unknown - readonly onLongPress?: (event: GestureResponderEvent) => unknown + readonly onLayout?: (event: LayoutChangeEvent_3) => unknown + readonly onLongPress?: (event: GestureResponderEvent_3) => unknown readonly onMoveShouldSetResponder?: () => boolean - readonly onPress?: (event: GestureResponderEvent) => unknown - readonly onPressIn?: (event: GestureResponderEvent) => unknown - readonly onPressOut?: (event: GestureResponderEvent) => unknown - readonly onResponderGrant?: (event: GestureResponderEvent) => void - readonly onResponderMove?: (event: GestureResponderEvent) => void - readonly onResponderRelease?: (event: GestureResponderEvent) => void - readonly onResponderTerminate?: (event: GestureResponderEvent) => void + readonly onPress?: (event: GestureResponderEvent_3) => unknown + readonly onPressIn?: (event: GestureResponderEvent_3) => unknown + readonly onPressOut?: (event: GestureResponderEvent_3) => unknown + readonly onResponderGrant?: (event: GestureResponderEvent_3) => void + readonly onResponderMove?: (event: GestureResponderEvent_3) => void + readonly onResponderRelease?: (event: GestureResponderEvent_3) => void + readonly onResponderTerminate?: (event: GestureResponderEvent_3) => void readonly onResponderTerminationRequest?: () => boolean readonly onStartShouldSetResponder?: () => boolean - readonly onTextLayout?: (event: TextLayoutEvent) => unknown + readonly onTextLayout?: (event: TextLayoutEvent_2) => unknown readonly pointerEvents?: "auto" | "box-none" | "box-only" | "none" readonly pressRetentionOffset?: PressRetentionOffset readonly role?: Role @@ -5042,7 +4313,7 @@ declare type TextContentType = | "username" declare type TextInput = typeof TextInput declare type TextInputAndroidProps = { - readonly cursorColor?: ColorValue + readonly cursorColor?: ColorValue_2 readonly disableFullscreenUI?: boolean readonly importantForAutofill?: | "auto" @@ -5055,10 +4326,10 @@ declare type TextInputAndroidProps = { readonly numberOfLines?: number readonly returnKeyLabel?: string readonly rows?: number - readonly selectionHandleColor?: ColorValue + readonly selectionHandleColor?: ColorValue_2 readonly showSoftInputOnFocus?: boolean readonly textBreakStrategy?: "balanced" | "highQuality" | "simple" - readonly underlineColorAndroid?: ColorValue + readonly underlineColorAndroid?: ColorValue_2 } declare type TextInputBaseProps = { readonly allowFontScaling?: boolean @@ -5154,14 +4425,14 @@ declare type TextInputBaseProps = { readonly onEndEditing?: (e: TextInputEndEditingEvent) => unknown readonly onFocus?: (e: TextInputFocusEvent) => unknown readonly onKeyPress?: (e: TextInputKeyPressEvent) => unknown - readonly onPress?: (event: GestureResponderEvent) => unknown - readonly onPressIn?: (event: GestureResponderEvent) => unknown - readonly onPressOut?: (event: GestureResponderEvent) => unknown - readonly onScroll?: (e: ScrollEvent) => unknown + readonly onPress?: (event: GestureResponderEvent_2) => unknown + readonly onPressIn?: (event: GestureResponderEvent_2) => unknown + readonly onPressOut?: (event: GestureResponderEvent_2) => unknown + readonly onScroll?: (e: ScrollEvent_2) => unknown readonly onSelectionChange?: (e: TextInputSelectionChangeEvent) => unknown readonly onSubmitEditing?: (e: TextInputSubmitEditingEvent) => unknown readonly placeholder?: string - readonly placeholderTextColor?: ColorValue + readonly placeholderTextColor?: ColorValue_2 readonly readOnly?: boolean readonly returnKeyType?: ReturnKeyTypeOptions readonly secureTextEntry?: boolean @@ -5169,16 +4440,16 @@ declare type TextInputBaseProps = { readonly end?: number readonly start: number } - readonly selectionColor?: ColorValue + readonly selectionColor?: ColorValue_2 readonly selectTextOnFocus?: boolean - readonly style?: TextStyleProp + readonly style?: TextStyleProp_2 readonly submitBehavior?: SubmitBehavior readonly textAlign?: "center" | "left" | "right" readonly value?: string } -declare type TextInputBlurEvent = BlurEvent +declare type TextInputBlurEvent = BlurEvent_2 declare type TextInputChangeEvent = - NativeSyntheticEvent + NativeSyntheticEvent_2 declare type TextInputChangeEventData = { readonly eventCount: number readonly selection?: Selection @@ -5194,7 +4465,7 @@ declare type TextInputComponentStatics = { } } declare type TextInputContentSizeChangeEvent = - NativeSyntheticEvent + NativeSyntheticEvent_2 declare type TextInputContentSizeChangeEventData = { readonly contentSize: { readonly height: number @@ -5203,14 +4474,14 @@ declare type TextInputContentSizeChangeEventData = { readonly target: number } declare type TextInputEndEditingEvent = - NativeSyntheticEvent + NativeSyntheticEvent_2 declare type TextInputEndEditingEventData = Readonly< TargetEvent & { eventCount: number text: string } > -declare type TextInputFocusEvent = FocusEvent +declare type TextInputFocusEvent = FocusEvent_2 declare type TextInputInstance = _TextInputInstance declare type TextInputIOSProps = { readonly clearButtonMode?: @@ -5247,7 +4518,7 @@ declare type TextInputIOSProps = { readonly textContentType?: TextContentType } declare type TextInputKeyPressEvent = - NativeSyntheticEvent + NativeSyntheticEvent_2 declare type TextInputKeyPressEventData = Readonly< Omit & { eventCount: number @@ -5263,14 +4534,14 @@ declare interface TextInputProps TextInputBaseProps > {} declare type TextInputSelectionChangeEvent = - NativeSyntheticEvent + NativeSyntheticEvent_2 declare type TextInputSelectionChangeEventData = Readonly< TargetEvent & { selection: Selection } > declare type TextInputSubmitEditingEvent = - NativeSyntheticEvent + NativeSyntheticEvent_2 declare type TextInputSubmitEditingEventData = Readonly< TargetEvent & { eventCount: number @@ -5279,23 +4550,10 @@ declare type TextInputSubmitEditingEventData = Readonly< > declare type TextInputType = InternalTextInput & TextInputComponentStatics declare type TextInstance = HostInstance -declare type TextLayoutEvent = NativeSyntheticEvent -declare type TextLayoutEventData = { - readonly lines: Array -} -declare type TextLayoutLine = Readonly< - LayoutRectangle & { - ascender: number - capHeight: number - descender: number - text: string - xHeight: number - } -> declare type TextPointerEventProps = { - readonly onPointerEnter?: (event: PointerEvent) => void - readonly onPointerLeave?: (event: PointerEvent) => void - readonly onPointerMove?: (event: PointerEvent) => void + readonly onPointerEnter?: (event: PointerEvent_3) => void + readonly onPointerLeave?: (event: PointerEvent_3) => void + readonly onPointerMove?: (event: PointerEvent_3) => void } declare interface TextProps extends Readonly< @@ -5310,7 +4568,7 @@ declare type TextPropsAndroid = { dataDetectorType?: "all" | "email" | "link" | "none" | "phoneNumber" disabled?: boolean minimumFontScale?: number - selectionColor?: ColorValue + selectionColor?: ColorValue_3 textBreakStrategy?: "balanced" | "highQuality" | "simple" } declare type TextPropsIOS = { @@ -5330,8 +4588,6 @@ declare type TextPropsIOS = { lineBreakStrategyIOS?: "hangul-word" | "none" | "push-out" | "standard" suppressHighlighting?: boolean } -declare type TextStyle = ____TextStyle_Internal -declare type TextStyleProp = ____TextStyleProp_Internal declare type Timespan = { endExtras?: Extras endTime?: number @@ -5368,7 +4624,7 @@ declare type TouchableHighlightBaseProps = { readonly onShowUnderlay?: () => void readonly style?: ViewStyleProp readonly testOnly_pressed?: boolean - readonly underlayColor?: ColorValue + readonly underlayColor?: ColorValue_2 } declare type TouchableHighlightInstance = HostInstance declare interface TouchableHighlightProps @@ -5385,7 +4641,7 @@ declare class TouchableNativeFeedback extends React.Component< state: TouchableNativeFeedbackState static canUseNativeForeground: () => boolean static Ripple: ( - color: ColorValue, + color: ColorValue_2, borderless: boolean, rippleRadius?: null | number | undefined, ) => { @@ -5499,13 +4755,13 @@ declare interface TouchableWithoutFeedbackProps | "yes" readonly nativeID?: string readonly onAccessibilityAction?: (event: AccessibilityActionEvent) => unknown - readonly onBlur?: (event: BlurEvent) => unknown - readonly onFocus?: (event: FocusEvent) => unknown - readonly onLayout?: (event: LayoutChangeEvent) => unknown - readonly onLongPress?: (event: GestureResponderEvent) => unknown - readonly onPress?: (event: GestureResponderEvent) => unknown - readonly onPressIn?: (event: GestureResponderEvent) => unknown - readonly onPressOut?: (event: GestureResponderEvent) => unknown + readonly onBlur?: (event: BlurEvent_2) => unknown + readonly onFocus?: (event: FocusEvent_2) => unknown + readonly onLayout?: (event: LayoutChangeEvent_2) => unknown + readonly onLongPress?: (event: GestureResponderEvent_2) => unknown + readonly onPress?: (event: GestureResponderEvent_2) => unknown + readonly onPressIn?: (event: GestureResponderEvent_2) => unknown + readonly onPressOut?: (event: GestureResponderEvent_2) => unknown readonly pressRetentionOffset?: EdgeInsetsOrSizeProp readonly rejectResponderTermination?: boolean readonly style?: ViewStyleProp @@ -5516,21 +4772,20 @@ declare type TouchableWithoutFeedbackPropsAndroid = { } declare type TouchableWithoutFeedbackPropsIOS = {} declare type TouchEventProps = { - readonly onTouchCancel?: (e: GestureResponderEvent) => void - readonly onTouchCancelCapture?: (e: GestureResponderEvent) => void - readonly onTouchEnd?: (e: GestureResponderEvent) => void - readonly onTouchEndCapture?: (e: GestureResponderEvent) => void - readonly onTouchMove?: (e: GestureResponderEvent) => void - readonly onTouchMoveCapture?: (e: GestureResponderEvent) => void - readonly onTouchStart?: (e: GestureResponderEvent) => void - readonly onTouchStartCapture?: (e: GestureResponderEvent) => void + readonly onTouchCancel?: (e: GestureResponderEvent_2) => void + readonly onTouchCancelCapture?: (e: GestureResponderEvent_2) => void + readonly onTouchEnd?: (e: GestureResponderEvent_2) => void + readonly onTouchEndCapture?: (e: GestureResponderEvent_2) => void + readonly onTouchMove?: (e: GestureResponderEvent_2) => void + readonly onTouchMoveCapture?: (e: GestureResponderEvent_2) => void + readonly onTouchStart?: (e: GestureResponderEvent_2) => void + readonly onTouchStartCapture?: (e: GestureResponderEvent_2) => void } declare function trace( eventName: EventName, fn: () => T, args?: EventArgs, ): T -declare type TransformsStyle = ____TransformStyle_Internal declare interface TurboModule extends DEPRECATED_RCTExport {} declare namespace TurboModuleRegistry { export { get_2 as get, getEnforcing } @@ -5582,11 +4837,6 @@ declare type UTFSequence = typeof UTFSequence declare type Value = null | { horizontal: boolean } -declare type ValueOfUnion = T extends any - ? K extends keyof T - ? T[K] - : never - : never declare type ValueXYListenerCallback = (value: { x: number y: number @@ -5715,15 +4965,13 @@ declare type ViewPropsAndroid = { readonly nextFocusLeft?: number readonly nextFocusRight?: number readonly nextFocusUp?: number - readonly onClick?: (event: GestureResponderEvent) => unknown + readonly onClick?: (event: GestureResponderEvent_2) => unknown readonly renderToHardwareTextureAndroid?: boolean readonly tabIndex?: -1 | 0 } declare type ViewPropsIOS = { readonly shouldRasterizeIOS?: boolean } -declare type ViewStyle = ____ViewStyle_Internal -declare type ViewStyleProp = ____ViewStyleProp_Internal declare type VirtualizedList = typeof VirtualizedList declare class VirtualizedList_default extends StateSafePureComponent_default< VirtualizedListProps, @@ -5858,28 +5106,6 @@ declare type WindowsPlatform = { get isTV(): boolean get Version(): number } -declare type WithAnimatedValue = T extends Builtin | Nullable - ? T - : T extends Primitive - ? - | AnimatedAddition_default - | AnimatedDiffClamp_default - | AnimatedDivision_default - | AnimatedInterpolation_default - | AnimatedInterpolation_default - | AnimatedInterpolation_default - | AnimatedInterpolation_default - | AnimatedModulo_default - | AnimatedMultiplication_default - | AnimatedNode_default - | AnimatedSubtraction_default - | AnimatedValue_default - | T - : T extends ReadonlyArray - ? ReadonlyArray> - : T extends {} - ? { readonly [K in keyof T]: WithAnimatedValue } - : T declare type WithDefault< Type extends DefaultTypes, Value extends (null | Type | undefined) | string, @@ -5891,26 +5117,26 @@ declare type WrapperComponentProvider = ( appParameters: Object, ) => React.ComponentType export { - AccessibilityActionEvent, // a0d4daa0 - AccessibilityInfo, // 23a3aa9b + AccessibilityActionEvent, // 8c149bb8 + AccessibilityInfo, // c6de3d14 AccessibilityProps, // 5a2836fc AccessibilityRole, // f2f2e066 AccessibilityState, // b0c2b3f7 AccessibilityValue, // cf8bcb74 - ActionSheetIOS, // b558559e - ActionSheetIOSOptions, // 1756eb5a - ActivityIndicator, // 2a0518e9 - ActivityIndicatorInstance, // a82dd4e7 - ActivityIndicatorProps, // f330d1dc + ActionSheetIOS, // ff1b66ba + ActionSheetIOSOptions, // c9d34c8f + ActivityIndicator, // a836ae8c + ActivityIndicatorInstance, // 9bf25fd4 + ActivityIndicatorProps, // ceae15cd Alert, // 5bf12165 AlertButton, // bf1a3b60 AlertButtonStyle, // ec9fb242 AlertOptions, // a0cdac0f AlertType, // 5ab91217 AndroidKeyboardEvent, // e03becc8 - Animated, // 09c0f98d + Animated, // b10dc54d AppConfig, // 35c0ca70 - AppRegistry, // 7ef8e53a + AppRegistry, // 497ddbfe AppState, // 12012be5 AppStateEvent, // 80f034c3 AppStateStatus, // 447e5ef2 @@ -5918,103 +5144,103 @@ export { AutoCapitalize, // c0e857a0 BackHandler, // f139fc69 BackPressEventName, // 4620fb76 - BlurEvent, // 4ba4f941 - BoxShadowValue, // b679703f - Button, // d7ffb46e - ButtonInstance, // 3f83f7e7 - ButtonProps, // 35ffc98c + BlurEvent, + BoxShadowValue, + Button, // c1a5ceb0 + ButtonInstance, // 634ff1cc + ButtonProps, // d96e714d Clipboard, // 41addb89 - CodegenTypes, // ab4986cc + CodegenTypes, // cbed68ee ColorSchemeName, // 6615edd6 - ColorValue, // 98989a8f + ColorValue, ComponentProvider, // bf78f91b ComponentProviderInstrumentationHook, // 68823a13 - CursorValue, // 26522595 + CursorValue, DevMenu, // 21b8b7a9 DevSettings, // e55b91dc DeviceEventEmitter, // bdbdd014 DeviceInfo, // 521bfb71 DeviceInfoConstants, // 279e7858 - DimensionValue, // b163a381 + DimensionValue, Dimensions, // 980ef68c DimensionsPayload, // 653bc26c DisplayMetrics, // 1dc35cef DisplayMetricsAndroid, // 872e62eb - DrawerLayoutAndroid, // 52018924 + DrawerLayoutAndroid, // ece437f0 DrawerLayoutAndroidInstance, // c0694352 - DrawerLayoutAndroidProps, // 8dfceaf9 - DrawerSlideEvent, // c4ab8fba - DropShadowValue, // e9df2606 - DynamicColorIOS, // d96c228c - DynamicColorIOSTuple, // 023ce58e + DrawerLayoutAndroidProps, // ee1e24d1 + DrawerSlideEvent, // 2cb51c13 + DropShadowValue, + DynamicColorIOS, // 17cdfec3 + DynamicColorIOSTuple, // 6e3a7fd6 Easing, // 673080ba EasingFunction, // 14aee4c0 - EdgeInsetsValue, // bd44afe6 + EdgeInsetsValue, EmitterSubscription, // de50c359 EnterKeyHintTypeOptions, // 8314de78 ErrorUtils, // 38fb909e EventEmitter, // 2a2ea995 EventSubscription, // b8d084aa ExtendedExceptionData, // 5a6ccf5a - FilterFunction, // bf24c0e3 - FlatList, // d98f538f - FlatListInstance, // 62941810 - FlatListProps, // deadf762 - FocusEvent, // 850f1517 - FontVariant, // 7c7558bb - GestureResponderEvent, // 14d3e77a - GestureResponderHandlers, // c976c2ea - HostComponent, // a611806a - HostInstance, // f78dcaf8 + FilterFunction, + FlatList, // 4e3a4e5e + FlatListInstance, // 11f2c72a + FlatListProps, // 9dec4a12 + FocusEvent, + FontVariant, + GestureResponderEvent, + GestureResponderHandlers, // 4cbd2690 + HostComponent, // bfb27065 + HostInstance, // ce6445a7 I18nManager, // f9870e00 IEventEmitter, // fbef6131 IOSKeyboardEvent, // e67bfe3a IgnorePattern, // ec6f6ece - Image, // c6bb54ac - ImageBackground, // f4c8dcea - ImageBackgroundInstance, // 7c3cd110 - ImageBackgroundProps, // 3b22066a - ImageErrorEvent, // 978933f4 - ImageInstance, // 9a100753 - ImageLoadEvent, // 77f0b718 - ImageProgressEventIOS, // 445331a4 - ImageProps, // 3765f681 + Image, // 1875c405 + ImageBackground, // f1f467ea + ImageBackgroundInstance, // a3b03388 + ImageBackgroundProps, // e473572e + ImageErrorEvent, // 00c45183 + ImageInstance, // 867a71a1 + ImageLoadEvent, // bf4f5862 + ImageProgressEventIOS, // c0d96ec0 + ImageProps, // 70db2141 ImagePropsAndroid, // 9fd9bcbb - ImagePropsBase, // 2cab4147 - ImagePropsIOS, // 4a080668 + ImagePropsBase, // cccee6d8 + ImagePropsIOS, // 2b42a584 ImageRequireSource, // 681d683b ImageResolvedAssetSource, // f3060931 ImageSize, // 1c47cf88 ImageSource, // 48c7f316 ImageSourcePropType, // bfb5e5c6 - ImageStyle, // b184020c + ImageStyle, ImageURISource, // 016eb083 - InputAccessoryView, // 9695d393 - InputAccessoryViewProps, // d94dc290 + InputAccessoryView, // ba15b924 + InputAccessoryViewProps, // 75ceb760 InputModeOptions, // 4e8581b9 Insets, // e7fe432a - KeyDownEvent, // 5b147614 - KeyEvent, // 20fa4267 - KeyUpEvent, // 57f832c5 + KeyDownEvent, + KeyEvent, + KeyUpEvent, Keyboard, // 49414c97 - KeyboardAvoidingView, // 0af358b6 - KeyboardAvoidingViewInstance, // 1a3c8471 - KeyboardAvoidingViewProps, // 83473aa1 + KeyboardAvoidingView, // 3adea6eb + KeyboardAvoidingViewInstance, // 09e3f472 + KeyboardAvoidingViewProps, // acf67001 KeyboardEvent, // c3f895d4 KeyboardEventEasing, // af4091c8 KeyboardEventName, // 59299ad6 KeyboardMetrics, // 7997b799 KeyboardTypeOptions, // ae44efe7 - LayoutAnimation, // 54110cf7 + LayoutAnimation, // b397cd12 LayoutAnimationAnim, // 074da826 - LayoutAnimationConfig, // 5e200571 + LayoutAnimationConfig, // 902c9a1d LayoutAnimationProperties, // 84e6e197 LayoutAnimationProperty, // 52995f01 LayoutAnimationType, // 2da0a29b LayoutAnimationTypes, // 081b3bde - LayoutChangeEvent, // 98960b70 + LayoutChangeEvent, LayoutConformanceProps, // 055f03b8 - LayoutRectangle, // 6601b294 + LayoutRectangle, Linking, // 9a6a174d ListRenderItem, // b5353fd8 ListRenderItemInfo, // e8595b03 @@ -6024,179 +5250,179 @@ export { MeasureInWindowOnSuccessCallback, // a285f598 MeasureLayoutOnSuccessCallback, // 3592502a MeasureOnSuccessCallback, // 82824e59 - Modal, // f30cc19f - ModalBaseProps, // 71945951 - ModalInstance, // d466ce77 - ModalProps, // 4eb5a731 + Modal, // b74c127f + ModalBaseProps, // a8e0c264 + ModalInstance, // be867d40 + ModalProps, // 6f5dd1a0 ModalPropsAndroid, // 515fb173 - ModalPropsIOS, // 0e13cfcc - ModeChangeEvent, // f64bf69d - MouseEvent, // d1f889fd + ModalPropsIOS, // e7985592 + ModeChangeEvent, // 6cf6d736 + MouseEvent, NativeAppEventEmitter, // 08d4c47d - NativeColorValue, // d2094c29 - NativeComponentRegistry, // c8fc2fb5 + NativeColorValue, + NativeComponentRegistry, // d3f2ee38 NativeEventEmitter, // 27f97c1a NativeEventSubscription, // de3942e7 NativeModules, // 4597cd36 - NativeMouseEvent, // 16c856a5 - NativePointerEvent, // 64ff2151 - NativeScrollEvent, // caad7f53 - NativeSyntheticEvent, // 534aaa92 - NativeTouchEvent, // 59b676df - NativeUIEvent, // 44ac26ac + NativeMouseEvent, + NativePointerEvent, + NativeScrollEvent, + NativeSyntheticEvent, + NativeTouchEvent, + NativeUIEvent, Networking, // bbc5be42 - OpaqueColorValue, // 25f3fa5b - PanResponder, // f8f71cac - PanResponderCallbacks, // 6d63e7be + OpaqueColorValue, + PanResponder, // dcdcdf2c + PanResponderCallbacks, // a7f4e35d PanResponderGestureState, // 54baf558 - PanResponderInstance, // 69cebbe8 + PanResponderInstance, // 55397832 Permission, // 06473f4f PermissionStatus, // 4b7de97b PermissionsAndroid, // db2a401e PixelRatio, // 10d9e32d Platform, // b73caa89 - PlatformColor, // 8297ec62 + PlatformColor, // 7fe61fb8 PlatformOSType, // 0a17561e PlatformSelectSpec, // 09ed7758 - PointValue, // 69db075f - PointerEvent, // ff599afe - PressabilityConfig, // faab5639 - PressabilityEventHandlers, // 0b910091 - Pressable, // d508cef4 - PressableAndroidRippleConfig, // ee32eaca - PressableInstance, // eebfe911 - PressableProps, // f5bffd11 + PointValue, + PointerEvent, + PressabilityConfig, // a008e138 + PressabilityEventHandlers, // 128baa94 + Pressable, // 3977768a + PressableAndroidRippleConfig, // f84e46a5 + PressableInstance, // 2e027ba7 + PressableProps, // e782423a PressableStateCallbackType, // 9af36561 - ProcessedColorValue, // 33f74304 - ProgressBarAndroid, // 8ef8ba6a - ProgressBarAndroidInstance, // ab545ef1 - ProgressBarAndroidProps, // f31ec709 + ProcessedColorValue, // ca2815ba + ProgressBarAndroid, // d8071a81 + ProgressBarAndroidInstance, // 2fabc5df + ProgressBarAndroidProps, // d244c184 PublicRootInstance, // 8040afd7 - PublicTextInstance, // 6937c7bf + PublicTextInstance, // 57061e2c PushNotificationEventName, // 84e7e150 PushNotificationIOS, // b4d1fe78 PushNotificationPermissions, // c2e7ae4f Rationale, // 5df1b1c1 ReactNativeVersion, // abd76827 - RefreshControl, // 48160637 - RefreshControlInstance, // f7d632ba - RefreshControlProps, // b028bb5a - RefreshControlPropsAndroid, // 99f64c97 - RefreshControlPropsIOS, // 72a36381 + RefreshControl, // 925975a3 + RefreshControlInstance, // ac8cacde + RefreshControlProps, // ec500418 + RefreshControlPropsAndroid, // e26ba868 + RefreshControlPropsIOS, // ef002d25 Registry, // 6c39216d - ResponderSyntheticEvent, // ebfa7f48 + ResponderSyntheticEvent, ReturnKeyTypeOptions, // afd47ba3 Role, // af7b889d RootTag, // 3cd10504 RootTagContext, // 38bfc8f6 - RootViewStyleProvider, // 8792d506 + RootViewStyleProvider, // ca26cfc9 Runnable, // 594dd93a Runnables, // 4367c557 - SafeAreaView, // 963d85d0 - SafeAreaViewInstance, // 21dba39c + SafeAreaView, // 59479eb3 + SafeAreaViewInstance, // 6a47a601 ScaledSize, // 07e417c7 - ScrollEvent, // d7abdd0a - ScrollResponderType, // 8864c38f + ScrollEvent, + ScrollResponderType, // 6898e0fb ScrollToLocationParamsType, // d7ecdad1 - ScrollView, // c67a52a8 - ScrollViewImperativeMethods, // b4c3feed - ScrollViewInstance, // 971d4924 - ScrollViewProps, // 3ab71e04 - ScrollViewPropsAndroid, // 44210553 - ScrollViewPropsIOS, // b7921e26 + ScrollView, // 0983e37d + ScrollViewImperativeMethods, // 73103377 + ScrollViewInstance, // 04331d06 + ScrollViewProps, // 70378076 + ScrollViewPropsAndroid, // e351edee + ScrollViewPropsIOS, // 731436ec ScrollViewScrollToOptions, // 3313411e SectionBase, // dca83594 - SectionList, // e4cd2cce + SectionList, // b4c1c4d5 SectionListData, // e0d79987 - SectionListInstance, // 06be7c37 - SectionListProps, // 983ca166 + SectionListInstance, // d7e98d02 + SectionListProps, // bf3f08b6 SectionListRenderItem, // 466e3e87 SectionListRenderItemInfo, // d809238e Separators, // 6a45f7e3 Settings, // 2be0c61e - Share, // e4591b32 + Share, // e9555e0f ShareAction, // ead1004a ShareActionSheetError, // 55e4f451 ShareActionSheetIOSOptions, // eff574f5 ShareContent, // 7c627896 - ShareOptions, // 800c3a4e - StatusBar, // 875b4eca + ShareOptions, // de4d1db6 + StatusBar, // 3462b6fd StatusBarAnimation, // 7fd047e6 - StatusBarInstance, // 045e0c50 - StatusBarProps, // b72a9127 + StatusBarInstance, // 2959320d + StatusBarProps, // 0d9337f7 StatusBarStyle, // 78f53eea - StyleProp, // fa0e9b4a - StyleSheet, // 29f1b323 + StyleProp, + StyleSheet, SubmitBehavior, // c4ddf490 - Switch, // 370e8ea2 - SwitchChangeEvent, // 899635b1 - SwitchInstance, // 3c50eec5 - SwitchProps, // 61214431 + Switch, // 837ed385 + SwitchChangeEvent, // 2ccc149f + SwitchInstance, // 2ad16dc6 + SwitchProps, // e4138d47 Systrace, // 626d178c TVViewPropsIOS, // 330ce7b5 - TargetedEvent, // 16e98910 + TargetedEvent, TaskProvider, // 266dedf2 - Text, // 17a6c136 + Text, // 64358cdd TextContentType, // 239b3ecc - TextInput, // 8f39debf - TextInputAndroidProps, // 3f09ce49 - TextInputChangeEvent, // f55eef98 - TextInputContentSizeChangeEvent, // a27cd32a - TextInputEndEditingEvent, // e690b56b - TextInputFocusEvent, // 19851a88 + TextInput, // 8e935b87 + TextInputAndroidProps, // 4e69e901 + TextInputChangeEvent, // f3102c8b + TextInputContentSizeChangeEvent, // a8b20d8c + TextInputEndEditingEvent, // 2560a9b2 + TextInputFocusEvent, // 19a628dd TextInputIOSProps, // 0d05a855 - TextInputInstance, // 5a0c0e0d - TextInputKeyPressEvent, // 546c5d07 - TextInputProps, // 899880a2 - TextInputSelectionChangeEvent, // e58f2abc - TextInputSubmitEditingEvent, // 6bcb2aa5 - TextInstance, // 05463a96 - TextLayoutEvent, // 3f54186f - TextProps, // a7822140 - TextStyle, // ab0f32ca + TextInputInstance, // 4110cfc4 + TextInputKeyPressEvent, // 86f0355a + TextInputProps, // 7091cc55 + TextInputSelectionChangeEvent, // b0efaf08 + TextInputSubmitEditingEvent, // 049226bf + TextInstance, // 996a8d24 + TextLayoutEvent, + TextProps, // 27454dc9 + TextStyle, ToastAndroid, // 88a8969a - Touchable, // b280637f - TouchableHighlight, // 452aa27b - TouchableHighlightInstance, // b510c0eb - TouchableHighlightProps, // dc0126c9 - TouchableNativeFeedback, // bee68787 - TouchableNativeFeedbackInstance, // f66604fc - TouchableNativeFeedbackProps, // 91de1ed8 - TouchableOpacity, // 0c1239fd - TouchableOpacityInstance, // b186055b - TouchableOpacityProps, // 4c5af3d2 - TouchableWithoutFeedback, // 8d374ae1 - TouchableWithoutFeedbackProps, // 65c8c30a - TransformsStyle, // 65e70f18 + Touchable, // f1852c9b + TouchableHighlight, // 74fa2402 + TouchableHighlightInstance, // df8afc56 + TouchableHighlightProps, // de55d929 + TouchableNativeFeedback, // c5f4d397 + TouchableNativeFeedbackInstance, // df2284f0 + TouchableNativeFeedbackProps, // 3efe2c59 + TouchableOpacity, // 61d6d69c + TouchableOpacityInstance, // 0b9726c4 + TouchableOpacityProps, // 2c4c4f52 + TouchableWithoutFeedback, // 3b2c8d36 + TouchableWithoutFeedbackProps, // ad4db143 + TransformsStyle, TurboModule, // dfe29706 TurboModuleRegistry, // 4ace6db2 UIManager, // a1a7cc01 UTFSequence, // ad625158 Vibration, // 31e4bbf8 - View, // 6b216377 - ViewInstance, // ffde5573 - ViewProps, // cbb6c0b5 - ViewPropsAndroid, // 03c17367 + View, // 70ada02e + ViewInstance, // 33b30a9b + ViewProps, // a2c01f1f + ViewPropsAndroid, // 8ee0ea40 ViewPropsIOS, // 58ee19bf - ViewStyle, // e45056b1 + ViewStyle, VirtualViewMode, // 6be59722 VirtualizedList, // 68c7345e VirtualizedListInstance, // 423ee7c0 - VirtualizedListProps, // f05a76fd + VirtualizedListProps, // 3dd8541a VirtualizedSectionList, // 9fd9cd61 VirtualizedSectionListInstance, // 12b706d5 - VirtualizedSectionListProps, // 283047f7 + VirtualizedSectionListProps, // b165b658 WrapperComponentProvider, // 4b8c7962 codegenNativeCommands, // 628a7c0a - codegenNativeComponent, // 32a1bca6 + codegenNativeComponent, // 908d8dbc findNodeHandle, // 93f80214 - processColor, // 6e877698 + processColor, // 7c4e65c1 registerCallableModule, // 839c8cfe - requireNativeComponent, // aa36a6dd - useAnimatedColor, // e3511f81 - useAnimatedValue, // b18adb63 - useAnimatedValueXY, // c7ee2332 + requireNativeComponent, // bab97bf2 + useAnimatedColor, // 65b4d539 + useAnimatedValue, // da74d442 + useAnimatedValueXY, // ff489f00 useColorScheme, // d585efdb - usePressability, // 095343b5 + usePressability, // 6de87bf0 useWindowDimensions, // bb4b683f } diff --git a/packages/react-native/src/private/webapis/dom/nodes/ReactNativeElement.js b/packages/react-native/src/private/webapis/dom/nodes/ReactNativeElement.js index 9fef664f4004..c7354345d49a 100644 --- a/packages/react-native/src/private/webapis/dom/nodes/ReactNativeElement.js +++ b/packages/react-native/src/private/webapis/dom/nodes/ReactNativeElement.js @@ -196,6 +196,13 @@ class ReactNativeElement extends ReadOnlyElement { } } + measureAsyncOnUI(callback: MeasureOnSuccessCallback) { + const node = getNativeElementReference(this); + if (node != null) { + NativeDOM.measureAsyncOnUI(node, callback); + } + } + /** * Determines the location of the given view in the window and returns the * values via an async callback. If the React root view is embedded in diff --git a/packages/react-native/src/private/webapis/dom/nodes/specs/NativeDOM.js b/packages/react-native/src/private/webapis/dom/nodes/specs/NativeDOM.js index 12a34399221c..c3fd78e9c5b1 100644 --- a/packages/react-native/src/private/webapis/dom/nodes/specs/NativeDOM.js +++ b/packages/react-native/src/private/webapis/dom/nodes/specs/NativeDOM.js @@ -159,6 +159,11 @@ export interface Spec extends TurboModule { onSuccess: MeasureLayoutOnSuccessCallback, ) => void; + +measureAsyncOnUI: ( + nativeElementReference: mixed, + callback: MeasureInWindowOnSuccessCallback, + ) => void; + /** * Legacy direct manipulation APIs (for `ReactNativeElement`). */ @@ -433,6 +438,11 @@ export interface RefinedSpec { onSuccess: MeasureLayoutOnSuccessCallback, ) => void; + +measureAsyncOnUI: ( + nativeElementReference: NativeElementReference, + callback: MeasureOnSuccessCallback, + ) => void; + /** * Legacy direct manipulation APIs */