{"id":13577527,"url":"https://github.com/oblador/react-native-store-review","last_synced_at":"2025-06-14T14:09:32.320Z","repository":{"id":37451190,"uuid":"86383997","full_name":"oblador/react-native-store-review","owner":"oblador","description":"Rate on App/Play Store directly in your React Native app","archived":false,"fork":false,"pushed_at":"2023-10-26T12:48:13.000Z","size":842,"stargazers_count":760,"open_issues_count":5,"forks_count":53,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-06T00:48:21.567Z","etag":null,"topics":["android","appstore","ios","playstore","rating","react-native","review"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oblador.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["oblador"]}},"created_at":"2017-03-27T21:06:02.000Z","updated_at":"2025-05-14T04:24:45.000Z","dependencies_parsed_at":"2023-02-12T07:46:10.055Z","dependency_job_id":"5d83299e-d47d-49a0-b131-af9427875fe1","html_url":"https://github.com/oblador/react-native-store-review","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/oblador/react-native-store-review","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-store-review","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-store-review/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-store-review/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-store-review/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oblador","download_url":"https://codeload.github.com/oblador/react-native-store-review/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-store-review/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259827667,"owners_count":22917714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","appstore","ios","playstore","rating","react-native","review"],"created_at":"2024-08-01T15:01:22.245Z","updated_at":"2025-06-14T14:09:32.294Z","avatar_url":"https://github.com/oblador.png","language":"Java","funding_links":["https://github.com/sponsors/oblador"],"categories":["Java"],"sub_categories":[],"readme":"# react-native-store-review\n\nThis module exposes the native APIs to ask the user to rate the app in the iOS App Store or Google Play store directly from within the app (requires iOS \u003e= 12.4 or Android 5.0 with Google Play store installed). \n\n\u003cimg width=\"274\" alt=\"Rating Dialog\" src=\"https://cloud.githubusercontent.com/assets/378279/24377493/d22eb0b8-133f-11e7-9968-44d186a3801f.png\"\u003e\n\n## Installation\n\n```bash\n# Add dependency\nyarn add react-native-store-review\n# Link iOS dependency\npod install --project-directory=ios\n# Compile project\nreact-native run-ios # or run-android\n```\n\n## Usage\n\nThe intention of this API is to ask the user to rate the app as a part of the user journey, typically as the user completes a task. **Since it's not possible to know if a dialog will be shown or not you should not call it as a result of tapping a button**, but rather as a side effect of an event happening in the app. \n\n```js\nimport * as StoreReview from 'react-native-store-review';\n\nStoreReview.requestReview();\n```\n\n### Button\n\nIf you want to show a button or provide a fallback for OS versions not supporting these APIs, you can redirect the user to the respective stores to review the app there instead. \n\n```js\nimport { Linking, Platform } from 'react-native';\n\nconst APP_STORE_LINK = `itms-apps://apps.apple.com/app/id${IOS_APP_ID}?action=write-review`;\nconst PLAY_STORE_LINK = `market://details?id=${ANDROID_APP_ID}`;\n\nconst STORE_LINK = Platform.select({\n  ios: APP_STORE_LINK,\n  android: PLAY_STORE_LINK,\n});\n\nexport const openReviewInStore = () =\u003e Linking.openURL(STORE_LINK)\n```\n\n## References\n\n* [`SKStoreReviewController` for App Store](https://developer.apple.com/documentation/storekit/skstorereviewcontroller/requesting_app_store_reviews) \n* [`In-App Review API` for Google Play Store](https://developer.android.com/guide/playcore/in-app-review).\n\n## Troubleshooting\n\n### The dialog is not showing in the correct language on iOS\n\nThe strings in the dialog comes from the OS, if your translations are purely in JavaScript land you need to add meta data so iOS understand which languages you support, [see the official documentation](https://developer.apple.com/documentation/xcode/localization/adding_support_for_languages_and_regions).\n\n### The dialog is not showing when I call `requestReview()`\n\n##### (1)\nFor iOS you have to add LSApplicationQueriesSchemes as Array param to Info.plist and add itms-apps as one of params in this array to link appstore.\n\nFor example:\n```js\n\u003ckey\u003eLSApplicationQueriesSchemes\u003c/key\u003e\n\u003carray\u003e\n  \u003cstring\u003eitms-apps\u003c/string\u003e\n\u003c/array\u003e\n```\n\n##### or (2)\nThe dialog **is not showing while testing with TestFlight** but will be working normally once in production ([source](https://stackoverflow.com/questions/46770549/skstorereviewcontroller-requestreview-popup-is-not-showing-in-testflight-build/47048474#47048474)). Furthermore it will not work for enterprise apps as they are not available on the App Store, and Apple/Google will restrict the amount of times the API can be called to a few times per year in order prevent misuse. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblador%2Freact-native-store-review","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foblador%2Freact-native-store-review","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblador%2Freact-native-store-review/lists"}