Skip to content

Commit a07e8d4

Browse files
committed
Merge pull request ptomasroos#290 from chunghe/master
fix Platform logic
2 parents 73f99c2 + f776155 commit a07e8d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ScrollableTabBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const ScrollableTabBar = React.createClass({
8484
newScrollX -= this.props.scrollOffset;
8585
newScrollX = newScrollX >= 0 ? newScrollX : 0;
8686

87-
if (Platform === 'android') {
87+
if (Platform.OS === 'android') {
8888
this._scrollView.scrollTo({x: newScrollX, y: 0, });
8989
} else {
9090
const rightBoundScroll = this._tabContainerMeasurements.width - (this._containerMeasurements.width);

0 commit comments

Comments
 (0)