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 image causing an error on android #18

Open
yernandus opened this issue Jan 17, 2018 · 2 comments
Open

displaying image causing an error on android #18

yernandus opened this issue Jan 17, 2018 · 2 comments

Comments

@yernandus
Copy link

screen shot 2018-01-17 at 16 22 15

@martsie
Copy link

martsie commented Mar 23, 2018

Having same issue, it looks like this library might have issues displaying custom components and images in markdown on Android. Android only supports text in text components.

@martsie
Copy link

martsie commented Mar 23, 2018

You can get around this by adding the following to your markdown rules:

paragraph: {
            render: (node, output, state, styles) => {
              return (
                <View key={state.key} style={styles.container}>
                  {output(node.content, state)}
                </View>
              );
            },           
          },

Who knows what this may break for you but at least it's a place to start!

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

2 participants