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.
1 parent f5bcf9f commit 5c4ace0Copy full SHA for 5c4ace0
index.js
@@ -65,9 +65,8 @@ const ScrollableTabView = React.createClass({
65
},
66
67
componentDidMount() {
68
- setTimeout(() => {
+ this.setTimeout(() => {
69
if (this.scrollView && Platform.OS === 'android') {
70
- console.log("Scrolling to " + this.props.initialPage + " with containerWidth " + this.state.containerWidth);
71
const x = this.props.initialPage * this.state.containerWidth;
72
this.scrollView.scrollTo({ x, animated: false });
73
}
0 commit comments