expo / videoplayer

Customizable controls for Expo video
83 stars 83 forks source link

Added props to initial control opacity. #4

Closed itsca closed 6 years ago

itsca commented 6 years ago

In order to have to controls show from the moment the video gets loaded, added a props to the controlsOpacity animated value to be able to set it to custom value from the start, also added the default prop set to 0 to maintain current functionality.

abi commented 6 years ago

Thanks for the PR, I implemented the same functionality here: https://github.com/expo/videoplayer/commit/d4eb76ccbf32dc8b6a142b551825afac8208672e Will publish an npm version soon