From 6893a26bfb06a2d8ad9d23a572f4d9143305d905 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Tue, 13 Feb 2018 01:22:04 -0800 Subject: [PATCH] Fix duplicate var name declaration Reviewed By: rafeca Differential Revision: D6965150 fbshipit-source-id: 332c8202f350e2014fedb9790f3d895222fb4f8d --- Libraries/Alert/AlertIOS.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Alert/AlertIOS.js b/Libraries/Alert/AlertIOS.js index b42b57c29ae481..8f4170a5a616fb 100644 --- a/Libraries/Alert/AlertIOS.js +++ b/Libraries/Alert/AlertIOS.js @@ -122,11 +122,10 @@ class AlertIOS { 'keyboardType) and the old syntax will be removed in a future version.'); var callback = type; - var defaultValue = message; RCTAlertManager.alertWithArgs({ title: title || '', type: 'plain-text', - defaultValue, + defaultValue: message, }, (id, value) => { callback(value); });