@@ -334,21 +334,19 @@ export function BottomTabItem({
334334 onPress,
335335 onLongPress,
336336 testID,
337- accessibilityLabel,
338- accessibilityLargeContentTitle : labelString ,
339- accessibilityShowsLargeContentViewer : true ,
340- // FIXME: accessibilityRole: 'tab' doesn't seem to work as expected on iOS
341- accessibilityRole : Platform . select ( { ios : 'button' , default : 'tab' } ) ,
342- accessibilityState : { selected : focused } ,
343- // @ts -expect-error: keep for compatibility with older React Native versions
344- accessibilityStates : focused ? [ 'selected' ] : [ ] ,
345- android_ripple : { borderless : true } ,
346- hoverEffect :
337+ 'aria-label' : accessibilityLabel ,
338+ 'accessibilityLargeContentTitle' : labelString ,
339+ 'accessibilityShowsLargeContentViewer' : true ,
340+ // FIXME: role: 'tab' doesn't seem to work as expected on iOS
341+ 'role' : Platform . select ( { ios : 'button' , default : 'tab' } ) ,
342+ 'aria-selected' : focused ,
343+ 'android_ripple' : { borderless : true } ,
344+ 'hoverEffect' :
347345 variant === 'material' || ( sidebar && horizontal )
348346 ? { color : colors . text }
349347 : undefined ,
350- pressOpacity : 1 ,
351- style : [
348+ ' pressOpacity' : 1 ,
349+ ' style' : [
352350 styles . tab ,
353351 { flex, backgroundColor, borderRadius } ,
354352 sidebar
@@ -365,7 +363,7 @@ export function BottomTabItem({
365363 ? styles . tabHorizontalUiKit
366364 : styles . tabVerticalUiKit ,
367365 ] ,
368- children : (
366+ ' children' : (
369367 < React . Fragment >
370368 { renderIcon ( scene ) }
371369 { renderLabel ( scene ) }
0 commit comments