diff --git a/react/features/base/modal/components/JitsiScreen.js b/react/features/base/modal/components/JitsiScreen.js index 0fbffed2d..ce9aff3f8 100644 --- a/react/features/base/modal/components/JitsiScreen.js +++ b/react/features/base/modal/components/JitsiScreen.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; -import { View } from 'react-native'; +import { ScrollView, View } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { StyleType } from '../../styles'; @@ -47,6 +47,11 @@ type Props = { */ safeAreaInsets?: Array, + /** + * Enable scroll for JitsiScreen. + */ + scrollEnabled?: boolean, + /** * Additional style to be appended to the KeyboardAvoidingView containing the content of the modal. */ @@ -61,10 +66,10 @@ const JitsiScreen = ({ hasBottomTextInput = false, disableForcedKeyboardDismiss = false, safeAreaInsets = [ 'left', 'right' ], + scrollEnabled = false, style -}: Props) => ( - +}: Props) => { + const renderContent = () => ( - {children} + { children } { footerComponent && footerComponent() } - -); + ); + + if (scrollEnabled) { + return ( + + { renderContent() } + + ); + } + + return ( + + { renderContent() } + + ); +}; export default JitsiScreen; diff --git a/react/features/settings/components/native/SettingsView.tsx b/react/features/settings/components/native/SettingsView.tsx index 63236c720..fa44c1d55 100644 --- a/react/features/settings/components/native/SettingsView.tsx +++ b/react/features/settings/components/native/SettingsView.tsx @@ -8,7 +8,6 @@ import { Alert, NativeModules, Platform, - ScrollView, Text, View } from 'react-native'; @@ -275,157 +274,156 @@ class SettingsView extends Component { return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - { t('settingsView.help') } - - - + + + + - { t('settingsView.terms') } - - - + + + + - { t('settingsView.privacy') } - - - - - - {`${AppInfo.version} build ${AppInfo.buildNumber}`} - - - - - { Platform.OS === 'android' && ( - <> - - - - - - )} - - - - - {AppInfo.GOOGLE_SERVICES_ENABLED && ( + onChange = { this._onStartVideoMutedChange } /> + + + + + + + + + { t('settingsView.help') } + + + + { t('settingsView.terms') } + + + + { t('settingsView.privacy') } + + + + + + {`${AppInfo.version} build ${AppInfo.buildNumber}`} + + + + + { Platform.OS === 'android' && ( + <> + label = 'settingsView.disableCallIntegration'> + onChange = { this._onDisableCallIntegration } /> - )} - - + + + )} + + + + + {AppInfo.GOOGLE_SERVICES_ENABLED && ( + + + + )} + ); }