Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Android) TextInput lag when there are a lot of messages #19500

Closed
4 of 5 tasks
aspidvip opened this issue May 30, 2018 · 5 comments
Closed
4 of 5 tasks

(Android) TextInput lag when there are a lot of messages #19500

aspidvip opened this issue May 30, 2018 · 5 comments
Labels
Component: TextInput Related to the TextInput component. Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.

Comments

@aspidvip
Copy link

aspidvip commented May 30, 2018

Environment

Environment:
OS: macOS High Sierra 10.13.4
Node: 6.11.1
Yarn: 0.27.5
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.3 => 0.55.3 & 0.55.4

Description

When you type text on Android, hangs

Steps to Reproduce

When user enter large text (50+ characters) and remove it then repeat process again 2 or more times.

<TextInput 
onChangeText={(text) => this.setState({text})}
value={
this.setState({text: this.state.text})
}
/>

40582367-33f29d16-61b7-11e8-80ff-1967e8e0ba5c

Expected Behavior

Actual Behavior

@react-native-bot react-native-bot added Platform: Android Android applications. Component: TextInput Related to the TextInput component. labels May 30, 2018
@stueynet
Copy link

I can confirm this but it does not require lot of messages. It happens with any amount of text. Try the plain installation drop in a text input. Then type on android and try deleting. Gets slower over time.

@tuomohopia
Copy link

This is most definitely the same issue as reported here: #19126

@alwex
Copy link

alwex commented Jun 10, 2018

I confirm, exact same issue with 0.55.4, it happens on android S5 mini after 20 input type/clear.

@s-nel
Copy link

s-nel commented Jul 6, 2018

It is the same issue as #19126 but I've reproduced on 0.56.0. Clearing doesn't seem to be required for me. If I type enough characters the framerate drops to single digits.

Here's a repository for reproduction https://github.com/s-nel/rn19126

longtext

@kelset
Copy link
Contributor

kelset commented Jul 12, 2018

Closing in favour of #20119 which has more details.

@kelset kelset closed this as completed Jul 12, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Jul 18, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: TextInput Related to the TextInput component. Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants