Patch react-native-navigation to resolve promise when no modals to dismiss (#4107)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
parent
a1d175173b
commit
beddfa645a
1 changed files with 12 additions and 0 deletions
|
|
@ -29,6 +29,18 @@ index 260ed81..52b53d8 100644
|
|||
}
|
||||
});
|
||||
}
|
||||
diff --git a/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/modal/ModalStack.java b/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/modal/ModalStack.java
|
||||
index f60119e..4c46e8c 100644
|
||||
--- a/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/modal/ModalStack.java
|
||||
+++ b/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/modal/ModalStack.java
|
||||
@@ -84,6 +84,7 @@ public class ModalStack {
|
||||
|
||||
public void dismissAllModals(ViewController root, Options mergeOptions, CommandListener listener) {
|
||||
if (modals.isEmpty()) {
|
||||
+ listener.onSuccess("");
|
||||
return;
|
||||
}
|
||||
String topModalId = peek().getId();
|
||||
diff --git a/node_modules/react-native-navigation/lib/ios/RNNCommandsHandler.m b/node_modules/react-native-navigation/lib/ios/RNNCommandsHandler.m
|
||||
index ae8be52..8a8dec5 100644
|
||||
--- a/node_modules/react-native-navigation/lib/ios/RNNCommandsHandler.m
|
||||
|
|
|
|||
Loading…
Reference in a new issue