react-native-hyperlink
react-native-hyperlink copied to clipboard
Emails not working on Android devices
Describe the bug Tapping on mailto links on Android device is not opening mail apps. Working fine on iOS devices.
To Reproduce Steps to reproduce the behavior:
- Click on mailto:[email protected]
- See blank screen
Expected behavior Open default mail app or show mail app choices
Screenshots

Smartphone (please complete the following information):
- Device: Pixel 2
- OS: Android Version 9
- Browser: Default
- Version: react-native-hyperlink 0.0.14
I'm seeing this on iOS with linkDefault as well. It does nothing.
Setting the following props worked for me on both platforms;
onPress={url => Linking.openURL(url)}
linkText={url =>
url.includes('mailto:') ? url.replace('mailto:', '') : url
}