-
Notifications
You must be signed in to change notification settings - Fork 82
Highlight mentions? #43
Comments
You can use ParsedText. Check out this library |
@azkahi does this actually work inside the text input (i.e. while the user is typing?) I'm currently using react-native-parsed-text to highlight the mentions when they appear as regular |
@lizzieshipwreck you can use parsedText as a children of TextInput and you're good to go.... |
Got you, thank you for the answers! |
You can try a |
@dabakovich thanks! I think you should add there some screenshots, it‘s hard to get an impression without them |
Thanks! I plan to add demo gifs later. But for now you can play with the library on Expo Snack that I think it's much better then just looking at the pictures. |
@Abhishek-Sankey Can you provide an example of how to use it? If I provide children to
|
@dabakovich most people won’t try a UI library before they see some screenshots... |
@The0racle I haven't used react-native mentions for implementing mentions. Instead, used |
@dabakovich tried your expo project. It misbehaves when you have more than one mentions |
@Abhishek-Sankey Got it. Thanks! |
You are right. Just added a demo gif to the package home page :) |
Thanks a lot for your comment! Unfortunately expo snack was using an outdated library version. The bug is fixed already. You can try it again if you wish. |
@Abhishek-Sankey Could you share your code? I'm using a TextInput the same way you did, with
|
@The0racle unfortunately, it doesn't work that way. Against, you can check this react-native-controlled-mentions library. It uses one workaround to solve the highlighting issue more gracefully. |
Thanks @dabakovich. I had checked your library before but it seems you fixed the issues I encountered. I'll let you know if it works. |
Same problem here since MentionTextInput requires the value. When I pass in the Value then the textinput content will be repeated... When I remove the highlight mention works but suggestions doesn't. |
Hi! I'm trying to highlight mentions, did you find something to fix it? |
Thank you for this awesome library!
Would you know how can we add the option to highlight the mentions after selection?
The text was updated successfully, but these errors were encountered: