Skip to content

Commit b66c4df

Browse files
author
Steven Goff
committed
Fix method signature of componentWillReceiveProps
1 parent 680c60c commit b66c4df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/CardStack/CardStack.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ class CardStack extends React.Component<Props, State> {
7979
(this: any)._hasSplitPaneComponent = this._hasSplitPaneComponent.bind(this);
8080
}
8181

82-
componentWillReceiveProps(props: Props, nextProps: Props) {
83-
if (props.statusBarSize !== this.props.statusBarSize) {
82+
componentWillReceiveProps(nextProps: Props) {
83+
if (nextProps.statusBarSize !== this.props.statusBarSize) {
8484
this.setState({
8585
headerHeight: (this.props.isIOS ? 45 : 41) + this.props.statusBarSize,
8686
});
8787
}
8888

89-
props.scenes.forEach((newScene: *) => {
89+
nextProps.scenes.forEach((newScene: *) => {
9090
if (
9191
this._screenDetails[newScene.key] &&
9292
this._screenDetails[newScene.key].state !== newScene.route

0 commit comments

Comments
 (0)