-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Labels
Description
Passing options
in all the methods should be optional, nowadays it is required to pass an empty object.
At present the keys are optional, while probably they have a fallback value in the implementation (e.g., app
for keychainService
).
Same for master
than keystore
branch.
// ok
const gettingFirstData = await SInfo.getItem('key1', {
sharedPreferencesName: 'mySharedPrefs',
keychainService: 'myKeychain'
});
// ok
const gettingFirstData = await SInfo.getItem('key1', {});
// not allowed
const gettingFirstData = await SInfo.getItem('key1');
See:
react-native-sensitive-info/index.d.ts
Line 32 in 1575f89
export interface RNSensitiveInfoOptions { |
emileber and janziemba