callstack / callstack/masked-view
Error while updating property 'accessibilityLabel' of a view managed by : RNCMaskedView
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 131
- PR merge metrics
- No merged PRs in 30d
Description
## Environment
Expo SDK 55, latest masked-view
## Description
`accessibilityLabel={children}` on MaskedView occasionally causes error updating `accessibilityLabel` issue.
Debug Logs:
```
Caused by: java.lang.ClassCastException: com.facebook.react.bridge.ReadableNativeArray cannot be cast to java.lang.String
at com.facebook.react.uimanager.ViewManagersPropertyCache$StringPropSetter.getValueOrDefault(ViewManagerPropertyCache.java:291)
at com.facebook.react.uimanager.ViewManagersPropertyCache$PropSetter.updateViewProp(ViewManagersPropertyCache.java:86)
```
## Reproducible Demo
```ts
{children}
}>
{/* Invisible placeholder to size the gradient */}
{children}
{/* Glimmer / shimmer overlay — rendered unconditionally;
the animation starts via useAnimatedReaction. */}
{selectedGradient.glimmer && animationType === 'gradient' && (
)}
```
Here's a video of what happens:
https://github.com/user-attachments/assets/eb473d04-4ccc-48a9-ace8-86aeeddcb794
Contributor guide
Assessment
This issue has not been assessed yet.