rilyu / teaset

A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
MIT License
2.94k stars 481 forks source link

ListRow的bottomSeparator属性为element无效 #400

Open lhaiqing opened 4 years ago

lhaiqing commented 4 years ago

是否应该修改为 renderSeparator(type) { let separatorStyle = { backgroundColor: Theme.rowSeparatorColor, height: Theme.rowSeparatorLineWidth, }; let indentViewStyle = { backgroundColor: 'rgba(0,0,0,0)', paddingLeft: Theme.rowPaddingLeft, } if (React.isValidElement(type)) return type; switch (type) { case 'full': return ; case 'indent': return ; default: return null; } }, 添加一个type的类型判断