jacklam718 / react-native-dialog-component

A react native dialog component support custom animation for IOS & Android.
https://www.npmjs.com/package/react-native-dialog-component
MIT License
81 stars 29 forks source link

Dismiss affects next dialog #4

Open Knight704 opened 7 years ago

Knight704 commented 7 years ago

Imagine A and B some dialog configurations (with different styling, childs, texts) : 1) Use DialogManager.show(A) 2) do DialogManager.dismiss(callback) 3) in callback do DialogManager.show(B)

Result: A closes, then B appears for a short time and closes immediately. But doing second show with timeout of 200 solves issue. Look like callback called earlier than it should?

metahexane commented 7 years ago

I have the same problem, but now with updating (basically comes down to the same thing). Is there an actual fix for this? When using dismiss and then show, I get to see a view for a bit which just disappears right after a millisecond.

Basically, I have a dialog with a button (not a DialogButton), which calls another function when the button is pressed, and in that function, DialogManager.update is called. The result is the first dialog showing just good, but when clicking the button, the dialog gets updated, then shows for like a millisecond and then disappears. Any help?

jacklam718 commented 7 years ago

@Knight704 @metahexane Thanks for reporting this issue. I will try to fix it & will update you guys.

maciekstosio commented 6 years ago

Hi, I'm facing same issue. Also when I try update dialog it updates and disappears. Do you have any solution?