From 63a860e85fcb77e156355d74d393485b6d8ef867 Mon Sep 17 00:00:00 2001 From: Baris Sencan Date: Mon, 9 Nov 2015 17:55:39 -0800 Subject: [PATCH] [Video] Implement setNativeProps --- Video.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Video.js b/Video.js index 423f3e77..fcbc3a66 100644 --- a/Video.js +++ b/Video.js @@ -31,6 +31,10 @@ class Video extends Component { this._onEnd = this._onEnd.bind(this); } + setNativeProps(nativeProps) { + this._root.setNativeProps(nativeProps); + } + render() { const { seekTime } = this.state; const { @@ -75,7 +79,11 @@ class Video extends Component { onVideoEnd: this._onEnd, }); - return ; + return ( + this._root = component } + {...nativeProps} /> + ); } seek(time) {