From b7838381349d438c5fab4ee464f6cb197857a4dd Mon Sep 17 00:00:00 2001 From: Kyle Milloy Date: Tue, 29 Nov 2016 00:06:06 -0700 Subject: [PATCH] setState being called when window off screen #7 --- CHANGELOG.md | 3 +++ README.md | 1 + VideoPlayer.js | 30 +----------------------------- 3 files changed, 5 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e87b832..9d67b79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ [Seeking before onLoad triggers onEnd](https://github.com/itsnubix/react-native-video-controls/issues/8) - modified pan handler to also look for if loading state which is set to false on init and changed when onLoad fired. +[setState being called when window off screen](https://github.com/itsnubix/react-native-video-controls/issues/7) + - added componentWillUnmount function to clear controlTimeout + - Note that if using react router componentWillUnmount will not fire unless you configure it to. See [this ticket](https://github.com/aksonov/react-native-router-flux/issues/131) ## 0.9.7 (21-11-2016) diff --git a/README.md b/README.md index cf7a703..2cc39b2 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ The `` component can take a number of inputs to customize it as nee // settings controlTimeout={ 15000 } // hide controls after ms of inactivity. + navigator={ navigator } // prop from React Native component videoStyle={ {} } // Style appended to