如何增加列表视图行滑动的“反应本机滑动”上的按钮宽度(React Native)

How to increase button width on 'react-native-swipeout' for ListView row swipe (React Native)?

本文关键字:按钮 本机 Native React 视图 列表 何增加 增加      更新时间:2023-09-26

我正在尝试使用以下组件:https://github.com/dancormier/react-native-swipeout

但我希望这一行一直被刷到一边。有没有办法增加按钮宽度,以便在滑动按钮时可以覆盖行的整个宽度?

我尝试在以下样式中添加"width:200"={},但给定的按钮宽度仍然相同:

component: <View style={{flex:1}}><Text>Full Width</Text></View>

尝试添加这个

const swipeSittings ={
...
      buttonWidth:150,
...

到滑动