From 75207875de0763ab5402db80aefb7947dbea1e28 Mon Sep 17 00:00:00 2001 From: Hung Vu Date: Sat, 11 Aug 2018 14:38:26 +0700 Subject: [PATCH] fix hide error notification fix hide error when the media is loaded and ready to play. issue: https://github.com/itsnubix/react-native-video-controls/issues/105 --- VideoPlayer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VideoPlayer.js b/VideoPlayer.js index 9bf635f..a3b4a57 100644 --- a/VideoPlayer.js +++ b/VideoPlayer.js @@ -189,6 +189,9 @@ export default class VideoPlayer extends Component { state.duration = data.duration; state.loading = false; + if (state.error === true) { + state.error = false + } this.setState( state ); if ( state.showControls ) {