[RN] Temporarily disable camera toggling button

It doesn't work properly and gives a very bad user experience. Disble it until
all underlying issues in react-native-webrtc are ironed out.
This commit is contained in:
Saúl Ibarra Corretgé 2017-02-20 11:22:07 +01:00 committed by Lyubomir Marinov
parent 5b6985fc5c
commit 1ed0759a50
1 changed files with 4 additions and 0 deletions

View File

@ -115,12 +115,16 @@ class Toolbar extends AbstractToolbar {
// TODO Use an appropriate icon for toggle camera facing mode. // TODO Use an appropriate icon for toggle camera facing mode.
return ( return (
<View style = { styles.secondaryToolbar }> <View style = { styles.secondaryToolbar }>
{/*
* XXX Temporarily disabled until issues are fixed in
* react-native-webrtc.
<ToolbarButton <ToolbarButton
iconName = 'switch-camera' iconName = 'switch-camera'
iconStyle = { iconStyle } iconStyle = { iconStyle }
onClick = { this._toggleCameraFacingMode } onClick = { this._toggleCameraFacingMode }
style = { style } style = { style }
underlayColor = { underlayColor } /> underlayColor = { underlayColor } />
*/}
<ToolbarButton <ToolbarButton
iconName = { iconName = {
this.props._locked ? 'security-locked' : 'security' this.props._locked ? 'security-locked' : 'security'