I'm trying to set a function where when a button is clicked the program will send an email. I'm using react native web. so far I have tried react-native-mail. this opens an email client but when I try to run build-web, the node module for react-native-mail can't be minified. I've also tried react-native-communications but I get an error as well. Are there any methods I'm missing?
Asked
Active
Viewed 133 times
1 Answers
0
react-native-mail
is a native module. As in react-native-web
, you are running javascript code in the browser environment. It's not possible to run native code in the browser.
In this case, I'd suggest you write a specific component for web browser, and create an <a>
element with a mailto:
href attribute to invoke the system email client.

Sin
- 1,040
- 1
- 8
- 20