Command palette

@yasinsensoy/native

React Native · APIs and utilities

App review

App rating.

2 exports

Import

import { Review } from "@yasinsensoy/native";

Review

module

App rating.

NameTypeDescription
isAvailable() => Promise<boolean>Whether the in-app review prompt is available (Android: whether the Play Store is installed).
request() => Promise<boolean>Requests the in-app review prompt. The system decides on its own whether to show it (at most 3 times a year on iOS) and does not report the result: do not bind it to a button; call it at a positive moment (a task completed). true if the request could be sent; false without the Play Store (Android), in which case use Review.openStorePage.
openStorePage(options?: StorePageOptions) => Promise<boolean>Opens the app's page in the store. true if it could be opened.

Options of Review.openStorePage.

NameTypeDefaultDescription
appStoreId?stringiOS: App Store id (numeric, without the id prefix). Required on iOS.
androidPackage?stringAndroid: package name. Defaults to this app.
write?booleanfalseiOS: the write-a-review screen directly.