How to make a “Rate this app” link in React Native app?

后端 未结 6 1324
无人及你
无人及你 2021-01-30 13:11

How to properly link a user to reviews page at App Store app in React Native application on iOS?

6条回答
  •  忘了有多久
    2021-01-30 14:10

    Using third party libraries, in ios it is opening itunes, let me tell you the exact way for opening appstore. First thing your should be live and it'll work on physical device(simulator is not guaranteed)

    const url = Platform.OS === 'android' ?
                        'https://play.google.com/store/apps/details?id=YOUR_APP_ID'   :  'https://apps.apple.com/us/app/doorhub-driver/id_YOUR_APP_ID'
                    Linking.openURL(url)
    

    You can find your ios link by searching your app on appstore and copy that url.

提交回复
热议问题