We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bb656a + bbcbbfe commit ca2f77aCopy full SHA for ca2f77a
index.js
@@ -66,13 +66,13 @@ const ScrollableTabView = React.createClass({
66
},
67
68
componentWillReceiveProps(props) {
69
- if (props.page >= 0 && props.page !== this.state.currentPage) {
70
- this.goToPage(props.page);
71
- }
72
-
73
if (props.children !== this.props.children) {
74
this.updateSceneKeys({ page: this.state.currentPage, children: props.children, });
75
}
+
+ if (props.page >= 0 && props.page !== this.state.currentPage) {
+ this.goToPage(props.page);
+ }
76
77
78
goToPage(pageNumber) {
0 commit comments