Skip to content

Commit

Permalink
Try to fix issue with android sometimes showing full progress for 0
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Jul 3, 2017
1 parent 633e0da commit 2d1bb29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ export default class ProgressBar extends Component {
outputRange: [innerWidth / -2, 0],
}),
}, {
scaleX: this.state.progress,
// Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
scaleX: this.state.progress.interpolate({
inputRange: [0, 1],
outputRange: [0.0001, 1],
}),
}],
};

Expand Down

0 comments on commit 2d1bb29

Please sign in to comment.