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

React native parsed text #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jrichardlai
Copy link
Contributor

No description provided.

@bleonard
Copy link
Contributor

you should put some @ mentions in the sample data on the server.
maybe a new user too to get it out of the normal followers and such.

if (this.props.listProps.parse === true) {
return [
{type: 'url', style: styles.url, onPress: (url) => AppActions.launchExternalURL(url) },
{pattern: /@(\w+)/, style: styles.mention, onPress: (mention) => AppActions.launchRelativeItem(this.props.currentRoute, {replacePath: `follows/${mention.substring(1).toLowerCase()}/posts`}) },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user doesn't necessarily follow the person he mentioned. adding in follows will also make that the back button. I'd expect to have a change to the route parsing to allow something like /bleonard/posts/jrlai

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

Successfully merging this pull request may close these issues.

2 participants