Skip to content

Commit 732e461

Browse files
committed
foxong input inside row container no width bug
1 parent dda7dbd commit 732e461

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-floating-label-input",
33
"description": "A simple and customizable React Native TextInput with it's placeholder always shown.",
4-
"version": "1.4.1",
4+
"version": "1.4.2",
55
"author": "Caio Nilton <cnilton>",
66
"main": "index.tsx",
77
"private": false,

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ const FloatingLabelInput: React.ForwardRefRenderFunction<InputRef, Props> = (
577577
});
578578

579579
return (
580-
<TouchableWithoutFeedback onPress={setFocus} onLayout={onLayout}>
581-
<View style={{ flexDirection: 'row' }}>
580+
<TouchableWithoutFeedback style={{flex:1}} onPress={setFocus} onLayout={onLayout}>
581+
<View style={{ flexDirection: 'row', flexGrow:1 }}>
582582
{staticLabel && (
583583
<AnimatedText
584584
{...labelProps}

0 commit comments

Comments
 (0)