gpt4 book ai didi

javascript - 如何增加 'react-native-swipeout' 上的按钮宽度以进行 ListView 行滑动(React Native)?

转载 作者:行者123 更新时间:2023-11-28 05:47:28 33 4
gpt4 key购买 nike

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

但我希望该行能够一直滑动。有没有办法增加按钮宽度,以便滑动按钮时可以覆盖行的整个宽度?

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

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

最佳答案

尝试添加这个

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

滑出

关于javascript - 如何增加 'react-native-swipeout' 上的按钮宽度以进行 ListView 行滑动(React Native)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38384297/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com