We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 680c60c commit b66c4dfCopy full SHA for b66c4df
src/views/CardStack/CardStack.js
@@ -79,14 +79,14 @@ class CardStack extends React.Component<Props, State> {
79
(this: any)._hasSplitPaneComponent = this._hasSplitPaneComponent.bind(this);
80
}
81
82
- componentWillReceiveProps(props: Props, nextProps: Props) {
83
- if (props.statusBarSize !== this.props.statusBarSize) {
+ componentWillReceiveProps(nextProps: Props) {
+ if (nextProps.statusBarSize !== this.props.statusBarSize) {
84
this.setState({
85
headerHeight: (this.props.isIOS ? 45 : 41) + this.props.statusBarSize,
86
});
87
88
89
- props.scenes.forEach((newScene: *) => {
+ nextProps.scenes.forEach((newScene: *) => {
90
if (
91
this._screenDetails[newScene.key] &&
92
this._screenDetails[newScene.key].state !== newScene.route
0 commit comments