teaset
teaset copied to clipboard
ListRow的bottomSeparator属性为element无效
是否应该修改为 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 <View style={separatorStyle} />; case 'indent': return <View style={indentViewStyle}><View style={separatorStyle} /></View>; default: return null; } }, 添加一个type的类型判断