mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 22:48:23 +08:00
Fix crash when using alert() polyfill due to null callback
This commit is contained in:
@@ -90,7 +90,7 @@ function setUpAlert() {
|
||||
message: '' + text,
|
||||
buttons: [{'cancel': 'OK'}],
|
||||
};
|
||||
RCTAlertManager.alertWithArgs(alertOpts, null);
|
||||
RCTAlertManager.alertWithArgs(alertOpts, function () {});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user