-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
flyTo()
with unchanged parameters only works once on iOS with new Architecture
#571
Comments
In my app, I've been working around issues with flyTo() for a while. Earlier in Alpha, this method wasn't working at all on Android (before New Arch was an option) for some time. |
flyTo()
only works once on iOS with new ArchitectureflyTo()
with unchanged parameters only works once on iOS with new Architecture
Please clarify, AFAIK Calling repeatedly with the same parameters on iOS with the new architecture enabled. Can you reproduce for other combinations? In my testing Usage of |
@KiwiKilian I don't know what's happening under the hood, but I'm not calling setNativeProps directly. My workaround is using the Camera's exposed and documented centerCoordinate, animationMode, and animationDuration properties to do the exact effect that flyTo() is supposed to.
...where mapCenterOverride is a state variable updated by state hooks (my business logic managers) whenever I need a flyTo() effect. It works repeatedly like this, with either the same or different coordinates. Whatever Camera.flyTo() is doing has led to multiple issues historically, and just isn't as robust as updating the centerCoordinate property. |
Initially reported in: #517
With this example it's only broken on iOS with the new architecture.
The text was updated successfully, but these errors were encountered: