-
Hello, I'd like to request an enhancement for animating the MarkerView using Thanks! Reference: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @timweii, I have done this in Something like this should work:
|
Beta Was this translation helpful? Give feedback.
-
Hi @tyrauber, thank you for getting back to me. I've created a basic animation component to try out your code (see attached below). However, it throws an error when the second followPoint is passed. I am wondering if it encounters a similar issue when attempting to animate a marker view: Similarly, in
|
Beta Was this translation helpful? Give feedback.
-
Hi @timweii, You are correct. The native libraries are expecting JSON, but the JS API should handle the conversion. If you look at ShapeSource, it says it accepts But, try whitelisting the native props:
If that doesn't work, try converting the shape prop to JSON manually:
Let me know what you find! |
Beta Was this translation helpful? Give feedback.
-
Thank you @tyrauber! |
Beta Was this translation helpful? Give feedback.
Hi @timweii, I have done this in
rnmapbox/maps
without modifying the library, and the same should work inmaplibre-react-native
using react-native-reanimatedcreateAnimatedComponent
anduseAnimatedProps
.Something like this should work: