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

expo-secure-key-store

v1.0.0

Published

An Expo-compatible version of react-native-secure-key-store, created for backwards compatibility

Downloads

93

Readme

Expo Secure Key Store

This package provides an Expo-compatible implementation of react-native-secure-key-store, designed to ensure backwards compatibility while leveraging modern React Native APIs.

The original library was written in Java and Objective-C, and does not support the Expo managed workflow and lacks autolinking capabilities. To address these limitations, this package has been rewritten with Swift and Kotlin, using updated APIs and ensuring full Expo compatibility.

Why not expo-secure-store? Why was this package created?

expo-secure-store is a great library for secure storage and is the recommended choice.

However, if you have an existing codebase that relies on react-native-secure-key-store and you want to migrate to Expo without rewriting all the storage-related code and, most importantly, without losing users' data, this package serves as a drop-in replacement, allowing you to maintain your existing code while benefiting from Expo's managed workflow.

Usage

Usage is identical to react-native-secure-key-store. Please refer to the original documentation

Using modern async/await syntax:

import RNSecureKeyStore, { ACCESSIBLE } from "expo-secure-key-store";
// Store key
try {
  const res = await RNSecureKeyStore.set("key1", "value1", {
    accessible: ACCESSIBLE.ALWAYS_THIS_DEVICE_ONLY,
  });
  console.log(res);
} catch (err) {
  console.log(err);
}

// Retrieve key
try {
  const res = await RNSecureKeyStore.get("key1");
  console.log(res);
} catch (err) {
  console.log(err);
}
// Remove key
try {
  const res = await RNSecureKeyStore.remove("key1");
  console.log(res);
} catch (err) {
  console.log(err);
}

or, the Promise-based API example below:

import RNSecureKeyStore, { ACCESSIBLE } from "expo-secure-key-store";

// Store key
RNSecureKeyStore.set("key1", "value1", {
  accessible: ACCESSIBLE.ALWAYS_THIS_DEVICE_ONLY,
}).then(
  (res) => {
    console.log(res);
  },
  (err) => {
    console.log(err);
  }
);

// Retrieve key
RNSecureKeyStore.get("key1").then(
  (res) => {
    console.log(res);
  },
  (err) => {
    console.log(err);
  }
);

// Remove key
RNSecureKeyStore.remove("key1").then(
  (res) => {
    console.log(res);
  },
  (err) => {
    console.log(err);
  }
);

Demo

There is also a demo app included in the example folder.