Skip to content

Commit

Permalink
Removed unnecessary ref
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneslumpe committed Apr 9, 2015
1 parent 29d4a4f commit 1000266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Video.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var Video = React.createClass({
},

seek(time) {
this.refs.video.setNativeProps({seek: parseFloat(time)});
this.setNativeProps({seek: parseFloat(time)});
},

render() {
Expand Down Expand Up @@ -91,7 +91,7 @@ var Video = React.createClass({
onProgress: this._onProgress,
});

return <RCTVideo ref="video" {... nativeProps} />
return <RCTVideo {... nativeProps} />;
},
});

Expand Down

0 comments on commit 1000266

Please sign in to comment.