You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for reaching out. I am closing this issue as it appears to be related to Expo. I have failed to reproduce your issue with react-native v0.56.
exportdefaultclassAppextendsComponent<Props>{openMailTo(){Linking.openURL('mailto:test@example.com').catch(err=>alert(err));}openTel(){Linking.openURL('tel:0123456789').catch(err=>alert(err));}render(){return(<Viewstyle={styles.container}><Textstyle={styles.welcome}onPress={this.openMailTo}>Welcome to React Native!</Text><Textstyle={styles.instructions}onPress={this.openTel}>To get started, edit App.js</Text><Textstyle={styles.instructions}>{instructions}</Text></View>);}}
Trying to use the Linking module to open tel or mailto urls on Android fails.
Environment
Environment:
OS: macOS High Sierra 10.13.4
Node: 9.11.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.1 AI-173.4697961
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz => 0.55.2
Steps to Reproduce
Expected Behavior
It is expected that these links should be properly opened without some sort of crash.
Actual Behavior
Android throws an error and does not open the links.
The text was updated successfully, but these errors were encountered: