Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
rn,invite: fix bottom padding on AddPeopleDialog on Android
Saúl Ibarra Corretgéa9da047d3a7d
diff --git a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.jsindex 28e70e6f6b..fc7042fed2 100644--- a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js+++ b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js@@ -67,6 +67,11 @@ type Props = AbstractProps & {type State = AbstractState & {+ /**+ * Boolean to show if an extra padding needs to be added to the bottom bar.+ */+ bottomPadding: boolean,+/*** State variable to keep track of the search field value.*/@@ -94,6 +99,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {defaultState = {addToCallError: false,addToCallInProgress: false,+ bottomPadding: false,fieldValue: '',inviteItems: [],searchInprogress: false,@@ -194,9 +200,11 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {</View><TextInputautoCorrect = { false }- autoFocus = { true }+ autoFocus = { false }clearButtonMode = 'always' // iOS only+ onBlur = { this._onFocused(false) }onChangeText = { this._onTypeQuery }+ onFocus = { this._onFocused(true) }placeholder = {this.props.t(`inviteDialog.${placeholderKey}`)}@@ -223,7 +231,11 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {renderItem = { this._renderItem } /></View></SafeAreaView>- <SafeAreaView style = { [ styles.bottomBar, _headerStyles.headerOverlay ] }>+ <SafeAreaView+ style = { [+ styles.bottomBar,+ _headerStyles.headerOverlay,+ this.state.bottomPadding ? styles.extraBarPadding : null ] }>{ this._renderShareMeetingButton() }</SafeAreaView></KeyboardAvoidingView>@@ -317,6 +329,22 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {return false;}+ _onFocused: boolean => Function;++ /**+ * Constructs a callback to be used to update the padding of the field if necessary.+ *+ * @param {boolean} focused - True of the field is focused.+ * @returns {Function}+ */+ _onFocused(focused) {+ return () => {+ Platform.OS === 'android' && this.setState({+ bottomPadding: focused+ });+ };+ }+_onInvite: () => void/**diff --git a/react/features/invite/components/add-people-dialog/native/styles.js b/react/features/invite/components/add-people-dialog/native/styles.jsindex c255fecb65..a553ea4697 100644--- a/react/features/invite/components/add-people-dialog/native/styles.js+++ b/react/features/invite/components/add-people-dialog/native/styles.js@@ -58,6 +58,13 @@ export default {justifyContent: 'flex-start'},+ /**+ * A special padding to avoid issues on some devices (such as Android devices with custom suggestions bar).+ */+ extraBarPadding: {+ paddingBottom: 30+ },+invitedList: {padding: 3},