expo-secure-storage cannot find Keychain

  1. SDK Version: 47.0.0,
    expo-secure-store: 12.0.0
    react-native: 0.70.5
  2. iOS

I am trying to use expo-secure-store in my bare expo project. I simply downloaded the package using npm and then tried to call set a value with:
import * as SecureStore from ‘expo-secure-store’;

  •    await SecureStore.setItemAsync('key', value);*

When I run this on my iPhone using expo on a local development server, it returns a promise rejection:

ReferenceError: Can’t find variable: Keychain

I have looked for a couple of days now online on any similar problems but cannot find any,
Have I missed anything during installation? Or am I doing something wrong?


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.