Open lhaiqing opened 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的类型判断
是否应该修改为 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的类型判断