You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Reanimated's createAnimatedComponenton MarkerView does not work. More specifically:
MarkerView is a functional component and therefore is not supported out of the box. Only class components are compatible with createAnimatedComponent.
Using React's forwardRef does not work, causing the render errors Cannot read property 'getScrollableNode' of null and Cannot read property '__internalInstanceHandle' of null.
Having support for Reanimated is quite crucial from a UX point of view, especially when it comes to using useAnimatedProps on the marker's coordinates for smooth movement.
@lpatrun Reanimated's createAnimatedComponent only accepts class-based components and RNML's implementation of MarkerView is functional. At the moment (prior to React 19) the solution is to use forwardRef, but it doesn't work in this case - unfortunately I haven't had time to investigate why that is.
I've started to cleanup the default RN Animated examples in #697 and also noticed missing forwardRef wrappings for MarkerView as well as the layers. So you did try to add forwardRef to MarkerView and that gave Cannot read property '__internalInstanceHandle' of null?
Describe and reproduce the Bug
This issue blocks migration from @rnmapbox/maps.
Using Reanimated's
createAnimatedComponent
on MarkerView does not work. More specifically:createAnimatedComponent
.forwardRef
does not work, causing the render errorsCannot read property 'getScrollableNode' of null
andCannot read property '__internalInstanceHandle' of null
.Having support for Reanimated is quite crucial from a UX point of view, especially when it comes to using
useAnimatedProps
on the marker's coordinates for smooth movement.Related issue: #334 (proposed solution is not a suitable substitute)
@maplibre/maplibre-react-native Version
10.0.1
Which platforms does this occur on?
No response
Which frameworks does this occur on?
Expo
Which architectures does this occur on?
Old Architecture
Environment
The text was updated successfully, but these errors were encountered: