diff --git a/.flowconfig b/.flowconfig index b24ad29..1411002 100644 --- a/.flowconfig +++ b/.flowconfig @@ -28,7 +28,6 @@ node_modules/react-native/interface.js node_modules/react-native/flow/ [options] -experimental.global_find_ref=true enums=true emoji=true @@ -79,4 +78,4 @@ untyped-import untyped-type-import [version] -^0.218.0 +^0.246.0 diff --git a/js/MaskedViewTypes.js b/js/MaskedViewTypes.js index ea2ad5c..b51c43d 100644 --- a/js/MaskedViewTypes.js +++ b/js/MaskedViewTypes.js @@ -1,5 +1,5 @@ // @flow -import { type Node, type Element } from 'react'; +import { type Node } from 'react'; import { type ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; export type MaskedViewProps = Partial & @@ -9,7 +9,7 @@ export type MaskedViewProps = Partial & * Should be a React element to be rendered and applied as the * mask for the child element. */ - maskElement: Element, + maskElement: Node, /** * Opt into software rendering to enable animated masks. */