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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-update-check-modal

v1.0.5

Published

A simple update modal for React Native apps using react-native-version-check

Downloads

663

Readme

react-native-update-check-modal

A simple, plug-and-play update modal for React Native apps.

This package helps you notify users when a new version of your app is available, with support for optional and mandatory updates.

Features

  • Automatic version check on app load
  • Supports optional and force updates
  • Lightweight and easy to integrate
  • Opens App Store or Play Store directly
  • Fully customizable colors and text

Installation

npm install react-native-update-check-modal

or

yarn add react-native-update-check-modal

Usage

Basic usage

import React from 'react';
import { View } from 'react-native';
import UpdateChecker from 'react-native-update-check-modal';

export default function App() {
  return (
    <View style={{ flex: 1 }}>
      <UpdateChecker />
    </View>
  );
}

Custom colors

<UpdateChecker
  colors={{
    overlay: 'rgba(0, 0, 0, 0.5)',
    background: '#FFFFFF',
    border: '#DDDDDD',
    text: '#000000',
    subText: '#666666',
    primary: '#FF5722',
    primaryText: '#FFFFFF',
    laterBorder: '#CCCCCC',
  }}
/>

You only need to pass the colors you want to change. The rest will use the defaults.

Custom text

<UpdateChecker
  texts={{
    title: 'New version available!',
    forceTitle: 'Please update now',
    description: 'We have a new update for you.',
    forceDescription: 'This update is required to continue.',
    updateButton: 'Update now',
    laterButton: 'Later',
  }}
/>

Custom colors and text together

<UpdateChecker
  colors={{ primary: '#FF5722', background: '#FFFFFF', text: '#000000' }}
  texts={{ title: 'New update!', updateButton: 'Get it now' }}
/>

Default values

Colors:

| Key | Default | |-----|---------| | overlay | rgba(0, 0, 0, 0.7) | | background | #1A1A2E | | border | #2A2A4A | | text | #FFFFFF | | subText | #D1D1E0 | | primary | #4F46E5 | | primaryText | #FFFFFF | | laterBorder | #4A4A6A |

Texts:

| Key | Default | |-----|---------| | title | Update available | | forceTitle | Update required | | description | A new version is available. You can update now or close and continue. | | forceDescription | Your build is too old. You need to update to continue using the app. | | updateButton | Update | | laterButton | Not now |

Force update logic

The component determines whether an update is mandatory using a simple version comparison:

if (latestVersion - currentVersion > 0.1) {
  setMendatory(true);
}

Behavior

  • Optional update: user can dismiss the modal
  • Mandatory update: user cannot dismiss the modal

How it works

  • Checks if a newer version is available on the App Store or Play Store
  • If an update is available, the modal is shown automatically
  • Tapping "Update" opens the store page directly

Platform support

  • Android
  • iOS

Notes

  • Make sure your app version is correctly defined in:
    • android/app/build.gradle
    • ios/Info.plist

Contributing

Contributions are welcome. Please open an issue or submit a pull request.

License

MIT