renderActions()

in js/video/VideoControls.js [48:71]


  renderActions() {
    if (!this.state.show) {
      return null;
    }
    const {
      onPlayToggle,
      onSkipBack,
      onSkipForward,
      onFullscreen
    } = this.props;

    return (
      <Animated.View
        pointerEvents="box-none"
        style={[styles.showHide, { opacity: this.state.revealAnimation }]}
      >
        <View pointerEvents="box-none" style={styles.actions}>
          {onSkipBack && onSkipForward ? this.renderSkipButtons() : null}
          {onPlayToggle ? this.renderPlayButton() : null}
        </View>
        {onFullscreen ? this.renderFullscreenButton() : null}
      </Animated.View>
    );
  }