如何从 ReactNative 打开其他应用程序? [英] How to open Other app from ReactNative?

查看:100
本文介绍了如何从 ReactNative 打开其他应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从 ReactNative 打开其他应用程序(Gmail、相机).如何将数据从当前场景传递到其他应用?

How to open other apps (Gmail, Camera) from ReactNative. How can I pass data from current scene to other app?

推荐答案

我发现这个 npm 库 react-native-app-link 可以打开其他应用程序.这是基于深层链接,如果您有任何深层链接,那么这个库可以提供帮助.这不会仅通过提供 android 包名称或 ios 应用程序 ID 来打开应用程序.

I found this npm library react-native-app-link which can open other apps. This is based on deep linking, if you have any deep links then this library can help. This doesn't open apps just by giving the android package name or ios app id.

https://github.com/FiberJW/react-native-app-link

这篇关于如何从 ReactNative 打开其他应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆