-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Performance improvements for tracksViewChanges #2487
Performance improvements for tracksViewChanges #2487
Conversation
@rborn some improvements related to the latest issue with tracksViewChanges and custom Image tags in markers. Should be merged in before a release to avoid a too heavy toll on users with |
@alvelig could you have a look 🐽 I'm heading to ReactAlicante so I won't be able to do anything until Monday |
@danielgindi Do I get it right, that it comes as a replacement for |
This redraw update, will this also help with the memory leaks issues related to maps rerendering? |
There's a bunch of stuff in here: I think this should be left up to the user and the use case. The |
Also originally I tried to check for |
Excuse me, but why do we need |
@danielgindi awesome i cant wait till this update is pushed to the repo |
@alvelig |
So by default |
Well it depends :) The thing is that even with iOS until now the way to ensure that a custom marker will be drawn is to keep the default So by default it is the correct mechanism, but then the user should disable it on the correct event like componentDidUpdate or Image’s onLoad or other custom events. It’s even more complex than that, as you might have a custom marker that has an image AND other views. So my main recommendation is adding docs and more docs :) |
We could also wrap the marker component with another, that will have built in logic for |
@danielgindi why would it be a breaking change? |
As people expect it now to be |
Great, thanks for the explanations. I agree! |
* upstream/master: (28 commits) Calculate bounding box from region (react-native-maps#2615) [iOS GoogleMap] Fix animateCamera (react-native-maps#2608) Fix type definition error (react-native-maps#2607) [Android] Fix app crash in Android if building found but cannot getActiveLevelIndex (react-native-maps#2598) Provide a camera system (react-native-maps#2563) Get visible map bounding box (react-native-maps#2571) [0.22.1] Release (react-native-maps#2574) Move dev only deps to devDependencies. (react-native-maps#2548) Specify how to use Google Maps (react-native-maps#2550) r2507: remove marker: Attempt to invoke virtual method 'void com.google.android.gms.maps.model.setIcon(com.google.android.gms.maps.model.BitmapDescription)' on a null object reference #: remove marker: Attempt to invoke virtual method 'void com.google.android.gms.maps.model.setIcon(com.google.android.gms.maps.model.BitmapDescription)' on a null object reference (react-native-maps#2555) update to clarify cacheEnabled is apple maps only [0.22.0] Release (react-native-maps#2535) Fix for “The specified child already has a parent” Improve installation docs (react-native-maps#2541) fix fitToSuppliedMarkers function (react-native-maps#2524) Performance improvements for tracksViewChanges (react-native-maps#2487) fix spelling mistakes Added flag to make sure that there has an Observer of view. hotfix PR react-native-maps#2478 Fix a peer dependencies warning ...
hey @danielgindi wondering if you have any idea how tracksViewChange could play well with native driver animations? See #1705 (comment) |
Does any other open PR do the same thing?
No
What issue is this PR fixing?
Performance improvements for #2477 #1870
How did you test this PR?
Full project