diff --git a/lib/AsyncStorage.js b/lib/AsyncStorage.js index 53f8c9e3..f133654e 100644 --- a/lib/AsyncStorage.js +++ b/lib/AsyncStorage.js @@ -353,7 +353,7 @@ const AsyncStorage = { callback?: ?(errors: ?$ReadOnlyArray) => void, ): Promise { return new Promise((resolve, reject) => { - keys.forEach(checkValidInput); + keys.forEach(key => checkValidInput(key)); RCTAsyncStorage.multiRemove(keys, function(errors) { const error = convertErrors(errors);