oblador/react-native-store-review
Rate on App/Play Store directly in your React Native app
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#1 Repository Của Tuần
📱 Đánh giá trong app với native API của React Native
Gọi
StoreReview.requestReview()— Apple và Google sẽ tự hiển thị dialog đánh giá, không cần tự build UI.
react-native-store-review của oblador là một bridge module đơn giản, phơi bày native APIs SKStoreReviewController (iOS) và In-App Review API (Google Play) để prompt người dùng đánh giá app ngay trong ứng dụng. Hỗ trợ iOS >= 14.0 và Android 5.0 trở lên.
✨ Điểm nổi bật
- Một dòng gọi API:
StoreReview.requestReview()xử lý toàn bộ việc hiển thị dialog đánh giá native trên cả iOS và Android - Native integration: Dựa trên
SKStoreReviewControllercủa Apple vàIn-App Review APIcủa Google Play — không dùng webview hay redirect thủ công cho flow chính - Fallback qua Linking: Hỗ trợ redirect người dùng đến App Store/Play Store bằng
itms-apps://vàmarket://khi cần hoặc cho các OS không hỗ trợ - Platform.select tích hợp: Dễ dàng chọn link đúng nền tảng qua
Platform.select({ ios: ..., android: ... }) - Zero UI tự xây: Dialog hiển thị hoàn toàn do hệ điều hành quản lý, đảm bảo nhất quán với hệ thống
- Hỗ trợ localization: Chuỗi trong dialog lấy từ OS, cần cấu hình metadata trên Xcode cho iOS để hiển thị đúng ngôn ngữ
💡 Vì sao đáng chú ý
Apple và Google đều cung cấp native in-app review API, nhưng tích hợp trực tiếp đòi hỏi viết Swift/Kotlin riêng cho mỗi nền tảng. Module này đóng gói thành một JS call duy nhất, giảm đáng kể boilerplate cho React Native app. Lưu ý quan trọng: dialog không phải lúc nào cũng hiển thị (Apple/Google giới hạn tần suất gọi, và không hoạt động trên TestFlight hay enterprise build), nên gọi requestReview() như một side effect khi người dùng hoàn thành tác vụ thay vì gắn vào nút bấm.
Cần cấu hình LSApplicationQueriesSchemes với itms-apps trong Info.plist trên iOS để dialog hoạt động đúng. Với team đã dùng React Native, đây là cách nhanh nhất để thêm tính năng đánh giá app mà không viết code native riêng.
#ReactNative #AppStore #PlayStore #InAppReview #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
An awesome list that curates the best Flutter libraries, tools, tutorials, articles and more.
Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.
🚀 The easiest way to automate building and releasing your iOS and Android apps