Animating mapPadding prop on MapView from react-native-maps crashes on Android #8330
Unanswered
shashibheemanapally
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @shashibheemanapally, thanks for reporting this. Could you please provide the full stack trace? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have been trying to animate
mapPadding
prop onMapView
component of react-native-maps. To achieve this, I am usingAnimated.createAnimatedComponent()
to create a custom animated MapView component and passing the mapPadding as animated prop.Animation works fine on iOS. However, on Android app simply crashes (on dev and preview builds) with error:
Caused by java.lang.NullPointerException: null cannot be cast to non-null type expo.modules.devlauncher.DevLauncherController
(I can provide more stack trace)iOS.mp4
Android.mp4
I tried to animate other props (like region) and they work fine on both Android and iOS. It only crashes (on Android) when I add mapPadding in
animatedProps
.Any help or workaround is much appreciated! Thank you!
Edit: I would like to achieve this behavior mainly because I am planning to use some kind of bottom sheet and I would want the "Google" logo to be shown on the map at all times.
Beta Was this translation helpful? Give feedback.
All reactions