Esteban Chornet
Esteban Chornet

Reputation: 1237

How to navigate with right to left animation between modals in react navigation

If I open a modal (on iOS), and this modal navigates to another modal, I don't get a "right to left" navigation. I have a bottom to top navigation everytime the target is modal, but I just want this behavior on the first openned modal, then, the rest right to left.

How can I make this navigation? It feels weird openning twice from bottom to top.

React Navigation v6

enter image description here

Upvotes: 0

Views: 1298

Answers (1)

Vu Thanh
Vu Thanh

Reputation: 398

You can review this tutorial here

Or you can use transitionConfig for each screen you want.

transitionConfig: () => ({
    screenInterpolator: CardStackStyleInterpolator.forHorizontal,
}),

Upvotes: 2

Related Questions