From b6c175166ad7dc7a9950846da6c4ce8fabe24558 Mon Sep 17 00:00:00 2001 From: Neil Marcellini Date: Fri, 3 Jun 2022 14:52:19 -0700 Subject: [PATCH] Fix composer collapse on send with spacing wrapper --- src/components/Composer/index.native.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Composer/index.native.js b/src/components/Composer/index.native.js index 0d47c0d67cf8..601447c1e9db 100644 --- a/src/components/Composer/index.native.js +++ b/src/components/Composer/index.native.js @@ -6,6 +6,7 @@ import lodashGet from 'lodash/get'; import RNTextInput from '../RNTextInput'; import themeColors from '../../styles/themes/default'; import CONST from '../../CONST'; +import styles from '../../styles/styles'; const propTypes = { /** If the input should clear, it actually gets intercepted instead of .clear() */ @@ -110,7 +111,7 @@ class Composer extends React.Component { */ updateNumberOfLines(e) { const lineHeight = this.state.propStyles.lineHeight; - const paddingTopAndBottom = this.state.propStyles.paddingVertical * 2; + const paddingTopAndBottom = styles.textInputComposeSpacing.paddingVertical * 2; const inputHeight = lodashGet(e, 'nativeEvent.contentSize.height', null); if (!inputHeight) { return;