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

Enable navigation animations on Android, decrease animation speed #4207

Merged
merged 12 commits into from
May 29, 2024

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented May 24, 2024

Stacked with #4216

Why

We removed Android transition animations in #2352 because of #2308.

This reverts that change and upgrades react-navigation to the latest stable release. It also removes the patch, since that fix was merged in and was released in 6.1.11 https://github.com/react-navigation/react-navigation/releases/tag/%40react-navigation%2Fnative%406.1.11.

Testing

First, I checked out 705f9b6 which is two commits prior to the fix in #2352. I am reliably able to reproduce the issue with this change using the reproduction steps in #2308.

Next, I checked this branch out. Following the same reproduction steps does not reproduce the issue. Below are a few theories:

  • There are a few animation fixes in react-navigation throughout the versions between our current and latest 6.X release. None specifically call out this issue, but they could be related.
  • Our old TouchableHighlight animation was very janky in that old commit. The color (dimness) of the text when the post was pressed in was the same color as the next screen's text. It's possible that some combination of issues between react-navigation and the TouchableHighlight was causing an issue.

Copy link

render bot commented May 24, 2024

Copy link

github-actions bot commented May 24, 2024

Old size New size Diff
7.3 MB 7.3 MB 26 B (0.00%)

@haileyok haileyok changed the title Upgrade react-navigation, use ios animation, add animations back to android Enable navigation animations on Android, decrease animation speed May 24, 2024
@haileyok haileyok marked this pull request as ready for review May 24, 2024 19:57
@haileyok haileyok changed the base branch from main to hailey/upgrade-react-navigation May 24, 2024 19:58
Base automatically changed from hailey/upgrade-react-navigation to main May 29, 2024 01:38
Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets give this a go

@gaearon gaearon merged commit a60f993 into main May 29, 2024
5 of 6 checks passed
@gaearon gaearon deleted the hailey/really-do-the-animations-frfr branch May 29, 2024 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants