Skip to content

Commit

Permalink
Fix usages of ReactComponentWithPureRenderMixin
Browse files Browse the repository at this point in the history
Summary: Closes #13111

Differential Revision: D4761971

Pulled By: davidaurelio

fbshipit-source-id: 668dcc58e8e1b075ee760233abc6904beede9218
  • Loading branch information
javache authored and facebook-github-bot committed Mar 23, 2017
1 parent 720e195 commit a2cfea1
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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<DefaultProps, Props, any> {
class NavigationHeader extends React.PureComponent<DefaultProps, Props, any> {
props: Props;

static defaultProps = {
Expand Down Expand Up @@ -121,14 +120,6 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
viewProps: PropTypes.shape(View.propTypes),
};

shouldComponentUpdate(nextProps: Props, nextState: any): boolean {
return ReactComponentWithPureRenderMixin.shouldComponentUpdate.call(
this,
nextProps,
nextState
);
}

_tvEventHandler: TVEventHandler;

componentDidMount(): void {
Expand Down

0 comments on commit a2cfea1

Please sign in to comment.