React Native-通过whats应用程序总线发送消息


React Native:我想创建一个链接,准备通过whatsapp发送消息。

我是这样做的:

Linking.openURL(`whatsapp://send?text=${message}&phone=+55${masked}`);

我的问题是如何调整此代码并打开WhatsAppBussines?

类似这个的东西

<Text style={{color: 'blue'}}
onPress={() => Linking.openURL('whatsapp://send?text=${message}&phone=+55${masked}')}>
  Whatsapp
</Text>

当你点击时,WhatsApp自动打开,你可以选择WhatsApp/whatsappbusiness

最新更新