From 1c517f6d927a0bbf5a4849fb87ecce0f2a63b29f Mon Sep 17 00:00:00 2001 From: Jasper Huang Date: Fri, 18 Nov 2022 08:34:41 -0800 Subject: [PATCH 1/2] Remove scrolling to bottom when opening the keyboard --- src/pages/home/report/ReportActionsView.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 722dbb840b7f..a798bc562eb3 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -100,13 +100,6 @@ class ReportActionsView extends React.Component { this.setState({newMarkerSequenceNumber: 0}); }); - this.keyboardEvent = Keyboard.addListener('keyboardDidShow', () => { - if (!ReportActionComposeFocusManager.isFocused()) { - return; - } - ReportScrollManager.scrollToBottom(); - }); - if (this.getIsReportFullyVisible()) { this.openReportIfNecessary(); } From 6d7991312a7d0239e5a0880714f56ed57e93b181 Mon Sep 17 00:00:00 2001 From: Jasper Huang Date: Fri, 18 Nov 2022 08:41:17 -0800 Subject: [PATCH 2/2] remove unused --- src/pages/home/report/ReportActionsView.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index a798bc562eb3..e4155221ac62 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -1,7 +1,4 @@ import React from 'react'; -import { - Keyboard, -} from 'react-native'; import PropTypes from 'prop-types'; import _ from 'underscore'; import lodashGet from 'lodash/get'; @@ -15,7 +12,6 @@ import withWindowDimensions, {windowDimensionsPropTypes} from '../../../componen import {withDrawerPropTypes} from '../../../components/withDrawerState'; import * as ReportScrollManager from '../../../libs/ReportScrollManager'; import withLocalize, {withLocalizePropTypes} from '../../../components/withLocalize'; -import ReportActionComposeFocusManager from '../../../libs/ReportActionComposeFocusManager'; import * as ReportActionContextMenu from './ContextMenu/ReportActionContextMenu'; import PopoverReportActionContextMenu from './ContextMenu/PopoverReportActionContextMenu'; import Performance from '../../../libs/Performance';