dancormier / react-native-swipeout

iOS-style swipeout buttons behind component
MIT License
2.62k stars 645 forks source link

Accessibility Props Not Passing to Button #317

Open moicez opened 5 years ago

moicez commented 5 years ago

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 />
);