From 57d65bec0fb663f3ecfc6cd7616e37deadd148b3 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 7 Dec 2017 22:37:17 +0000 Subject: [PATCH] Make tel and email linkable in the contact view. --- src/Contact.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Contact.tsx b/src/Contact.tsx index 6ada747..5d946ff 100644 --- a/src/Contact.tsx +++ b/src/Contact.tsx @@ -30,6 +30,7 @@ class ViewContact extends React.Component { key={idx} leftIcon={} rightIcon={} + href={'tel:' + val} primaryText={val} secondaryText={json[1].type} /> @@ -43,6 +44,7 @@ class ViewContact extends React.Component { } + href={'mailto:' + val} primaryText={val} secondaryText={json[1].type} /> @@ -60,7 +62,7 @@ class ViewContact extends React.Component { );