From 84b9c5f5fd6bf5ba09a7e7245dd6fa1697844d0f Mon Sep 17 00:00:00 2001 From: Lyubo Marinov Date: Fri, 24 Mar 2017 09:06:54 -0500 Subject: [PATCH] Coding style --- react/features/base/media/components/native/Video.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/react/features/base/media/components/native/Video.js b/react/features/base/media/components/native/Video.js index ccd4da567..9ac10ff14 100644 --- a/react/features/base/media/components/native/Video.js +++ b/react/features/base/media/components/native/Video.js @@ -65,9 +65,9 @@ export class Video extends Component { componentDidMount() { // RTCView currently does not support media events, so just fire // onPlaying callback when is rendered. - if (this.props.onPlaying) { - this.props.onPlaying(); - } + const { onPlaying } = this.props; + + onPlaying && onPlaying(); } /** @@ -77,7 +77,7 @@ export class Video extends Component { * @returns {ReactElement|null} */ render() { - const stream = this.props.stream; + const { stream } = this.props; if (stream) { const streamURL = stream.toURL(); @@ -91,7 +91,7 @@ export class Video extends Component { const style = styles.video; const objectFit = (style && style.objectFit) || 'cover'; - const mirror = this.props.mirror; + const { mirror } = this.props; // XXX RTCView may not support support mirroring, even when // providing a transform style property (e.g. iOS) . As a