Skip to content

fix: Error while updating prop shadowImage#4167

Open
g4rb4g3 wants to merge 1 commit intornmapbox:mainfrom
g4rb4g3:main
Open

fix: Error while updating prop shadowImage#4167
g4rb4g3 wants to merge 1 commit intornmapbox:mainfrom
g4rb4g3:main

Conversation

@g4rb4g3
Copy link
Contributor

@g4rb4g3 g4rb4g3 commented Mar 2, 2026

Description

Fixes an issue when setting certain props on the LocationPuck component and does some cleanup on the RNMBXNativeUserLocationManager class.

[maps-android\LocationPuck2D]: No image holder data for mapbox-location-bearing-icon!
Error while updating prop shadowImage
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.uimanager.ViewManagersPropertyCache$PropSetter.updateViewProp(ViewManagersPropertyCache.java:93)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.setProperty(ViewManagerPropertyUpdater.kt:151)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$GenericViewManagerDelegate.setProperty(ViewManagerPropertyUpdater.kt:184)
at com.facebook.react.uimanager.ViewManager.updateProperties(ViewManager.java:103)
at com.facebook.react.fabric.mounting.SurfaceMountingManager.updateProps(SurfaceMountingManager.java:696)
at com.facebook.react.fabric.mounting.mountitems.IntBufferBatchMountItem.execute(IntBufferBatchMountItem.kt:116)
at com.facebook.react.fabric.mounting.MountItemDispatcher.executeOrEnqueue(MountItemDispatcher.kt:312)
at com.facebook.react.fabric.mounting.MountItemDispatcher.dispatchMountItems(MountItemDispatcher.kt:221)
at com.facebook.react.fabric.mounting.MountItemDispatcher.tryDispatchMountItems(MountItemDispatcher.kt:88)
at com.facebook.react.fabric.FabricUIManager$DispatchUIFrameCallback.doFrameGuarded(FabricUIManager.java:1484)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.kt:25)
at com.facebook.react.modules.core.ReactChoreographer.frameCallback$lambda$1(ReactChoreographer.kt:59)
at com.facebook.react.modules.core.ReactChoreographer.$r8$lambda$nSkFhrr5T7rop_XKwzlLov4NLLw(Unknown Source:0)
at com.facebook.react.modules.core.ReactChoreographer$$ExternalSyntheticLambda0.doFrame(D8$$SyntheticClass:0)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1899)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1910)
at android.view.Choreographer.doCallbacks(Choreographer.java:1367)
at android.view.Choreographer.doFrame(Choreographer.java:1282)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1870)
at android.os.Handler.handleCallback(Handler.java:995)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:273)
at android.os.Looper.loop(Looper.java:363)
at android.app.ActivityThread.main(ActivityThread.java:10060)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by: java.lang.ClassCastException: Dynamic value from Object is not a string
at com.facebook.react.bridge.DynamicFromObject.asString(DynamicFromObject.kt:48)
at com.rnmapbox.rnmbx.components.location.RNMBXNativeUserLocationManager.setShadowImage(RNMBXNativeUserLocationManager.kt:74)
... 28 more

Checklist

  • I've read CONTRIBUTING.md
  • I updated the doc/other generated code with running yarn generate in the root folder
  • I have tested the new feature on /example app.
    • In New Architecture mode/android
  • I added/updated a sample - if a new feature was implemented (/example)

Screenshot OR Video

image

Component to reproduce the issue you're fixing

@g4rb4g3 g4rb4g3 requested a deployment to CI with Mapbox Tokens March 2, 2026 14:37 — with GitHub Actions Waiting
@g4rb4g3 g4rb4g3 requested a deployment to CI with Mapbox Tokens March 2, 2026 14:37 — with GitHub Actions Waiting
@g4rb4g3 g4rb4g3 requested a deployment to CI with Mapbox Tokens March 2, 2026 14:37 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant