Skip to content

Commit

Permalink
fix(types): utility type removed from RN 0.71 (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha0010 authored Feb 23, 2023
1 parent 043bd21 commit 8b4b2f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import * as React from 'react';
import * as ReactNative from 'react-native';

type Constructor<T> = new (...args: any[]) => T;

interface MaskedViewProps extends ReactNative.ViewProps {
maskElement: React.ReactElement;
androidRenderingMode?: 'software' | 'hardware';
Expand All @@ -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<MaskedViewProps> {}
declare const MaskedViewBase: ReactNative.Constructor<
declare const MaskedViewBase: Constructor<
ReactNative.NativeMethods
> &
typeof MaskedViewComponent;
Expand Down

0 comments on commit 8b4b2f9

Please sign in to comment.