fix(rn,settings) only show "disable call integration" on Android

It;';s not implemented on iOS.
pull/10472/head jitsi-meet_6662
Saúl Ibarra Corretgé 3 years ago committed by Saúl Ibarra Corretgé
parent dd20e8626e
commit 4a88ad098a
  1. 23
      react/features/welcome/components/settings/components/SettingsView.js

@ -4,6 +4,7 @@ import React from 'react';
import {
Alert,
NativeModules,
Platform,
ScrollView,
Text
} from 'react-native';
@ -283,15 +284,19 @@ class SettingsView extends AbstractSettingsView<Props, State> {
accordion = { true }
expandable = { true }
label = 'settingsView.advanced'>
<FormRow
label = 'settingsView.disableCallIntegration'>
<Switch
onValueChange = { this._onDisableCallIntegration }
thumbColor = { THUMB_COLOR }
trackColor = {{ true: palette.screen01Header }}
value = { disableCallIntegration } />
</FormRow>
<Divider style = { styles.fieldSeparator } />
{ Platform.OS === 'android' && (
<>
<FormRow
label = 'settingsView.disableCallIntegration'>
<Switch
onValueChange = { this._onDisableCallIntegration }
thumbColor = { THUMB_COLOR }
trackColor = {{ true: palette.screen01Header }}
value = { disableCallIntegration } />
</FormRow>
<Divider style = { styles.fieldSeparator } />
</>
)}
<FormRow
label = 'settingsView.disableP2P'>
<Switch

Loading…
Cancel
Save