react-native-play-store-rate
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

react-native-play-store-rate

This is a package for opening the Play Store to write a review for a given app.

Getting started

$ npm install react-native-play-store-rate --save

or

$ yarn add react-native-play-store

Installation

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNPlayStoreRatePackage; to the imports at the top of the file
  • Add new RNPlayStoreRatePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-play-store-rate'
    project(':react-native-play-store-rate').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-play-store-rate/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-play-store-rate')
    

Usage

import { rateApp } from 'react-native-play-store-rate';

...

const id = "com.example";
rateApp(id);

Readme

Keywords

Package Sidebar

Install

npm i react-native-play-store-rate

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

5.07 kB

Total Files

9

Last publish

Collaborators

  • zknowles