diff --git a/types/public/ReactNativeTypes.d.ts b/types/public/ReactNativeTypes.d.ts index 38e00e1cc93..3acd235ac57 100644 --- a/types/public/ReactNativeTypes.d.ts +++ b/types/public/ReactNativeTypes.d.ts @@ -86,9 +86,11 @@ export interface NativeMethods { * _Can also be called with a relativeNativeNodeHandle but is deprecated._ */ measureLayout( - relativeToNativeComponentRef: HostComponent | number, + relativeToNativeComponentRef: + | React.ElementRef> + | number, onSuccess: MeasureLayoutOnSuccessCallback, - onFail: () => void /* currently unused */, + onFail?: () => void, ): void; /**