Skip to content

Commit

Permalink
fix dohooo#145 by gbuilt
Browse files Browse the repository at this point in the history
  • Loading branch information
a6232241 committed Sep 16, 2022
1 parent b2ff845 commit dd35bfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/rows.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export class Row extends Component {
const { data, style, widthArr, height, flexArr, textStyle, cellTextStyle, ...props } = this.props;
let width = widthArr ? sum(widthArr) : 0;

if (!!cellTextStyle) textStyle = {...cellTextStyle(item), ...textStyle}

return data ? (
<View style={[height && { height }, width && { width }, styles.row, style]}>
{data.map((item, i) => {
Expand All @@ -26,7 +28,7 @@ export class Row extends Component {
width={wth}
height={height}
flex={flex}
textStyle={[cellTextStyle && cellTextStyle(item), textStyle]}
textStyle={textStyle}
{...props}
/>
);
Expand Down

0 comments on commit dd35bfe

Please sign in to comment.