mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-06-10 15:59:16 +08:00
fix: don't pass accessibilityState to link. closes #9418
This commit is contained in:
@@ -134,6 +134,7 @@ export default function BottomTabBarItem({
|
||||
onPress,
|
||||
to,
|
||||
accessibilityRole,
|
||||
accessibilityState,
|
||||
...rest
|
||||
}: BottomTabBarButtonProps) => {
|
||||
if (Platform.OS === 'web' && to) {
|
||||
@@ -162,6 +163,7 @@ export default function BottomTabBarItem({
|
||||
<TouchableWithoutFeedback
|
||||
{...rest}
|
||||
accessibilityRole={accessibilityRole}
|
||||
accessibilityState={accessibilityState}
|
||||
onPress={onPress}
|
||||
>
|
||||
<View style={style}>{children}</View>
|
||||
|
||||
@@ -86,6 +86,7 @@ const Touchable = ({
|
||||
onPress,
|
||||
to,
|
||||
accessibilityRole,
|
||||
accessibilityState,
|
||||
delayPressIn,
|
||||
...rest
|
||||
}: TouchableWithoutFeedbackProps & {
|
||||
@@ -119,6 +120,7 @@ const Touchable = ({
|
||||
<TouchableItem
|
||||
{...rest}
|
||||
accessibilityRole={accessibilityRole}
|
||||
accessibilityState={accessibilityState}
|
||||
delayPressIn={delayPressIn}
|
||||
onPress={onPress}
|
||||
>
|
||||
|
||||
@@ -111,10 +111,13 @@ function MaterialBottomTabViewInner({
|
||||
? ({
|
||||
onPress,
|
||||
route,
|
||||
accessibilityRole: _0,
|
||||
borderless: _1,
|
||||
centered: _2,
|
||||
rippleColor: _3,
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
accessibilityRole,
|
||||
accessibilityState,
|
||||
borderless,
|
||||
centered,
|
||||
rippleColor,
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||
style,
|
||||
...rest
|
||||
}) => {
|
||||
|
||||
Reference in New Issue
Block a user