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

v1.0.0

Published

Secure wallet key storage with Android BiometricPrompt + Keystore

Readme

React Native WalletSecure 🔐 (Android Only)

Securely store and retrieve cryptographic keys in the Android Keystore with biometric or device credential authentication.
Perfect for wallets, password managers, or any app that needs per-use biometric unlock for sensitive data.


✨ Features

  • 🔑 AES key storage in Android Keystore
  • 🔒 Biometric (fingerprint, face, device PIN/pattern) authentication per use
  • 📱 Works on Android (API 24+)
  • 🔄 StrongBox backed keys on supported devices, with automatic fallback
  • 🛡 High-level encryption and secure storage

📦 Installation

# Add package
yarn add react-native-walletsecure

# or
npm install react-native-walletsecure

For local development:

yarn add file:../react-native-walletsecure

⚡ Usage

import React, { useState } from 'react';
import { View, Button, Text } from 'react-native';
import WalletSecure from 'react-native-walletsecure';

export default function App() {
  const [key, setKey] = useState<string | null>(null);

  const handleSave = async () => {
    await WalletSecure.storeKey(
      'my_wallet_key',
      'super-secret-private-key',
      { title: 'Unlock to store', subtitle: 'Biometric required' },
      true, // allow device credential fallback
    );
  };

  const handleGetKey = async () => {
    const value = await WalletSecure.retrieveKey(
      'my_wallet_key',
      { title: 'Unlock to view key' },
      true,
    );
    setKey(value);
  };

  return (
    <View>
      <Button title="Save Key" onPress={handleSave} />
      <Button title="Get Key" onPress={handleGetKey} />
      <Text>Stored Key: {key}</Text>
    </View>
  );
}

🛠 API Reference

WalletSecure.storeKey(alias, value, promptConfig?, allowDeviceCredential?)

Store a string securely.

  • alias (string) → unique identifier for the key.
  • value (string) → string to encrypt and save.
  • promptConfig (object){ title, subtitle } shown in biometric prompt.
  • allowDeviceCredential (boolean) → allow PIN/pattern fallback. Default: true.

WalletSecure.retrieveKey(alias, promptConfig?, allowDeviceCredential?)

Retrieve a previously stored value.

  • Shows biometric/device credential prompt before returning.
  • Returns the decrypted string.

WalletSecure.deleteKey(alias)

Deletes a stored key by alias.


⚠️ Notes

  • ✅ Only Android is supported right now. iOS support may come later.
  • On Android, StrongBoxUnavailableException may occur if StrongBox isn’t available → the library auto-falls back to normal keystore.
  • Minimum requirement: Android API 24+
  • Biometric prompts may vary across manufacturers (Samsung, Pixel, etc.).

🧪 Development (Local Testing)

  1. In your test app:
    yarn add file:../react-native-walletsecure
  2. Start Metro bundler with symlink support:
    yarn start --reset-cache
  3. Rebuild app after native changes:
    cd android && ./gradlew clean && cd ..
    yarn android

🤝 Contributing

PRs and issues are welcome! If you’d like to improve Android support or add new features, feel free to open a pull request.


📄 License

MIT © 2025