You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a screen for creating an entity and a screen for viewing the entity. On the creation screen, once you press "create" I want to replace the creation screen with the viewing screen. The issue I'm having is that calling replace() causes animation, which breaks the experience of in-place creation of the entity.
I could try to work around this by having a single screen for both purposes but that's quite ugly as e.g. I want different screen params for the creation and the viewing screens and this is generally anti-modular.
Is it possible to replace a screen in a stack navigator without animating? I don't want to turn off animation for the viewing screen in general, as if you get to it any other way (i.e. not as a result of creating the entity) I do want animations.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a screen for creating an entity and a screen for viewing the entity. On the creation screen, once you press "create" I want to replace the creation screen with the viewing screen. The issue I'm having is that calling
replace()
causes animation, which breaks the experience of in-place creation of the entity.I could try to work around this by having a single screen for both purposes but that's quite ugly as e.g. I want different screen params for the creation and the viewing screens and this is generally anti-modular.
Is it possible to replace a screen in a stack navigator without animating? I don't want to turn off animation for the viewing screen in general, as if you get to it any other way (i.e. not as a result of creating the entity) I do want animations.
Beta Was this translation helpful? Give feedback.
All reactions