The last step here is to render a Text component that has an onPress event that will navigate to a user profile whenever that callback is called. Building this component, I took some inspiration from @patryk's work with the MarkdownChatMention component.
https://github.com/CommE2E/comm/blob/master/native/markdown/markdown-chat-mention.react.js
This is step 4 in the list below
Outlined below are the steps I will take to make @metion of a user into a touchable
- Introduce createMemberMapForUserMentions function (Right now we only store a set of usernames but we also will want to know the id of the user based on the username)
- Introduce parseUserMentions function (We will use this function to get and return a userID from the membersMap)
- Introduce userProfileBottomSheetActive state to the markdown context (This will be used for disabling the press to focus on a message functionality)
- Introduce MarkdownUserMention component (this will render the touchable that will navigate to the user profile)
Depends on D9393