Skip to content

make options not required #265

Open
Open
@artola

Description

@artola

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:

export interface RNSensitiveInfoOptions {

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions