Skip to content

Commit 1371236

Browse files
authored
Removed unnecessary .getNode() method call on referenced scrollView (ptomasroos#1090)
1 parent 510111a commit 1371236

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ const ScrollableTabView = createReactClass({
137137
if (Platform.OS === 'ios') {
138138
const offset = pageNumber * this.state.containerWidth;
139139
if (this.scrollView) {
140-
this.scrollView.getNode().scrollTo({x: offset, y: 0, animated: !this.props.scrollWithoutAnimation, });
140+
this.scrollView.scrollTo({x: offset, y: 0, animated: !this.props.scrollWithoutAnimation, });
141141
}
142142
} else {
143143
if (this.scrollView) {
144144
if (this.props.scrollWithoutAnimation) {
145-
this.scrollView.getNode().setPageWithoutAnimation(pageNumber);
145+
this.scrollView.setPageWithoutAnimation(pageNumber);
146146
} else {
147-
this.scrollView.getNode().setPage(pageNumber);
147+
this.scrollView.setPage(pageNumber);
148148
}
149149
}
150150
}

0 commit comments

Comments
 (0)