Skip to content

Commit

Permalink
Fix: flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar committed Nov 4, 2024
1 parent e9bd734 commit 516664d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -79,4 +78,4 @@ untyped-import
untyped-type-import

[version]
^0.218.0
^0.246.0
4 changes: 2 additions & 2 deletions js/MaskedViewTypes.js
Original file line number Diff line number Diff line change
@@ -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<ViewProps> &
Expand All @@ -9,7 +9,7 @@ export type MaskedViewProps = Partial<ViewProps> &
* Should be a React element to be rendered and applied as the
* mask for the child element.
*/
maskElement: Element<any>,
maskElement: Node,
/**
* Opt into software rendering to enable animated masks.
*/
Expand Down

0 comments on commit 516664d

Please sign in to comment.