Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 2.25 KB

File metadata and controls

60 lines (43 loc) · 2.25 KB

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'

// Direct access
VersionCheck.version       // "1.2.0"
VersionCheck.buildNumber   // "42"
VersionCheck.packageName   // "com.example.app"
VersionCheck.installSource // "appstore" | "testflight" | "playstore" | "sideloaded"

// 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