react-native icon indicating copy to clipboard operation
react-native copied to clipboard

TextInput Lag, Android 13

Open DenisPostnikov opened this issue 3 years ago • 1 comments

Description

Device Pixel, Android 13

Case 1: During typing a of text observed lagging.

Case 2: After typing a lot of text into a Text Input, we start freezing.

Adding autoCorrect={false}, keyboardType="visible-password" and returnKeyType='none' not helped.

Version

0.68.5

Output of npx react-native info

Steps to reproduce

Start typing in TextInput on the Pixel device.

Snack, code example, screenshot, or link to a repository

repr

DenisPostnikov avatar Dec 28 '22 15:12 DenisPostnikov

Any update in this issue? I'm also facing issue in Android 13.

Vijayakumarktm avatar Jan 18 '23 17:01 Vijayakumarktm

me too facing issue in android 13

Kishore0297 avatar Jan 18 '23 17:01 Kishore0297

Potentially related to #35590 What happens if you copy-paste a wall of text?

cortinico avatar Jan 18 '23 17:01 cortinico

@cortinico No solution in #35590 also. Any other solution to fix it immediately?

Vijayakumarktm avatar Jan 18 '23 17:01 Vijayakumarktm

Try drawing your list upside down, and then the contents in the list upside down. https://github.com/facebook/react-native/issues/35350

welch174 avatar Jan 18 '23 17:01 welch174

Try drawing your list upside down, and then the contents in the list upside down. #35350

I used TextInput without Flatlist

DenisPostnikov avatar Jan 18 '23 18:01 DenisPostnikov

Try drawing your list upside down, and then the contents in the list upside down. #35350

I used TextInput without Flatlist

Is the view above your textinput using a flatlist or sectionlist?

welch174 avatar Jan 19 '23 00:01 welch174

@stelmakhivan Myself using inverted Flatlist and TextInput. Both are in different component. How inverted list is related to this TextInput lag issue?

Vijayakumarktm avatar Jan 19 '23 04:01 Vijayakumarktm

Try drawing your list upside down, and then the contents in the list upside down. #35350

I used TextInput without Flatlist

Is the view above your textinput using a flatlist or sectionlist?

Nothing from this only View

DenisPostnikov avatar Jan 19 '23 06:01 DenisPostnikov

Did anyone have any success fixing this? I'm using react-native-gifted-chat so not so straightforward to invert FlatList with CSS transforms.

charlesionlake avatar Jan 19 '23 18:01 charlesionlake

Try drawing your list upside down, and then the contents in the list upside down. #35350

I used TextInput without Flatlist

Is the view above your textinput using a flatlist or sectionlist?

Nothing from this only View

Can you share the code you are using to render that list?

JuanAlejandro avatar Jan 25 '23 17:01 JuanAlejandro

Try drawing your list upside down, and then the contents in the list upside down. #35350

I used TextInput without Flatlist

Is the view above your textinput using a flatlist or sectionlist?

Nothing from this only View

Can you share the code you are using to render that list?

<TextInput multiline editable={!isDisabled} placeholder={_( isDisabled ? 'CHAT_INPUT_PLACEHOLDER_DISABLED' : 'CHAT_INPUT_PLACEHOLDER', )} placeholderTextColor={AppStyles.placeholderColor} style={[ styles.input, {maxHeight: conversationChat ? 105 : 140} ]} value={message} onChangeText={this.onMessageChanged} onFocus={this.props.onFocusChatInput} onBlur={this.props.onBlurChatInput} />

DenisPostnikov avatar Feb 08 '23 14:02 DenisPostnikov

Potentially related to #35590

I can reproduce this issue on a Pixel device that has never seen Grammarly and is running an app using React Native v0.70.9, where that issue has been fixed.

What happens if you copy-paste a wall of text?

It's not the amount of text (copy-pasting a large block of text is fine), but the number of edits (including deletions). Simply typing and deleting a single character 50x is enough to make the input lag severely.

ejain avatar May 04 '23 22:05 ejain

Duplicate of https://github.com/facebook/react-native/issues/35350?

ejain avatar May 10 '23 17:05 ejain

It's not the amount of text (copy-pasting a large block of text is fine), but the number of edits (including deletions).

Also happens on Samsung Galaxy A52 Android 13, quite consistently in real use when writing normal messages and fixing swiped words.

Simply typing and deleting a single character 50x is enough to make the input lag severely.

Can reproduce consistently with this method!

kkor avatar May 16 '23 09:05 kkor

This is a five-year-old issue: #20119. Do not hold your breath for a solution.

holmesjr avatar Sep 05 '23 05:09 holmesjr

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Mar 05 '24 05:03 github-actions[bot]

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

So the way bugs in RN are handled is to ignore them and hope nobody comments on them?

holmesjr avatar Mar 05 '24 06:03 holmesjr