How to open Other app from ReactNative?

独自空忆成欢 提交于 2019-12-07 07:51:30

问题


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


回答1:


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




回答2:


you can mange opening other apps using Linking




回答3:


Code sample for opening the dialer

const urlToOpen = 'tel:1234567890';
Linking.openURL(urlToOpen);

You can refer to the official doc here, it just predefines some applications, which can be opened.

However, if the question is about to open just about any application, I hope there is no solution till now.



来源:https://stackoverflow.com/questions/43040100/how-to-open-other-app-from-reactnative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!