diff --git a/Video.js b/Video.js index 2d40a955..60859b17 100644 --- a/Video.js +++ b/Video.js @@ -21,7 +21,8 @@ export default class Video extends Component { constructor(props, context) { super(props, context); this.seek = this.seek.bind(this); - this.goFullscreen = this.goFullscreen.bind(this); + this.presentFullscreenPlayer = this.presentFullscreenPlayer.bind(this); + this.dismissFullscreenPlayer = this.dismissFullscreenPlayer.bind(this); this._assignRoot = this._assignRoot.bind(this); this._onLoadStart = this._onLoadStart.bind(this); this._onLoad = this._onLoad.bind(this); @@ -43,10 +44,14 @@ export default class Video extends Component { this.setNativeProps({ seek: time }); } - goFullscreen() { + presentFullscreenPlayer() { this.setNativeProps({ fullscreen: true }); } + dismissFullscreenPlayer() { + this.setNativeProps({ fullscreen: false }); + } + _assignRoot(component) { this._root = component; } @@ -207,5 +212,6 @@ const RCTVideo = requireNativeComponent('RCTVideo', Video, { nativeOnly: { src: true, seek: true, + fullscreen: true, }, });