-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
fix: get properties from top-most screen on swipe #1509
Conversation
when we were swiping with the current logic in the next frame properties were taken from previous screen
Co-authored-by: Wojciech Lewicki <wojciech.lewicki@swmansion.com>
Co-authored-by: Wojciech Lewicki <wojciech.lewicki@swmansion.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 🎉
@WoLewicki do you still remember the fullScreen swipe issue I've showed you at App.js conf? Maybe thats a good point to fix this as well :D |
@hirbod good point! I'll look into it. Do you have a quick repro for this and could paste it even here? |
@WoLewicki this should work I could not reproduce this in Expo Go though. Here is a video from my app. Depending on where I swipe (edge) or somewhere in the screen, it will have a shadow left or not. Its not a big deal though. RPReplay_Final1657010606.mp4 |
Hi @hirbod |
That might be an option. A third option would be to have 'simple_push_with_shadow' :D |
But still the native header transition is only possible with the default gesture recognizer 😢 |
Yeah the header is not that bad though, the shadow is also not a big deal breaker - just a visual thing |
Required by Test1509v2
Merge branch 'main' into @kacperkapusciak/get-correct-screen-on-swipe
Description
This PR fixes an issue on which
swipeDirection
was required to be set on both on current and previous screen because the value after one tick was incorrectly taken from the previous screen.Thanks @WoLewicki for the solution 👏
Screenshots / GIFs
Before
Screen.Recording.2022-07-04.at.11.41.47.mov
After
Screen.Recording.2022-07-04.at.11.40.11.mov
Test code and steps to reproduce
TestsExample/Test1509.tsx
Checklist