Fix in-app notification crashing when receiving multiple (#3967)
* Fix in-app notification crashing when receiving multiple * Dismiss the overlay when tap without waiting for interaction manager
This commit is contained in:
parent
3e54e4b859
commit
28384bc9d2
3 changed files with 1 additions and 3 deletions
|
|
@ -347,7 +347,6 @@ export function showOverlay(name, passProps, options = {}) {
|
|||
|
||||
Navigation.showOverlay({
|
||||
component: {
|
||||
id: name,
|
||||
name,
|
||||
passProps,
|
||||
options: merge(defaultOptions, options),
|
||||
|
|
|
|||
|
|
@ -440,7 +440,6 @@ describe('app/actions/navigation', () => {
|
|||
|
||||
const expectedLayout = {
|
||||
component: {
|
||||
id: name,
|
||||
name,
|
||||
passProps,
|
||||
options: merge(defaultOptions, options),
|
||||
|
|
|
|||
|
|
@ -145,8 +145,8 @@ export default class Notification extends PureComponent {
|
|||
|
||||
EventEmitter.emit(NavigationTypes.CLOSE_MAIN_SIDEABR);
|
||||
EventEmitter.emit(NavigationTypes.CLOSE_SETTINGS_SIDEBAR);
|
||||
this.dismissOverlay();
|
||||
InteractionManager.runAfterInteractions(() => {
|
||||
this.dismissOverlay();
|
||||
if (!notification.localNotification) {
|
||||
actions.loadFromPushNotification(notification);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue