From fd304731454a8f173480f3e7448437be28f8b23b Mon Sep 17 00:00:00 2001 From: Randy Muhroji Date: Thu, 14 May 2020 02:05:46 +0700 Subject: [PATCH] feat: add props hideSeekBar --- components/Video.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/Video.js b/components/Video.js index 65f145f3..4289113c 100644 --- a/components/Video.js +++ b/components/Video.js @@ -354,7 +354,8 @@ class Video extends Component { playInBackground, playWhenInactive, controlDuration, - hideFullScreenControl + hideFullScreenControl, + hideSeekBar } = this.props const inline = { @@ -425,6 +426,7 @@ class Video extends Component { inlineOnly={inlineOnly} controlDuration={controlDuration} hideFullScreenControl={hideFullScreenControl} + hideSeekBar={hideSeekBar} /> ) @@ -478,6 +480,7 @@ Video.propTypes = { theme: PropTypes.object, resizeMode: PropTypes.string, controlDuration: PropTypes.number, + hideSeekBar: PropTypes.bool } Video.defaultProps = { @@ -508,6 +511,7 @@ Video.defaultProps = { theme: defaultTheme, resizeMode: 'contain', controlDuration: 3, + hideSeekBar: false } export default Video