From 2d1bb29d10ec8c5a30c0d31e2b434c47d34c3f20 Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Tue, 4 Jul 2017 00:49:12 +0200 Subject: [PATCH] Try to fix issue with android sometimes showing full progress for 0 --- Bar.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Bar.js b/Bar.js index 31c7106..fd65bc3 100644 --- a/Bar.js +++ b/Bar.js @@ -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], + }), }], };