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

Displaying human names in place of @mention? #28

Open
tmaly1980 opened this issue May 17, 2018 · 3 comments
Open

Displaying human names in place of @mention? #28

tmaly1980 opened this issue May 17, 2018 · 3 comments

Comments

@tmaly1980
Copy link

I'm hoping to duplicate the exact user experience with facebook's mobile app....

I was wondering if it's possible to display a human name "John Davis" rather than just "@JohnDavis3", based on the item selected? And then when pressing backspace, that it clear the full name (or last name) all at once, rather than one letter at a time?

I noticed there was info on how to add background coloring (#7), but that shows the formatted text absolutely positioning on top of the textinput, which has transparent text... This would work except the only issue is if we're using a human name instead of the encoded @name, it's likely not the same length so the cursor is going to be in the wrong place. The human name could be longer than the @name (which could be padded), but it could also be shorter (which can't really be padded).

Any suggestions?

@singhaishwarya
Copy link

any update?

@mrazadar
Copy link

Hey just published a new react-native-mentions package. Check it out.

@dabakovich
Copy link

You can try a react-native-controlled-mentions that is not rich in configuration yet but enough stable for use in projects.
https://www.npmjs.com/package/react-native-controlled-mentions

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

No branches or pull requests

4 participants