Fix Navigation Store when dismissing a modal with a gesture
This commit is contained in:
parent
c5dc41dae3
commit
986de96ba5
1 changed files with 4 additions and 0 deletions
4
index.ts
4
index.ts
|
|
@ -102,6 +102,10 @@ function screenDidDisappearListener({componentId}: ComponentDidDisappearEvent) {
|
|||
DeviceEventEmitter.emit(Events.PAUSE_KEYBOARD_TRACKING_VIEW, false);
|
||||
}
|
||||
|
||||
if (NavigationStore.getNavigationTopComponentId() === componentId) {
|
||||
NavigationStore.removeNavigationComponentId(componentId);
|
||||
}
|
||||
|
||||
if (NavigationStore.getNavigationTopComponentId() === Screens.HOME) {
|
||||
DeviceEventEmitter.emit(Events.TAB_BAR_VISIBLE, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue