Comments (5)
react-native info
from react-native-largelist.
图片中可以看到,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.
那是Item分隔器renderItemSeparator,看文档,不需要的话就设置成()=>null
from react-native-largelist.
管用,感谢~
from react-native-largelist.
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)
- Can you set the offset to refresh and load, and set the sliding distance to refresh and load?
- Stickyform android scroll laggedly
- 关于 renderFooter 的问题
- renderIndexPath
- Problem Android with RN 0.66.4
- 关于需要返回列表每一行高度的函数 HOT 1
- 能否加个参数 上拉提前加载更多 类似Flatlist的onEndReachedThreshold
- what is "renderSection" for LargeList?
- 有没有暴露Item 曝光的事件和消失的事件 HOT 1
- 瀑布流card 高度不确定矫正问题
- Error with RN Version 0.69.0
- 'data[section].items.length' 错误 HOT 1
- Sticky header support 有例子嘛 HOT 1
- 大佬,WaterfallList在header高度超过屏幕高度的情况,下面是list瀑布流,会偶尔出现瀑布流有数据,却无法往上拖动的情况
- renderIndexpath dynamic height HOT 1
- how to set customs height for section
- Error install package for react version in the latest react native. HOT 2
- endLoading调用报错 HOT 1
- not showing full list. just white space after that HOT 6
- How to achieve the section sticky header effect on Android as well
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-largelist.