|
Hello, I'd like to request an enhancement for animating the MarkerView using Thanks! Reference: |
Replies: 5 comments 2 replies
|
Hi @timweii, I have done this in Something like this should work: |
|
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 |
|
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! |
|
Thank you @tyrauber! |
|
Has anyone tried this with the new arch? I have copied this solution but I keep getting: Am I missing something? This is the code: |
Hi @timweii, I have done this in
rnmapbox/mapswithout modifying the library, and the same should work inmaplibre-react-nativeusing react-native-reanimatedcreateAnimatedComponentanduseAnimatedProps.Something like this should work: