Skip to content

closeModal "A" from modal "B" #176

@forchello

Description

@forchello

I have next logic:

  • openModal("1")
  • openModal("2") + closeModal("1") after full open modal 2 or after n seconds
  • have rerender of top modal (in my case its 2)

Can add some part of code:

openModal('2', { name: "forchello"}, () => {
   closeModal("1");
});

OR

openModal('2', { name: "forchello"});

setTimeout(() => {
   closeModal("1");
}, 3000); // no matter how much ms there can be - code have the same problem

As I see, opening and closing modals in call stack have a lot of problems in this problem

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrepro neededReproducible demo app/Expo Snack is needed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions