diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js b/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js index 87ce2f36aa..5218a4c055 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js @@ -37,7 +37,6 @@ const NavigationHeaderStyleInterpolator = require('NavigationHeaderStyleInterpol const NavigationHeaderTitle = require('NavigationHeaderTitle'); const NavigationPropTypes = require('NavigationPropTypes'); const React = require('React'); -const ReactComponentWithPureRenderMixin = require('react/lib/ReactComponentWithPureRenderMixin'); const ReactNative = require('react-native'); const TVEventHandler = require('TVEventHandler'); @@ -82,7 +81,7 @@ const APPBAR_HEIGHT = Platform.OS === 'ios' ? 44 : 56; const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : 0; const {PropTypes} = React; -class NavigationHeader extends React.Component { +class NavigationHeader extends React.PureComponent { props: Props; static defaultProps = { @@ -121,14 +120,6 @@ class NavigationHeader extends React.Component { viewProps: PropTypes.shape(View.propTypes), }; - shouldComponentUpdate(nextProps: Props, nextState: any): boolean { - return ReactComponentWithPureRenderMixin.shouldComponentUpdate.call( - this, - nextProps, - nextState - ); - } - _tvEventHandler: TVEventHandler; componentDidMount(): void {