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
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
<MaskedViewaccessibilityLabel={children}accessibilityRole="text"maskElement={<Textstyle={style}testID={testID}onLayout={onTextLayout}{...props}>{children}</Text>}><LinearGradientcolors={selectedGradient.valueasunknownasreadonly[string,string, ...string[]]}start={{x: 0,y: 0}}end={{x: 1,y: 0}}style={{flexDirection: 'row'}}>{/* Invisible placeholder to size the gradient */}<Textstyle={[style,{opacity: 0}]}{...props}>{children}</Text>{/* Glimmer / shimmer overlay — rendered unconditionally; the animation starts via useAnimatedReaction. */}{selectedGradient.glimmer&&animationType==='gradient'&&(<Animated.Viewstyle={[{position: 'absolute',top: -10,bottom: -10,backgroundColor: selectedGradient.glimmer,},glimmerViewStyle,]}/>)}</LinearGradient></MaskedView>
Environment
Expo SDK 55, latest masked-view
Description
accessibilityLabel={children}on MaskedView occasionally causes error updatingaccessibilityLabelissue.Debug Logs:
Reproducible Demo
Here's a video of what happens:
MaskedView_w_accessibilityLabel.mp4