File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ const VariableTextInputView = forwardRef(
165165 const onContentSizeChange = ( event : any ) => {
166166 const { style } = props ;
167167 const styles = StyleSheet . flatten ( style ) ;
168- if ( styles . height === undefined && styles . flex !== 1 ) {
168+ if ( styles . height === undefined ) {
169169 const contentSizeHeight = event . nativeEvent . contentSize . height ;
170170 if ( ! ! styles . maxHeight && contentSizeHeight >= styles . maxHeight ) {
171171 setCurrentHeight ( parseFloat ( `${ styles . maxHeight } ` ) ) ;
@@ -181,7 +181,7 @@ const VariableTextInputView = forwardRef(
181181 const onAndroidContentSizeChange = ( event : any ) => {
182182 const { style } = props ;
183183 const styles = StyleSheet . flatten ( style ) ;
184- if ( styles . height === undefined && styles . flex !== 1 ) {
184+ if ( styles . height === undefined ) {
185185 const contentSizeHeight = event . nativeEvent . contentSize . height ;
186186 if ( ! ! styles . maxHeight && contentSizeHeight > styles . maxHeight ) {
187187 setCurrentHeight ( parseFloat ( `${ styles . maxHeight } ` ) ) ;
You can’t perform that action at this time.
0 commit comments