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

Inline images in messages? #49

Closed
emilkarl opened this issue Jun 4, 2018 · 1 comment
Closed

Inline images in messages? #49

emilkarl opened this issue Jun 4, 2018 · 1 comment

Comments

@emilkarl
Copy link

emilkarl commented Jun 4, 2018

Has anyone got inline images in messages working? Trying to add a pattern for it but I cant make them split the lines. Seems like it should be an easy fix.

renderImage = (matchingString, matches) => (
    <View
      style={{
        paddingVertical: 10,
      }}
    >
      <MessageImage currentMessage={{ image: matches[1] }} />
    </View>
  );
{
  pattern: /\[IMG:(.+?)\]/gi,
  style: {},
  onPress: () => {},
  renderText: this.renderImage,
},
@fbartho
Copy link
Contributor

fbartho commented Nov 15, 2018

Hi @emilkarl this needs the feature described in #37, closing as duplicate!

@fbartho fbartho closed this as completed Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants