Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Rewrite stack navigator #131

Merged
merged 56 commits into from Jul 8, 2019
Merged

Rewrite stack navigator #131

merged 56 commits into from Jul 8, 2019

Conversation

satya164
Copy link
Member

@satya164 satya164 commented May 24, 2019

This is a re-implementation of stack navigator using kmagiera/react-native-reanimated.

TODO

@satya164 satya164 changed the title Rewrite stack animation Rewrite stack navigator May 24, 2019
@satya164 satya164 force-pushed the @satya164/reanimated-stacks branch 11 times, most recently from 4f3babe to 883a169 Compare May 31, 2019 12:41
@satya164 satya164 force-pushed the @satya164/reanimated-stacks branch 18 times, most recently from 44a2442 to 2ae1ea5 Compare June 4, 2019 19:43
@brentvatne
Copy link
Member

in uikit example:

  1. push a screen
  2. push a screen with no header
  3. go back and the content is under the header

@satya164
Copy link
Member Author

satya164 commented Jul 4, 2019

@brentvatne is it alpha or latest commit?

@jerolimov
Copy link

jerolimov commented Jul 8, 2019

Hey @satya164, create work in the reanimated-stacks alpha branch. 👍

I use already the branch and the alpha versions of the react-navigation-stack. Why did you disable screens (f04b9bf) in the latest alpha for modal dialogs? Using screens and also the new iOS 13 effect was one reason for me to use already the alpha.

(edit: After updating from alpha.2 to alpha.5 is lost the new iOS 13 modal effect. I switched back to the old version for now.)

@satya164
Copy link
Member Author

satya164 commented Jul 8, 2019

Why did you disable screens in the latest alpha for modal dialogs

Because for modals such as ModalPresentationIOS, the previous screen needs to be visible underneath. If screens is enabled, the previous screen will be removed from the tree, and screens has a bug which doesn't make it possible to keep last 2 screens active at the same time.

The only things mode: 'modal' does are pick a default transition and disable screens. You don't have to use it, you can specify custom transition.

After updating from alpha.2 to alpha.5 is lost the new iOS 13 modal effect

Please read the release notes: https://github.com/react-navigation/stack/releases/tag/v2.0.0-alpha.3

@satya164
Copy link
Member Author

satya164 commented Jul 8, 2019

Merging this to master and continue development from there. This will make sure any new PRs and issues we receive are against the latest changes.

@satya164 satya164 merged commit ea29e14 into master Jul 8, 2019
@jerolimov
Copy link

Thanks for the fast feedback @satya164

With moving the TransitionPreset attributes into the defaultNavigationOptions it works great with alpha.5 again. 👍

@satya164 satya164 deleted the @satya164/reanimated-stacks branch July 8, 2019 11:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants