From 86938035d1eb56648c4680d809b8acac472e86c8 Mon Sep 17 00:00:00 2001 From: Alpha Date: Tue, 24 Jan 2023 12:57:12 -0500 Subject: [PATCH] fix(types): utility type removed from RN 0.71 --- types/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index acafcc2..6a66a1e 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3,6 +3,8 @@ import * as React from 'react'; import * as ReactNative from 'react-native'; +type Constructor = new (...args: any[]) => T; + interface MaskedViewProps extends ReactNative.ViewProps { maskElement: React.ReactElement; androidRenderingMode?: 'software' | 'hardware'; @@ -11,7 +13,7 @@ interface MaskedViewProps extends ReactNative.ViewProps { * @see https://github.com/react-native-masked-view/masked-view */ declare class MaskedViewComponent extends React.Component {} -declare const MaskedViewBase: ReactNative.Constructor< +declare const MaskedViewBase: Constructor< ReactNative.NativeMethods > & typeof MaskedViewComponent;