Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] Add ability to apply transition to bottom screen #39

Open
christianchown opened this issue Aug 21, 2019 · 0 comments
Open

[v3] Add ability to apply transition to bottom screen #39

christianchown opened this issue Aug 21, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@christianchown
Copy link
Collaborator

Hi Sergey - looking for another bit of v2 functionality to be added to v3, something like #30.

I'm thinking of an API like

<Navigator animations={{
  fadeRight: {
      start: { opacity: 0, transform: [{ translateX: windowWidth }] },
      end: { opacity: 1, transform: [{ translateX: 0 }] },
      push: { opacity: 0, transform: [{ translateX: -windowWidth / 3 }] },
      pop: { opacity: 1, transform: [{ translateX: 0 }] },
  }
}}/>

Where push and pop are optional, but get applie:

  • (push) to stack[stack.length-1] as the end position when a push/replace/reset happens, and to
  • (pop) to stack[stack.length-2] as the end position when a pop happens

Can't think of good names for them though... (bottomPush/bottomPop ? topPush/topPop?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants