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

Keyboard very slow! #926

Closed
dmitryshelomanov opened this issue Jul 13, 2018 · 20 comments
Closed

Keyboard very slow! #926

dmitryshelomanov opened this issue Jul 13, 2018 · 20 comments
Labels

Comments

@dmitryshelomanov
Copy link

rn - 0.55
chat 0.4.3

I quickly type and UI is very slow. Wtf ?
What kind of gesture did you write?

@dmitryshelomanov
Copy link
Author

I'm thinking of writing my ui

@ahartzog
Copy link

Android presumably?

This is an issue in react native that is fixed in 0.56

But windows dev is broken in 0.56

Good luck!

@dmitryshelomanov
Copy link
Author

@ahartzog 0.56 ? What is problem ?

@dmitryshelomanov
Copy link
Author

@ahartzog this ? link

@ahartzog
Copy link

Yes that. But 0.56 has a regression where if you're doing development on a windows environment you can't do anything right now, so I'm just warning you of that.

@dmitryshelomanov
Copy link
Author

@ahartzog How to be in 0,55?

@dmitryshelomanov
Copy link
Author

upgrade ?

@dmitryshelomanov
Copy link
Author

@ahartzog analogue chat

@dmitryshelomanov
Copy link
Author

i remove composer and keyboard has become normal

@bilalsyed001
Copy link

@dmitryshelomanov
Copy link
Author

@bilalsyed001 With simple input all right. In this chat lots of odd code, props and etc.

@shaheem-khanzada
Copy link

@userbq201 remove all console before making a release build and then check

@dmitryshelomanov
Copy link
Author

@shaheem-khanzada thereis already

@batuhansahan
Copy link

batuhansahan commented Aug 6, 2018

in node_modules/ react native gifted chat

find composer.js

at line 44 or 43
change the value with below

value={Platform.OS === 'ios' ? this.props.text : null}

@richeterre
Copy link

Based on the reactions, I expected this change to fix the issue, but instead it turned out that the input field would no longer get cleared after submitting a message. Did anyone else have this experience?

jenni-divvito added a commit to divvito/react-native-gifted-chat that referenced this issue Sep 7, 2018
@jenni-divvito
Copy link

@richeterre - You're correct, if you are doing this you'll need another way to reset the text input.

For us, we add to the textInputProps the following: ref: textInput => this.textInput = textInput,
then in the onSend handler we do if (this.textInput) this.textInput.setNativeProps({text:''});

That said, this is hanging around from an earlier time and I know that these days it's better to set up refs using forwardRefs, so you might want to look them up and implement it that way instead.

@neel132-zz
Copy link

@batuhansahan your solution works like a charm... Thanks :)
But In android how it is possible to set a default value of TextInput as it is initialized to null ?

gitusp pushed a commit to lemois/react-native-gifted-chat that referenced this issue Jan 29, 2019
@stale
Copy link

stale bot commented Feb 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 12, 2019
@stale stale bot closed this as completed Feb 19, 2019
selfeky pushed a commit to BlueCallApp/react-native-gifted-chat that referenced this issue Feb 28, 2019
selfeky pushed a commit to BlueCallApp/react-native-gifted-chat that referenced this issue Feb 28, 2019
howg0924 added a commit to howg0924/react-native-gifted-chat that referenced this issue Aug 16, 2019
@faustoct1
Copy link

any idea when will release it?

@fukemy
Copy link

fukemy commented Jul 14, 2022

in 2022 version 1.0.2, long text string still make app very SLOW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants