Skip to content

Commit e6881fc

Browse files
authored
The import reference is wrong.
1 parent 7c5d52d commit e6881fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/docs/setItem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Example:
1818
import RNSInfo from 'react-native-sensitive-info';
1919

2020
const myFunc = async () => {
21-
return SInfo.setItem('key1', 'value1', {
21+
return RNSInfo.setItem('key1', 'value1', {
2222
sharedPreferencesName: 'mySharedPrefs',
2323
keychainService: 'myKeychain'
2424
});
@@ -39,4 +39,4 @@ But if you rather not to use it our **default** sharedPreferencesName is: **shar
3939
SInfo.setItem('key1', 'value1', {});
4040
```
4141

42-
If you used Android's getDefaultSharedPreferences in your project the shared preference's name that you are looking for is: **com.mypackage.MyApp_preferences**. On the other hand if you used iOS's Keychain the default service is: **app**.
42+
If you used Android's getDefaultSharedPreferences in your project the shared preference's name that you are looking for is: **com.mypackage.MyApp_preferences**. On the other hand if you used iOS's Keychain the default service is: **app**.

0 commit comments

Comments
 (0)