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).
$ yarn add react-native-store-review
$ react-native link react-native-store-review
- In Xcode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-store-reviewand addRNStoreReview.xcodeproj - In Xcode, in the project navigator, select your project. Add
libRNStoreReview.ato your project'sBuild Phases➜Link Binary With Libraries - 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'import * as StoreReview from 'react-native-store-review';
// This API is only available on iOS 10.3 or later
if (StoreReview.isAvailable) {
StoreReview.requestReview();
}