[Video] Method location rearrangement

This commit is contained in:
Baris Sencan 2015-10-30 17:40:11 -07:00
parent b45c9577f0
commit 826218017d

View File

@ -31,10 +31,6 @@ class Video extends Component {
this._onEnd = this._onEnd.bind(this);
}
seek(time) {
this.setState({ seekTime: time });
}
render() {
const { seekTime } = this.state;
const {
@ -82,6 +78,10 @@ class Video extends Component {
return <RCTVideo ref={ref} {...nativeProps} />;
}
seek(time) {
this.setState({ seekTime: time });
}
_onLoadStart(event) {
this.props.onLoadStart && this.props.onLoadStart(event.nativeEvent);
}