From 4cdb89aac30315d37a2e29e516f63cbae7a0018c Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Tue, 13 Jul 2021 02:18:00 +0530 Subject: [PATCH 1/2] fix: scrolling and layout --- src/pages/RequestCallPage.js | 99 +++++++++++----------- src/pages/workspace/WorkspaceInvitePage.js | 97 +++++++++++---------- 2 files changed, 101 insertions(+), 95 deletions(-) diff --git a/src/pages/RequestCallPage.js b/src/pages/RequestCallPage.js index 3b491d6f4821..5a1ea5eb0e55 100644 --- a/src/pages/RequestCallPage.js +++ b/src/pages/RequestCallPage.js @@ -1,5 +1,5 @@ import React, {Component} from 'react'; -import {View, TextInput} from 'react-native'; +import {ScrollView, TextInput} from 'react-native'; import _ from 'underscore'; import {withOnyx} from 'react-native-onyx'; import PropTypes from 'prop-types'; @@ -20,6 +20,7 @@ import {requestConciergeDMCall} from '../libs/actions/Inbox'; import {fetchOrCreateChatReport} from '../libs/actions/Report'; import personalDetailsPropType from './personalDetailsPropType'; import Text from '../components/Text'; +import KeyboardAvoidingView from '../components/KeyboardAvoidingView'; const propTypes = { ...withLocalizePropTypes, @@ -143,54 +144,56 @@ class RequestCallPage extends Component { const isButtonDisabled = false; return ( - fetchOrCreateChatReport([ - this.props.session.email, - CONST.EMAIL.CONCIERGE, - ], true)} - onCloseButtonPress={() => Navigation.dismissModal(true)} - /> - - - {this.props.translate('requestCallPage.description')} - - - {this.props.translate('requestCallPage.instructions')} - - this.setState({firstName})} - onChangeLastName={lastName => this.setState({lastName})} - style={[styles.mt4, styles.mb4]} + + fetchOrCreateChatReport([ + this.props.session.email, + CONST.EMAIL.CONCIERGE, + ], true)} + onCloseButtonPress={() => Navigation.dismissModal(true)} /> - - {this.props.translate('common.phoneNumber')} - - this.setState({phoneNumber})} - /> - - {this.props.translate('requestCallPage.availabilityText')} - - - -