This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import AsyncStorage from '@react-native-community/async-storage'; | |
| import { | |
| setGenericPassword, | |
| getGenericPassword, | |
| resetGenericPassword, | |
| } from 'react-native-keychain'; | |
| const KeychainStorage = { | |
| async getAllKeys(cb) { | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var React = require('react-native') | |
| var { | |
| View, | |
| Text, | |
| LinkingIOS, | |
| StyleSheet, | |
| } = React | |
| // you might want to compile these two as standalone umd bundles | |
| // using `browserify --standalone` and `derequire` |