Skip to content

Commit

Permalink
foxong input inside row container no width bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnilton committed Jun 16, 2022
1 parent dda7dbd commit 732e461
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-floating-label-input",
"description": "A simple and customizable React Native TextInput with it's placeholder always shown.",
"version": "1.4.1",
"version": "1.4.2",
"author": "Caio Nilton <cnilton>",
"main": "index.tsx",
"private": false,
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ const FloatingLabelInput: React.ForwardRefRenderFunction<InputRef, Props> = (
});

return (
<TouchableWithoutFeedback onPress={setFocus} onLayout={onLayout}>
<View style={{ flexDirection: 'row' }}>
<TouchableWithoutFeedback style={{flex:1}} onPress={setFocus} onLayout={onLayout}>
<View style={{ flexDirection: 'row', flexGrow:1 }}>
{staticLabel && (
<AnimatedText
{...labelProps}
Expand Down

0 comments on commit 732e461

Please sign in to comment.