Removed unnecessary ref

This commit is contained in:
Johannes Lumpe 2015-04-09 18:12:54 +03:00
parent 29d4a4fda2
commit 1000266fd3

View File

@ -58,7 +58,7 @@ var Video = React.createClass({
}, },
seek(time) { seek(time) {
this.refs.video.setNativeProps({seek: parseFloat(time)}); this.setNativeProps({seek: parseFloat(time)});
}, },
render() { render() {
@ -91,7 +91,7 @@ var Video = React.createClass({
onProgress: this._onProgress, onProgress: this._onProgress,
}); });
return <RCTVideo ref="video" {... nativeProps} /> return <RCTVideo {... nativeProps} />;
}, },
}); });