Skip to content

Commit

Permalink
use propTypes directly
Browse files Browse the repository at this point in the history
Summary:
Just noticed this commit creates a new variable for propTypes instead of using it directly. c2c97ae

Should be straighforward.
Closes #15113

Differential Revision: D5460980

Pulled By: javache

fbshipit-source-id: 7446be8af22557d4bd4eddb711272b914ca48112
  • Loading branch information
chirag04 authored and facebook-github-bot committed Jul 20, 2017
1 parent ced1513 commit bf75201
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Libraries/Components/MaskedView/MaskedViewIOS.ios.js
Expand Up @@ -16,7 +16,6 @@ const StyleSheet = require('StyleSheet');
const View = require('View');
const ViewPropTypes = require('ViewPropTypes');
const requireNativeComponent = require('requireNativeComponent');
const ReactPropTypes = PropTypes;

import type { ViewProps } from 'ViewPropTypes';

Expand Down Expand Up @@ -70,7 +69,7 @@ class MaskedViewIOS extends React.Component {

static propTypes = {
...ViewPropTypes,
maskElement: ReactPropTypes.element.isRequired,
maskElement: PropTypes.element.isRequired,
};

_hasWarnedInvalidRenderMask = false;
Expand Down

0 comments on commit bf75201

Please sign in to comment.