Skip to content

[Bug]: InputText Multiline prop enabled causes infinite re-renders of state.  #2000

@maticDevelo

Description

@maticDevelo

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS

What happened?

When typing in TextInput that has multiline={true} it start infinite loop or re-renders between current and last state. See in video. Same bug appears using BottomSheetTextInput.

ios.multiline.error.mov

Reproduction steps

  • create bottom sheet modal
  • create const [text, setText] = useState(")
  • create InputText with value={text}, onChangeText={(value)=>setText(value)} and MULTILINE={true}
  • open in Expo go iOS and type into TextInput

Reproduction sample

https://snack.expo.dev/@lukadevelo/bottom-sheet-ios-multiline

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv5

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions