Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix Platform logic
  • Loading branch information
chunghe committed May 27, 2016
commit f776155294763bbf5dca46280992874e91d6a36a
2 changes: 1 addition & 1 deletion ScrollableTabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ScrollableTabBar = React.createClass({
newScrollX -= this.props.scrollOffset;
newScrollX = newScrollX >= 0 ? newScrollX : 0;

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