diff --git a/README.md b/README.md index 4e3a86b..6db0711 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ const MyAwesomeApp = () => { {'\n\n'} You can **emphasize** what you want, or just _suggest it_ 😏… {'\n\n'} - You can even [link your website](http://charlesmangwa.surge.sh) or if you prefer: [email sombedy](mailto:charlesmangwa@gmail.com) + You can even [link your website](http://charlesmangwa.surge.sh) or if you prefer: [email sombedy](mailto:email@somebody.com) {'\n\n'} Spice it up with some GIF 💃: {'\n\n'} diff --git a/index.js b/index.js index ff2c23c..ec65a6b 100644 --- a/index.js +++ b/index.js @@ -36,6 +36,16 @@ class Markdown extends Component { return SimpleMarkdown.reactFor(SimpleMarkdown.ruleOutput(rules, 'react'))(tree) } + shouldComponentUpdate(nextProps, nextState) { + if ( + this.props.children === nextProps.children && + this.props.styles === nextProps.styles + ) { + return false + } + return true + } + render() { return ( diff --git a/package.json b/package.json index c04e668..654a270 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "react-native": "*" }, "keywords": [ - "react", + "react-native", "native", "markdown", "md",