Skip to content

Commit ee7dd7b

Browse files
authored
TextField - fix web flexness (#2835)
1 parent 95ded5e commit ee7dd7b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/textField/FloatingPlaceholder.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const FloatingPlaceholder = (props: FloatingPlaceholderProps) => {
8787
onLayout={onPlaceholderLayout}
8888
testID={testID}
8989
recorderTag={'unmask'}
90+
numberOfLines={1}
9091
>
9192
{shouldRenderIndication ? placeholder?.concat('*') : placeholder}
9293
</Text>

src/components/textField/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const TextField = (props: InternalTextFieldProps) => {
156156
Known Issue: This slightly push the trailing accessory when entering a long text
157157
*/}
158158
{children || (
159-
<View flexG>
159+
<View flexG={!Constants.isWeb} flex={Constants.isWeb}>
160160
{/* Note: Render dummy placeholder for Android center issues */}
161161
{Constants.isAndroid && centered && (
162162
<Text marginR-s1 style={dummyPlaceholderStyle}>

0 commit comments

Comments
 (0)