mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 09:19:10 +00:00
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
This commit is contained in:
parent
5d15ed0285
commit
beca25083a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user