0.3.10-beta.1 • Published 11 months ago

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

Weekly downloads
17
License
MIT
Repository
github
Last release
11 months 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

11 months ago

0.3.9

12 months ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.5

2 years ago

0.1.1

2 years ago

0.1.3

2 years ago

0.1.0

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago