0.3.10-beta.1 • Published 2 years ago

@platformbuilders/use-rating v0.3.10-beta.1

Weekly downloads
17
License
MIT
Repository
github
Last release
2 years ago

Build Status codecov npm MIT

@platformbuilders/use-rating

Easily check if user should be asked about rating based on number of uses and last rated version.

Install

yarn add react-native-store-review @platformbuilders/use-rating

Usage

iOS users will be inapp prompted to rate (1 to 5 stars) your app. Android users will be redirected to app's page on Play Store.

import { useRating } from '@platformbuilders/use-rating';

const { shouldRate, askRate } = useRating(DeviceInfo.getVersion());

const checkRating = async () => {
  const minUsageNumber = 3;
  const shouldAsk = await shouldRate(minUsageNumber);
  if (shouldAsk) {
    askRate(DeviceInfo.getBundleId());
  }
}
0.3.10-beta.1

2 years ago

0.3.9

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.1.0

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago