Skip to content

AlshehriAli0/react-native-nitro-version-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-nitro-version-check

A lightweight, fast version-checking library for React Native, powered by Nitro Modules.

A drop-in replacement for the unmaintained react-native-version-check — rewritten from scratch with Nitro Modules.


Example

import { VersionCheck } from 'react-native-nitro-version-check'

// Sync — no bridge, no async
VersionCheck.version       // "1.2.0"
VersionCheck.buildNumber   // "42"
VersionCheck.packageName   // "com.example.app"
VersionCheck.installSource // "appstore" | "testflight" | "playstore" | undefined

// Or destructure properties
const { version, buildNumber, packageName, installSource } = VersionCheck

// Check for updates
if (await VersionCheck.needsUpdate()) {
  Linking.openURL(await VersionCheck.getStoreUrl())
}

Installation

bun add react-native-nitro-version-check

Version 2.x and newer requires Nitro 0.35+ — for earlier versions, use version 1.x

Check the full installation guide for platform setup and additional dependencies.

Documentation

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT