From 516664daa865590e9825a5e4c8afc3bdac827a8d Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Mon, 4 Nov 2024 11:49:06 +0900 Subject: [PATCH] Fix: flow error --- .flowconfig | 3 +-- js/MaskedViewTypes.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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. */