Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setPositionAsync={this._setPositionAsync}
setIsLoopingAsync={this._setIsLoopingAsync}
setIsMutedAsync={this._setIsMutedAsync}
setRateAsync={this._setRateAsync}
extraButtons={[
{
iconName: 'options',
title: 'Native controls',
onPress: this._toggleNativeControls,
active: this.state.useNativeControls,
},
{
iconName: 'move',
title: 'Resize mode – stretch',
onPress: this._resizeModeSetter(Video.RESIZE_MODE_STRETCH),
active: this.state.resizeMode === Video.RESIZE_MODE_STRETCH,
},
{
iconName: 'log-in',
title: 'Resize mode – contain',
onPress: this._resizeModeSetter(Video.RESIZE_MODE_CONTAIN),
active: this.state.resizeMode === Video.RESIZE_MODE_CONTAIN,
},
{
iconName: 'qr-scanner',
title: 'Resize mode – cover',
onPress: this._resizeModeSetter(Video.RESIZE_MODE_COVER),
active: this.state.resizeMode === Video.RESIZE_MODE_COVER,
},
{
iconName: 'resize',
title: 'Open fullscreen',
pauseAsync={this._pauseAsync}
setPositionAsync={this._setPositionAsync}
setIsLoopingAsync={this._setIsLoopingAsync}
setIsMutedAsync={this._setIsMutedAsync}
setRateAsync={this._setRateAsync}
extraButtons={[
{
iconName: 'options',
title: 'Native controls',
onPress: this._toggleNativeControls,
active: this.state.useNativeControls,
},
{
iconName: 'move',
title: 'Resize mode – stretch',
onPress: this._resizeModeSetter(Video.RESIZE_MODE_STRETCH),
active: this.state.resizeMode === Video.RESIZE_MODE_STRETCH,
},
{
iconName: 'log-in',
title: 'Resize mode – contain',
onPress: this._resizeModeSetter(Video.RESIZE_MODE_CONTAIN),
active: this.state.resizeMode === Video.RESIZE_MODE_CONTAIN,
},
{
iconName: 'qr-scanner',
title: 'Resize mode – cover',
onPress: this._resizeModeSetter(Video.RESIZE_MODE_COVER),
active: this.state.resizeMode === Video.RESIZE_MODE_COVER,
},
{
iconName: 'resize',