Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
Fixed refs
Browse files Browse the repository at this point in the history
  • Loading branch information
emeraldsanto committed Feb 12, 2020
1 parent fe55395 commit d2e650d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
17 changes: 0 additions & 17 deletions example/android/.project

This file was deleted.

6 changes: 3 additions & 3 deletions lib/EncryptedStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const EncryptedStorage = {
* @param {string} key - A string that will be associated to the value for later retrieval.
* @param {Object} value - The data to store.
*/
store : async function(key) {
store : async function(key, value) {
try {
await RNEncryptedStorage.store(key, JSON.stringify(value));
return true;
Expand All @@ -24,7 +24,7 @@ const EncryptedStorage = {
* Retrieves data from the disk, using SharedPreferences or KeyChain, depending on the platform and returns it as the specified type.
* @param {string} key - A string that is associated to a value.
*/
retrieve : async function() {
retrieve : async function(key) {
try {
const savedValue = await RNEncryptedStorage.retrieve(key);
return JSON.parse(savedValue);
Expand All @@ -37,7 +37,7 @@ const EncryptedStorage = {
* Deletes data from the disk, using SharedPreferences or KeyChain, depending on the platform.
* @param {string} key - A string that is associated to a value.
*/
remove : async function() {
remove : async function(key) {
try {
await RNEncryptedStorage.remove(key);
return true;
Expand Down

0 comments on commit d2e650d

Please sign in to comment.