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

Sam/floating-nav-bug #5102

Closed
wants to merge 3 commits into from
Closed

Sam/floating-nav-bug #5102

wants to merge 3 commits into from

Conversation

samholmes
Copy link
Contributor

@samholmes samholmes commented Jun 18, 2024

After many attempts to throwing many "setTimeout" hacks at this bug in
order to jolt the scene to update its styles, I gave up and found an
alternative solution. The reason for giving up was because setTimeout
had nasty side-effects and caused the animation to become glitchy in
various ways. I wasn't confident that even if I got the "setTimeout"
stategry working, that it wouldn't cause some other unforseen
regression.

So, the alternative is to disable then re-enable the keyboard controller
during scene transition. By doing this, it causes the internal react
context for the keyboard controller library to update. The context
updating causes all dependencies on the reanimated shared value to be
resestablished and this jolts the scene back into the correct state.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

After many attempts to throwing many "setTimeout" hacks at this bug in
order to jolt the scene to update its styles, I gave up and found an
alternative solution. The reason for giving up was because setTimeout
had nasty side-effects and caused the animation to become glitchy in
various ways. I wasn't confident that even if I got the "setTimeout"
stategry working, that it wouldn't cause some other unforseen
regression.

So, the alternative is to disable then re-enable the keyboard controller
during scene transition. By doing this, it causes the internal react
context for the keyboard controller library to update. The context
updating causes all dependencies on the reanimated shared value to be
resestablished and this jolts the scene back into the correct state.
@samholmes
Copy link
Contributor Author

We've decided to just upgrade reanimated to an RC release: 5e151c5

@samholmes samholmes closed this Jun 19, 2024
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.

None yet

1 participant