File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ const VariableTextInputView = forwardRef(
165
165
const onContentSizeChange = ( event : any ) => {
166
166
const { style } = props ;
167
167
const styles = StyleSheet . flatten ( style ) ;
168
- if ( styles . height === undefined && styles . flex !== 1 ) {
168
+ if ( styles . height === undefined ) {
169
169
const contentSizeHeight = event . nativeEvent . contentSize . height ;
170
170
if ( ! ! styles . maxHeight && contentSizeHeight >= styles . maxHeight ) {
171
171
setCurrentHeight ( parseFloat ( `${ styles . maxHeight } ` ) ) ;
@@ -181,7 +181,7 @@ const VariableTextInputView = forwardRef(
181
181
const onAndroidContentSizeChange = ( event : any ) => {
182
182
const { style } = props ;
183
183
const styles = StyleSheet . flatten ( style ) ;
184
- if ( styles . height === undefined && styles . flex !== 1 ) {
184
+ if ( styles . height === undefined ) {
185
185
const contentSizeHeight = event . nativeEvent . contentSize . height ;
186
186
if ( ! ! styles . maxHeight && contentSizeHeight > styles . maxHeight ) {
187
187
setCurrentHeight ( parseFloat ( `${ styles . maxHeight } ` ) ) ;
You can’t perform that action at this time.
0 commit comments