Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions Libraries/Components/MaskedView/MaskedViewIOS.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* @flow
*/

const DeprecatedViewPropTypes = require('DeprecatedViewPropTypes');
const PropTypes = require('prop-types');
const React = require('React');
const StyleSheet = require('StyleSheet');
const View = require('View');
Expand All @@ -20,16 +18,16 @@ import type {ViewProps} from 'ViewPropTypes';

const RCTMaskedView = requireNativeComponent('RCTMaskedView');

type Props = {
type Props = $ReadOnly<{|
...ViewProps,

children: any,
children: React.Node,
/**
* Should be a React element to be rendered and applied as the
* mask for the child element.
*/
maskElement: React.Element<any>,
};
|}>;

/**
* Renders the child view with a mask specified in the `maskElement` prop.
Expand Down Expand Up @@ -68,11 +66,6 @@ type Props = {
*
*/
class MaskedViewIOS extends React.Component<Props> {
static propTypes = {
...DeprecatedViewPropTypes,
maskElement: PropTypes.element.isRequired,
};

_hasWarnedInvalidRenderMask = false;

render() {
Expand Down