Skip to content

Commit 1d030ae

Browse files
committed
[Docs] Clarify in the AsyncStorage docs that it is global to the app, not OS
Summary: There was some confusion over whether AsyncStorage is shared across the entire OS (definitely not); clearing that up. Closes facebook/react-native#1596 Github Author: James Ide <ide@jameside.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
1 parent 9218c0b commit 1d030ae

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Libraries/Storage/AsyncStorage.ios.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ var RCTAsyncRocksDBStorage = NativeModules.AsyncRocksDBStorage;
1919
var RCTAsyncStorage = RCTAsyncRocksDBStorage || RCTAsyncLocalStorage;
2020

2121
/**
22-
* AsyncStorage is a simple, asynchronous, persistent, global, key-value storage
23-
* system. It should be used instead of LocalStorage.
22+
* AsyncStorage is a simple, asynchronous, persistent, key-value storage
23+
* system that is global to the app. It should be used instead of LocalStorage.
2424
*
2525
* It is recommended that you use an abstraction on top of AsyncStorage instead
2626
* of AsyncStorage directly for anything more than light usage since it
2727
* operates globally.
2828
*
29-
* This JS code is a simple facad over the native iOS implementation to provide
29+
* This JS code is a simple facade over the native iOS implementation to provide
3030
* a clear JS API, real Error objects, and simple non-multi functions. Each
3131
* method returns a `Promise` object.
3232
*/
@@ -133,7 +133,7 @@ var AsyncStorage = {
133133
},
134134

135135
/**
136-
* Gets *all* keys known to the system, for all callers, libraries, etc. Returns a `Promise` object.
136+
* Gets *all* keys known to the app, for all callers, libraries, etc. Returns a `Promise` object.
137137
*/
138138
getAllKeys: function(callback?: ?(error: ?Error, keys: ?Array<string>) => void): Promise {
139139
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)