Skip to content

yptech/react-native-store-review

 
 

Repository files navigation

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();
}

About

Rate on App Store directly in your React Native app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 41.6%
  • JavaScript 28.7%
  • Python 13.5%
  • Java 10.8%
  • Ruby 5.4%