反应本机链接邮件api支持主题,正文? [英] React native linking mail api support subject, body?
本文介绍了反应本机链接邮件api支持主题,正文?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,我使用Linking api打开mailto.
Hello I use Linking api to open mailto.
我尝试使用下面的方法调用邮件应用
I try to call mail app using below
Linking.openURL('mailto://somethingemail@gmail.com&subject=abcdefg&body=body')
但它会打开邮件应用程序 to:somethingemail@gmail.com&subject=abcdefg&body=body
but It will open maill app with to:somethingemail@gmail.com&subject=abcdefg&body=body
主题和正文为空
推荐答案
您需要删除 url 中的 '//' 并添加一个 '?': mailto:somethingemail@gmail.com?subject=abcdefg&body=body
You need to remove the '//' in your url and add a '?' : mailto:somethingemail@gmail.com?subject=abcdefg&body=body
这篇关于反应本机链接邮件api支持主题,正文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文