开发者社区> 镜像站> NPM> react-native-store-review
react-native-store-review
Rate on App Store directly in your React Native app
Last updated 3 years ago by oblador .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-native-store-review 
SYNC missed versions from official npm registry.

react-native-store-review

This module exposes the native iOS APIs to ask the user to rate the app in the iOS App Store directly from within the app (requires iOS >= 10.3).

Rating Dialog

Installation

$ yarn add react-native-store-review

Mostly automatic installation

$ react-native link react-native-store-review

Manual installation

  1. In Xcode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-store-review and add RNStoreReview.xcodeproj
  3. In Xcode, in the project navigator, select your project. Add libRNStoreReview.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)

Using CocoaPods

Add the following to your Podfile and run pod install:

pod 'RNStoreReview', :path => '../node_modules/react-native-store-review/ios'

Usage

import * as StoreReview from 'react-native-store-review';

// This API is only available on iOS 10.3 or later
if (StoreReview.isAvailable) {
  StoreReview.requestReview();
}

Current Tags

  • 0.1.5                                ...           latest (3 years ago)

6 Versions

  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 1
This Week 5
This Month 4
Last Day 1
Last Week 6
Last Month 32
Dependencies (0)
None
Dev Dependencies (0)
None