From 1d030ae64e14465f35e5baeb9d0649aa77dbda0f Mon Sep 17 00:00:00 2001 From: James Ide Date: Mon, 15 Jun 2015 14:17:27 -0700 Subject: [PATCH] [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 https://github.com/facebook/react-native/pull/1596 Github Author: James Ide Test Plan: Imported from GitHub, without a `Test Plan:` line. --- Libraries/Storage/AsyncStorage.ios.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/Storage/AsyncStorage.ios.js b/Libraries/Storage/AsyncStorage.ios.js index fe92f5c58c..ed028db4bc 100644 --- a/Libraries/Storage/AsyncStorage.ios.js +++ b/Libraries/Storage/AsyncStorage.ios.js @@ -19,14 +19,14 @@ var RCTAsyncRocksDBStorage = NativeModules.AsyncRocksDBStorage; var RCTAsyncStorage = RCTAsyncRocksDBStorage || RCTAsyncLocalStorage; /** - * AsyncStorage is a simple, asynchronous, persistent, global, key-value storage - * system. It should be used instead of LocalStorage. + * AsyncStorage is a simple, asynchronous, persistent, key-value storage + * system that is global to the app. It should be used instead of LocalStorage. * * It is recommended that you use an abstraction on top of AsyncStorage instead * of AsyncStorage directly for anything more than light usage since it * operates globally. * - * This JS code is a simple facad over the native iOS implementation to provide + * This JS code is a simple facade over the native iOS implementation to provide * a clear JS API, real Error objects, and simple non-multi functions. Each * method returns a `Promise` object. */ @@ -133,7 +133,7 @@ var AsyncStorage = { }, /** - * Gets *all* keys known to the system, for all callers, libraries, etc. Returns a `Promise` object. + * Gets *all* keys known to the app, for all callers, libraries, etc. Returns a `Promise` object. */ getAllKeys: function(callback?: ?(error: ?Error, keys: ?Array) => void): Promise { return new Promise((resolve, reject) => {