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 7d6ddf1 + fc7b1c4 commit 2d8213fCopy full SHA for 2d8213f
index.js
@@ -65,12 +65,15 @@ const ScrollableTabView = React.createClass({
65
},
66
67
componentDidMount() {
68
- InteractionManager.runAfterInteractions(() => {
+ const scrollFn = () => {
69
if (this.scrollView && Platform.OS === 'android') {
70
const x = this.props.initialPage * this.state.containerWidth;
71
this.scrollView.scrollTo({ x, animated: false });
72
}
73
- });
+ };
74
+ this.setTimeout(() => {
75
+ InteractionManager.runAfterInteractions(scrollFn);
76
+ }, 0);
77
78
79
componentWillReceiveProps(props) {
0 commit comments