From beca25083a3a57a9e5d68577cbcb9e63521b1284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kevyu=E7=9A=84=E9=A9=AC=E7=94=B2?= Date: Fri, 14 Oct 2016 08:06:35 -0700 Subject: [PATCH] fix typo in Alert.js Summary: after adding new parameter options in alert method, parameter type is the 5th. Closes https://github.com/facebook/react-native/pull/10370 Differential Revision: D4021511 Pulled By: javache fbshipit-source-id: 09476162b879d2081f0c0ac95260e673327871b8 --- Libraries/Alert/Alert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Alert/Alert.js b/Libraries/Alert/Alert.js index 940db0c7b..8330e01bb 100644 --- a/Libraries/Alert/Alert.js +++ b/Libraries/Alert/Alert.js @@ -76,7 +76,7 @@ class Alert { ): void { if (Platform.OS === 'ios') { if (typeof type !== 'undefined') { - console.warn('Alert.alert() with a 4th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'); + console.warn('Alert.alert() with a 5th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'); AlertIOS.alert(title, message, buttons, type); return; }