BackAndroid.addEventListener()

static addEventListener(eventName, handler)

AsyncStorage.multiRemove()

static multiRemove(keys, callback?) Delete all the keys in the keys array. Returns a Promise object. Example: let keys = ['k1', 'k2']; AsyncStorage.multiRemove(keys, (err) => { // keys k1 & k2 removed, if they existed // do most stuff after removal (if you want) });

AsyncStorage.multiSet()

static multiSet(keyValuePairs, callback?) multiSet and multiMerge take arrays of key-value array pairs that match the output of multiGet, e.g. Returns a Promise object. multiSet([['k1', 'val1'], ['k2', 'val2']], cb); Example: see multiMerge for an example

AsyncStorage.multiMerge()

static multiMerge(keyValuePairs, callback?) Merges existing values with input values, assuming they are stringified json. Returns a Promise object. Not supported by all native implementations. Example: // first user, initial values let UID234_object = { name: 'Chris', age: 30, traits: {hair: 'brown', eyes: 'brown'}, }; // first user, delta values let UID234_delta = { age: 31, traits: {eyes: 'blue', shoe_size: 10}, }; // second user, initial values let UID345_object = { name: 'Marge',

AsyncStorage.setItem()

static setItem(key, value, callback?) Sets value for key and calls callback on completion, along with an Error if there is any. Returns a Promise object.

AsyncStorage.removeItem()

static removeItem(key, callback?) Returns a Promise object.

AsyncStorage.multiGet()

static multiGet(keys, callback?) multiGet invokes callback with an array of key-value pair arrays that matches the input format of multiSet. Returns a Promise object. multiGet(['k1', 'k2'], cb) -> cb([['k1', 'val1'], ['k2', 'val2']]) Example: AsyncStorage.getAllKeys((err, keys) => { AsyncStorage.multiGet(keys, (err, stores) => { stores.map((result, i, store) => { // get at each store's key/value so you can work with it let key = store[i][0]; let value = store

AsyncStorage.getAllKeys()

static getAllKeys(callback?) Gets all keys known to the app, for all callers, libraries, etc. Returns a Promise object. Example: see multiGet for example

AsyncStorage.mergeItem()

static mergeItem(key, value, callback?) Merges existing value with input value, assuming they are stringified json. Returns a Promise object. Not supported by all native implementations. Example: let UID123_object = { name: 'Chris', age: 30, traits: {hair: 'brown', eyes: 'brown'}, }; // need only define what will be added or updated let UID123_delta = { age: 31, traits: {eyes: 'blue', shoe_size: 10} }; AsyncStorage.setItem('UID123', JSON.stringify(UID123_object), () => { AsyncSto

AsyncStorage.getItem()

static getItem(key, callback?) Fetches key and passes the result to callback, along with an Error if there is any. Returns a Promise object.