Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Accessibility Props Not Passing to Button #317

Open
moicez opened this issue Jan 12, 2019 · 0 comments
Open

Accessibility Props Not Passing to Button #317

moicez opened this issue Jan 12, 2019 · 0 comments

Comments

@moicez
Copy link

moicez commented Jan 12, 2019

The accessibility props are not being passed down to the NativeButton component.
I have confirmed this here: https://github.com/dancormier/react-native-swipeout/blob/master/src/index.js#L79

Please advise if I am missing something.

const swipeoutBtns = [
    {
      component: <DeleteSwipeBtn />,
      onPress: cbDelete,
      backgroundColor: rawStyles.colors.grayLighter,
      underlayColor: rawStyles.colors.grayLighter,
      accessibilityTraits: "button",
      accessibilityComponentType: "button",
    }
];
return (
  <Swipeout
      right={swipeoutBtns}
      backgroundColor="#fff"
      buttonWidth={72}
      sensitivity={20}
      key={list.id}
    >
        <View style={style.container}>
           <Copy style={style.text}>
               Swiping Item
           </Copy>
        </View>
   <Swipeout />
);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant