From 320ee0d468ded8c5ea97f8f1ac5ff8de06058c50 Mon Sep 17 00:00:00 2001 From: Stego Date: Wed, 27 May 2020 14:27:26 +0200 Subject: [PATCH] In renderLink node isn't have node.props.title renderLink is always undefined. Title is first item in node children --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index dc39dd6..441d9b8 100644 --- a/index.js +++ b/index.js @@ -181,7 +181,7 @@ class Markdown extends Component { let children = this.renderNodes(node.props.children, key, extras); if (this.props.renderLink) { - return this.props.renderLink(node.props.href, node.props.title, children, key); + return this.props.renderLink(node.props.href, node.props.children[0], children, key); } const SafeWrapper = Utils.isTextOnly(children) ? Text : TouchableOpacity;