Allen
Allen

Reputation: 360

React Native text input is very slow to update

I have a chat app for iOS and Android - basic layout with a list of messages and an input field to type and send a message. After a few dozen messages come in typing gets very slow. The list scrolling still works smoothly though.

I checked with the iOS memory tools and it reports that I don't have a memory leak. On Android systrace, it shows that deliverInputEvent takes over 300ms.

How to I figure out what makes deliverInputEvent take so long?

Android Systrace

Upvotes: 9

Views: 9495

Answers (2)

David Jesus
David Jesus

Reputation: 2111

I have the same app and the same problem. In my case, the TextInput becomes slow when starting typing. I noticed that autocorrect takes some time to suggest words on the keyboard and so I turned it off. Now it works better. I know it's not the best solution, but ... ¯ \ _ (ツ) _ / ¯

autoCorrect={false}

Upvotes: 1

Hopia
Hopia

Reputation: 180

Seems like a bug in React Native: https://github.com/facebook/react-native/issues/19126

Upvotes: 5

Related Questions