@codeooze/react-native-in-app-review
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

drawing

@codeooze/react-native-in-app-review

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

Generally, @codeooze/react-native-in-app-review flow can be triggered at any time throughout the user journey of your app. During the flow, the user has the ability to rate your app using the 1 to 5 star system and to add an optional comment. Once submitted, the review is sent to the Play Store and eventually displayed.

enter image description here

Installation

npm install @codeooze/react-native-in-app-review

Usage

import *as React from 'react';
import { openInAppReview } from '@codeooze/react-native-in-app-review'

const App = () => {
	
	//...

	const showInAppReview = () => {
		openInAppReview()
		.then((response)  =>  {
			//success
			Alert.alert(response)
		})
		.catch((error)  =>  {
			//failure
			Alert.alert(error.message)
		})
	}

	//...
	
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Buy me a coffee

Buy Me A Coffee

Package Sidebar

Install

npm i @codeooze/react-native-in-app-review

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

886 kB

Total Files

135

Last publish

Collaborators

  • codeooze