expo-store-review
provides access to the SKStoreReviewController
API in iOS 10.3+ devices, allowing you to ask the user to rate your app without ever having to leave the app itself.If this is used in Android the device will attempt to link to the Play Store usingReactNative.Linking
and theandroid.playStoreUrl
from theapp.json
instead.
Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
---|---|---|---|---|
expo install expo-store-review
If you're installing this in a bare React Native app, you should also follow these additional installation instructions.
import * as StoreReview from 'expo-store-review';
StoreReview.requestReview();
StoreReview.requestReview()
. On iOS, this will return true
if the device is running iOS 10.3+. On Android, this will return true
. On Web, this will return false
.StoreReview.isAvailableAsync();
Constants
API to get the Constants.manifest.ios.appStoreUrl
on iOS, or the Constants.manifest.android.playStoreUrl
on Android.null
.const url = StoreReview.storeUrl();
app.json
doesn't have the proper fields, and StoreReview.isAvailableAsync()
returns false.if (await StoreReview.hasAction()) { }
StoreReview.requestReview()
from a button - instead try calling it after the user has finished some signature interaction in the app.