Skip to main content

inAppReviewHelper

Content

Shows in-app review provided by react-native-in-app-review.

showInAppReview

The Google Play In-App Review API, App store rating API lets you prompt users to submit Play Store or App store ratings and reviews without the inconvenience of leaving your app or game.

Params

NameTypeRequiredDefault valueDescription
successAction() => voidFalseUndefinedSuccess action callback
failAction(error: Error) => voidFalseUndefinedError callback with error
onReviewNotAvailable() => voidFalseUndefinedCallback when review is not available on this device

Usage example

import {useEffect} from "react";

useEffect(() => {
showInAppReview();
}, []);