Skip to content

Commit 86f9130

Browse files
committed
add flex to fix autofocus on rerender
1 parent e64ff87 commit 86f9130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TextInput/BaseTextInput/implementation/index.native.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function BaseTextInput(
302302
/>
303303
</>
304304
) : null}
305-
<View style={[styles.textInputAndIconContainer(isMarkdownEnabled), isMultiline && hasLabel && styles.textInputMultilineContainer, styles.pointerEventsBoxNone]}>
305+
<View style={[styles.textInputAndIconContainer(isMarkdownEnabled), {flex: 1}, isMultiline && hasLabel && styles.textInputMultilineContainer, styles.pointerEventsBoxNone]}>
306306
{!!iconLeft && (
307307
<View style={styles.textInputLeftIconContainer}>
308308
<Icon

0 commit comments

Comments
 (0)