问题描述
我正在尝试找到一种方法,当用户按下react-native应用程序内部的按钮时,如何使用我的应用程序打开google play商店.有办法吗?
I am trying to find a way how to open the google play store with my application when the user is pressing a button inside of the react-native application. Is there a way how to do this?
推荐答案
您可以使用深度链接使用以下方法从应用程序重定向用户: https://developer.android.com/distribute/tools/promote/linking.html
You can use deeplinking to redirect your user from your app using this:https://developer.android.com/distribute/tools/promote/linking.html
和来自react-native的 Linking
API: http://facebook.github.io/react-native/docs/linking.html
and the Linking
API from react-native:http://facebook.github.io/react-native/docs/linking.html
这篇关于React-Native:如何从React Native应用打开Google Play商店?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!