save(key, value) {
    if (!Array.isArray(key)) {
      return AsyncStorage.setItem(key, JSON.stringify(value));
    }
    const pairs = key.map(pair => [pair[0], JSON.stringify(pair[1])]);
    return AsyncStorage.multiSet(pairs);
  }
/**
   * Save a key value pair or a series of key value pairs to AsyncStorage.
   * @param  {String|Array} key The key or an array of key/value pairs
   * @param  {Any} value The value to save
   * @return {Promise}
   */
Save a key value pair or a series of key value pairs to AsyncStorage.
@param  {String|Array} key The key or an array of key/value pairs
@param  {Any} value The value to save
@return {Promise}
Save a key value pair or a series of key value pairs to AsyncStorage . @param { String|Array } key The key or an array of key / value pairs @param { Any } value The value to save @return { Promise }
save(key, value) {
    if (!Array.isArray(key)) {
      return AsyncStorage.setItem(key, JSON.stringify(value));
    }
    const pairs = key.map(pair => [pair[0], JSON.stringify(pair[1])]);
    return AsyncStorage.multiSet(pairs);
  }
save ( key , value ) { if ( ! Array . isArray ( key ) ) { return AsyncStorage . setItem ( key , JSON . stringify ( value ) ) ; } const pairs = key . map ( pair => [ pair [ 0 ] , JSON . stringify ( pair [ 1 ] ) ] ) ; return AsyncStorage . multiSet ( pairs ) ; }
Save a key value pair or a series of key value pairs to AsyncStorage.
Save a key value pair or a series of key value pairs to AsyncStorage .