React Native AlertIOS功能发送消息

时间:2017-11-09 20:13:09

标签: javascript react-native

我正在使用AlertIOS和我的本机应用程序:

AlertIOS.alert(
  'Report User',
  'Please select OK to report this user',
  [
    {text: 'Cancel', onPress: () => console.log('Cancel Pressed'), style: 'cancel'},
    {text: 'Ok', onPress: () => console.log('Ok Pressed')},
  ],
)

我有弹出警报,用户可以点击确定,取消等

但是,我希望在用户点击后向ADMIN(我)发送消息。

我想发送到电子邮件地址。或者......发送给“应用程序上的用户”(我)。

我怎么能这样做?有人可以提供步骤吗?

注意:我没有在任何地方的服务器上“托管”该应用程序。我现在只在Expo上使用它来在Simulator和iPhone上查看它。此外,对于使用Firebase的DB im。

0 个答案:

没有答案