@react-native-community/masked-view
Version:
React Native MaskedView component
14 lines (12 loc) • 349 B
JavaScript
// @flow
import { type Node, type Element } from 'react';
import { ViewPropTypes } from 'react-native';
export type MaskedViewProps = typeof ViewPropTypes &
$ReadOnly<{|
children: Node,
/**
* Should be a React element to be rendered and applied as the
* mask for the child element.
*/
maskElement: Element<any>,
|}>;