You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing issue with this package in windows system on some system when key is not available and when i try to call getItem method it's not even throwing error it will result in white screen issue.
#380
Open
rohitgaidhane opened this issue
Jun 19, 2023
· 1 comment
export { getItem, setItem, removeItem };
code snippet
i am using "react-native-sensitive-info": "^5.5.8",
The text was updated successfully, but these errors were encountered:
rohitgaidhane
changed the title
I am facing issue with this package in windows system on some system when key is not available and when i try to remove it's not even throwing error it will result in white screen issue.
I am facing issue with this package in windows system on some system when key is not available and when i try to call getItem method it's not even throwing error it will result in white screen issue.
Jun 19, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
"use strict";
import SInfo from "react-native-sensitive-info";
/**
*/
const getItem = (keyToGetItem, options) => {
return new Promise((resolve, reject) => {
SInfo.getItem(keyToGetItem, options).then(
SInfoGetItemResponse => {
resolve(SInfoGetItemResponse);
},
SInfoGetItemError => {
reject(SInfoGetItemError);
}
);
});
};
/**
*/
const setItem = (keyToSetItem, value, options) => {
return new Promise((resolve, reject) => {
SInfo.setItem(keyToSetItem, value, options).then(
SInfoGetItemResponse => {
resolve(SInfoGetItemResponse);
},
SInfoGetItemError => {
reject(SInfoGetItemError);
}
);
});
};
/**
*/
const removeItem = (keyToDelete, options) => {
return new Promise((resolve, reject) => {
SInfo.deleteItem(keyToDelete, options).then(
SInfoGetItemResponse => {
resolve(SInfoGetItemResponse);
},
SInfoGetItemError => {
reject(SInfoGetItemError);
}
);
});
};
export { getItem, setItem, removeItem };
code snippet
i am using "react-native-sensitive-info": "^5.5.8",
The text was updated successfully, but these errors were encountered: