【问题标题】:Call React Native App to receive shared info from Browser调用 React Native App 从浏览器接收共享信息
【发布时间】:2017-05-10 13:47:00
【问题描述】:

如果您使用过 Pinterest,您会知道,如果您在 Safari 或 Chrome 中点击分享按钮,pinterest 将显示在分享选项中

然后,如果您点击 pinterest 图标,该应用程序将以模式弹出,因此您可以选择要保存到的图像和板

我的问题是:我们可以在 React Native 中做到这一点吗?我的意思是我希望我的应用显示在共享选项中并可以从中接收数据。

【问题讨论】:

标签: ios react-native sharing


【解决方案1】:

虽然我自己还没有实现这一点,但我对让我的 React-Native 项目既可以接收数据又可以与其他应用共享数据感兴趣。以下是一些似乎可以做到这一点的项目和文章的链接:

从其他应用接收

https://github.com/alinz/react-native-share-extension

https://codeburst.io/building-a-mobile-share-extension-for-a-react-native-app-bff4ef91d44f

https://github.com/meedan/react-native-share-menu

分享到其他应用

https://facebook.github.io/react-native/docs/share.html

https://github.com/EstebanFuentealba/react-native-share

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-07
    • 2016-06-02
    相关资源
    最近更新 更多