use-rating
/
0.3.10-beta.1
use-rating 0.3.10-beta.1
Install from the command line:
Learn more about npm packages
$ npm install @platformbuilders/use-rating@0.3.10-beta.1
Install via package.json:
"@platformbuilders/use-rating": "0.3.10-beta.1"
About this version
Easily check if user should be asked about rating based on number of uses and last rated version.
yarn add react-native-store-review @platformbuilders/use-rating
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());
}
}
Details
- use-rating
- platformbuilders
- over 1 year ago
- MIT
- 43 dependencies
Assets
- use-rating-0.3.10-beta.1.tgz
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0