1.0.6 • Published 5 years ago

react-native-play-store-rate v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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);
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago