npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@shadahmad7/react-native-store-review

v0.0.3

Published

React Native Store Review TurboModule for iOS and Android. This library provides a fully native API to trigger in-app review dialogs using Google Play In-App Review and Apple's SKStoreReviewController, without requiring Expo or additional UI. Lightweight,

Readme

@shadahmad7/react-native-store-review

A lightweight, fully-native In-App Store Review TurboModule for React Native CLI apps.

This module lets you trigger the native rating popup without sending users outside the app — and without using Expo.

TurboModule + Native (Obj-C + Kotlin)

📱 iOS & Android Support

🔒 System-controlled & Safe

🎯 Zero UI Maintenance — Always native look


🚀 Features

  • Fully native TurboModule (supports New Architecture)
  • Works on both iOS & Android
  • Does not redirect users to the App Store/Play Store
  • Uses official native APIs
    • iOS: SKStoreReviewController
    • Android: Google Play In-App Review API
  • Automatic availability handling — shows only when allowed
  • System decides when to display the dialog (no spam risk)

📦 Installation

npm install @shadahmad7/react-native-store-review

or

yarn add @shadahmad7/react-native-store-review

💻 Usage

import StoreReview from "@shadahmad7/react-native-store-review";

async function askForReview() {
  const available = await StoreReview.isAvailableAsync();
  if (!available) return;

  await StoreReview.requestReview();
}

💡 Tip: Only call after meaningful user actions

(e.g., successful payment, booking, completed level, etc.)


📌 Platform Notes

📱 iOS

  • Works only on real devices
  • Apple decides whether to show the popup
  • It may not appear on:
    • Debug builds
    • TestFlight builds
    • Xcode installed builds

🤖 Android

  • Requires Google Play Store + Play Services
  • Dialog may not show on:
    • Devices without Play Store (Huawei, AOSP)
    • Sideloaded APKs
    • Debug builds
    • If shown too frequently

📚 API

isAvailableAsync(): Promise<boolean>

Checks if the device allows triggering the review dialog.

const canRequest = await StoreReview.isAvailableAsync();

requestReview(): Promise<void>

Requests the in-app review popup.

await StoreReview.requestReview();

⚠️ Note: The system may choose not to show anything even if the promise resolves.


🎯 Best Practices

✔ Trigger only after positive/milestone actions

✔ Never show a custom popup asking for rating first

Do not spam calls

✔ Call once at defined checkpoints


❓ FAQ

🔹 Can I detect if the popup actually appeared?

No. Apple and Google do not reveal that information.

🔹 Can I customize the UI?

No. The system controls the UI.

🔹 How do I open the store page manually?

Use a fallback when unavailable:

import { Linking, Platform } from "react-native";
import StoreReview from "@shadahmad7/react-native-store-review";

async function requestRating() {
  const ok = await StoreReview.isAvailableAsync();
  if (ok) return StoreReview.requestReview();

  if (Platform.OS === "ios") {
    Linking.openURL("https://apps.apple.com/app/idYOUR_APP_ID");
  } else {
    Linking.openURL("https://play.google.com/store/apps/details?id=YOUR_PACKAGE_NAME");
  }
}

📄 License

MIT © @shadahmad7