rn - 0.55
chat 0.4.3
I quickly type and UI is very slow. Wtf ?
What kind of gesture did you write?
I'm thinking of writing my ui
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!
@ahartzog 0.56 ? What is problem ?
@ahartzog this ? 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.
@ahartzog How to be in 0,55?
upgrade ?
@ahartzog analogue chat
i remove composer and keyboard has become normal
@bilalsyed001 With simple input all right. In this chat lots of odd code, props and etc.
@userbq201 remove all console before making a release build and then check
@shaheem-khanzada thereis already
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}
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?
@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.
@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 ?
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.
any idea when will release it?
Most helpful comment
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}