Skip to content

Instantly share code, notes, and snippets.

View patrickkempff's full-sized avatar

Patrick Kempff patrickkempff

View GitHub Profile
@patrickkempff
patrickkempff / KeychainStorage.js
Created June 18, 2018 16:32
redux-persist react-native-keychain
import { AsyncStorage } from 'react-native'
import { setGenericPassword, getGenericPassword, resetGenericPassword } from 'react-native-keychain'
export default {
async getAllKeys (callback) {
try {
const keys = await AsyncStorage.getAllKeys()
if (callback) {
callback(null, keys)
}