1 | import RNStoreReview from "./NativeRNStoreReview"
|
2 |
|
3 | /**
|
4 | * Asks the user to rate the app in the App/Play Store.
|
5 | * @throws Will throw an Error if native module is not present or not supported by the OS version.
|
6 | */
|
7 | export function requestReview() {
|
8 | if (!RNStoreReview) {
|
9 | throw new Error('StoreReview native module not available, did you forget to link the library?');
|
10 | }
|
11 |
|
12 | return RNStoreReview.requestReview();
|
13 | }
|