mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
fix inline NativeModule typo
Reviewed By: javache Differential Revision: D4590904 fbshipit-source-id: 110f8d4d3efa72ba26b80277c321cb1d7a40540c
This commit is contained in:
parent
a5ea974948
commit
72ddfb014a
@ -127,18 +127,18 @@ class AlertAndroid {
|
||||
if (buttonPositive) {
|
||||
config = {...config, buttonPositive: buttonPositive.text || '' };
|
||||
}
|
||||
NativeModules.DialogModuleAndroid.showAlert(
|
||||
NativeModules.DialogManagerAndroid.showAlert(
|
||||
config,
|
||||
(errorMessage) => console.warn(errorMessage),
|
||||
(action, buttonKey) => {
|
||||
if (action !== NativeModules.DialogModuleAndroid.buttonClicked) {
|
||||
if (action !== NativeModules.DialogManagerAndroid.buttonClicked) {
|
||||
return;
|
||||
}
|
||||
if (buttonKey === NativeModules.DialogModuleAndroid.buttonNeutral) {
|
||||
if (buttonKey === NativeModules.DialogManagerAndroid.buttonNeutral) {
|
||||
buttonNeutral.onPress && buttonNeutral.onPress();
|
||||
} else if (buttonKey === NativeModules.DialogModuleAndroid.buttonNegative) {
|
||||
} else if (buttonKey === NativeModules.DialogManagerAndroid.buttonNegative) {
|
||||
buttonNegative.onPress && buttonNegative.onPress();
|
||||
} else if (buttonKey === NativeModules.DialogModuleAndroid.buttonPositive) {
|
||||
} else if (buttonKey === NativeModules.DialogManagerAndroid.buttonPositive) {
|
||||
buttonPositive.onPress && buttonPositive.onPress();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user