-
Notifications
You must be signed in to change notification settings - Fork 77
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
mention formatting messed #11
Comments
Hi @anilios can you reproduce this with provided demo application in /example folder? if you can explain this way; I can test on my end. Meanwhile if you are navigating from the InputView to some other view and coming back on InputView, this might get resolved with initialValue fix I just published last week. |
I am already using initialValue prop. Try following scenario to reproduce, add some text to input box like: "Hello @mrazadar, How are you doing?" Navigate to other screen (hashtag selection) and then come back. "Hello @mrazadar, How are you doing?" Same text will be shown but @mrazadar will no longer be highlighted. |
If you see the source
Can you debug; this code runs when you navigate back to EditorScreen? Just wanted to see if component re-rendered or not. Does your component get mounted all the time? Maybe you can debug some lifecycle component methods as well? |
I don't know but this is working now. I have to add length >0 check to initialValue
Thanks for your efforts and time. |
Nice.. that's a good news. I wish I have more time to spent on this package. Need contributors.. :( |
I am working on an app, in which user can add posts like FB. App has @ mention feature.
So when user type any mention following with some simple text and navigate to select images/hashtags(some other screen) and comes back to post screen after selection. The mentioned text is not shown formatted as it was displayed while typed. I have tried many ways to fix but all in vain.
Please help me to fix this.
The text was updated successfully, but these errors were encountered: