diff --git a/Libraries/Alert/Alert.js b/Libraries/Alert/Alert.js index a424f5026d5a8c..3066ed510bd9f0 100644 --- a/Libraries/Alert/Alert.js +++ b/Libraries/Alert/Alert.js @@ -80,7 +80,7 @@ class AlertAndroid { } // At most three buttons (neutral, negative, positive). Ignore rest. // The text 'OK' should be probably localized. iOS Alert does that in native. - const validButtons: Buttons = buttons + const validButtons: Buttons = buttons instanceof Array ? buttons.slice(0, 3) : [{text: 'OK'}]; const buttonPositive = validButtons.pop();