Fix duplicate var name declaration

Reviewed By: rafeca

Differential Revision: D6965150

fbshipit-source-id: 332c8202f350e2014fedb9790f3d895222fb4f8d
This commit is contained in:
Peter van der Zee 2018-02-13 01:22:04 -08:00 committed by Facebook Github Bot
parent 4d0ee37293
commit 6893a26bfb
1 changed files with 1 additions and 2 deletions

View File

@ -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);
});