Giter Site home page Giter Site logo

Comments (5)

1c7 avatar 1c7 commented on May 21, 2024

react-native info

image

from react-native-largelist.

1c7 avatar 1c7 commented on May 21, 2024

图片中可以看到,item 之间有一条浅色的灰色线条,请问如何去除?谢谢

在用 React Native 0.52,react-native run-android 跑在安卓真机上(三星 Galaxy Note 5)

borderWidth:0 elevation:0 都不行

(以下代码无法去除灰色区隔线

  renderItem(section, row) {
    let food = this.haha[row];
    return (<View style={{flex: 1, elevation:0, borderWidth:0}}>
      <Text>{food.title}</Text>
    </View>)
  }

from react-native-largelist.

bolan9999 avatar bolan9999 commented on May 21, 2024

那是Item分隔器renderItemSeparator,看文档,不需要的话就设置成()=>null

from react-native-largelist.

1c7 avatar 1c7 commented on May 21, 2024

管用,感谢~

screenshot_20180122-194855

from react-native-largelist.

1c7 avatar 1c7 commented on May 21, 2024

renderItemSeparator={()=>null}

        <LargeList
          style={{ flex: 1}}
          bounces={true}
          safeMargin={600}
          numberOfRowsInSection={section => 3}
          heightForCell={(section, row) => row % 2 ? 100 : 100}
          renderCell={this.renderItem.bind(this)}
          heightForSection={section => section % 2 ? 0 : 0}
          renderItemSeparator={()=>null}
        />

from react-native-largelist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.