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

后端 未结 6 1278
无人及你
无人及你 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 13:53

    2021 Update:

    Some of the other answers are quite old, and don't support using the in-app review API added in iOS 10.3 (SKStoreReviewController) and Android 5 (ReviewManager). If you're adding reviews to your React Native app in 2021 you should ideally use these if they are available.

    Expo provide a library, https://docs.expo.io/versions/latest/sdk/storereview/ , which will use these newer APIs if they are supported on the user's device, and falls back to opening the store page if not.

    There is also https://github.com/KjellConnelly/react-native-rate which has similar functionality, but with a lot more configuration options. E.g. you can decide whether or not to use the in-app API some or all of the time (which might be a good idea, as the in-app API has a lot less friction for the user but you can only ask a few times a year).

提交回复
热议问题