【问题标题】:How to increase button width on 'react-native-swipeout' for ListView row swipe (React Native)?如何为 ListView 行滑动(React Native)增加“react-native-swipeout”上的按钮宽度?
【发布时间】:2016-07-14 21:08:37
【问题描述】:

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

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

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

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

【问题讨论】:

    标签: javascript ios react-native swipe react-jsx


    【解决方案1】:

    尝试添加这个

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

    刷出

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-27
      • 1970-01-01
      相关资源
      最近更新 更多