如何格式在WhatsApp React本地发送文本
我想要的是发送以对象形式编写的数据,就像商店有收据一样,我的代码是
var date = new Date().getDate();
const UploadDataCredentials = {
user_id: user_id,
user_detail: [Name, Phone, Address],
order_detail: Data,
total_price: TotalPrice,
order_time: date,
status: 'Pending',
};
Linking.openURL(`whatsapp://send?text=${JSON.stringify(UploadDataCredentials)}&phone=+923354584582`)
props.navigation.replace(navigationstring.BOTTOMTABHOME);
What I wanted is to send data that is written in object form in proper formate like stores have receipt my code is
var date = new Date().getDate();
const UploadDataCredentials = {
user_id: user_id,
user_detail: [Name, Phone, Address],
order_detail: Data,
total_price: TotalPrice,
order_time: date,
status: 'Pending',
};
Linking.openURL(`whatsapp://send?text=${JSON.stringify(UploadDataCredentials)}&phone=+923354584582`)
props.navigation.replace(navigationstring.BOTTOMTABHOME);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,最终我知道我的问题代码的答案在
这里 /n代表下一行
您可以在文本中使用您想要的任何形式的whatsapp输出消息。
so final i know answer of my question code is below
here /n represent Next line
you can formate whatsapp output message with any formate you want in text