Loading Video.ios.js +6 −0 Changes for Video.ios.js: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ var Video = React.createClass({ onLoad: PropTypes.func, onError: PropTypes.func, onProgress: PropTypes.func, onEnd: PropTypes.func, }, mixins: [NativeMethodsMixin], Loading Loading @@ -61,6 +62,10 @@ var Video = React.createClass({ this.setNativeProps({seek: parseFloat(time)}); }, _onEnd(event) { this.props.onEnd && this.props.onEnd(event.nativeEvent); }, render() { var style = flattenStyle([styles.base, this.props.style]); var source = this.props.source; Loading Loading @@ -89,6 +94,7 @@ var Video = React.createClass({ }, onLoad: this._onLoad, onProgress: this._onProgress, onEnd: this._onEnd, }); return <RCTVideo {... nativeProps} />; Loading Loading
Video.ios.js +6 −0 Changes for Video.ios.js: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ var Video = React.createClass({ onLoad: PropTypes.func, onError: PropTypes.func, onProgress: PropTypes.func, onEnd: PropTypes.func, }, mixins: [NativeMethodsMixin], Loading Loading @@ -61,6 +62,10 @@ var Video = React.createClass({ this.setNativeProps({seek: parseFloat(time)}); }, _onEnd(event) { this.props.onEnd && this.props.onEnd(event.nativeEvent); }, render() { var style = flattenStyle([styles.base, this.props.style]); var source = this.props.source; Loading Loading @@ -89,6 +94,7 @@ var Video = React.createClass({ }, onLoad: this._onLoad, onProgress: this._onProgress, onEnd: this._onEnd, }); return <RCTVideo {... nativeProps} />; Loading