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).
Installation
$ yarn add react-native-store-review
Mostly automatic installation
$ react-native link react-native-store-review
Manual installation
- In Xcode, in the project navigator, right click
Libraries
➜ Add Files to [your project's name]
- Go to
node_modules
➜ react-native-store-review
and add RNStoreReview.xcodeproj
- In Xcode, in the project navigator, select your project. Add
libRNStoreReview.a
to your project's Build Phases
➜ Link Binary With Libraries
- Run your project (
Cmd+R
)
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';
if (StoreReview.isAvailable) {
StoreReview.requestReview();
}