and this is my code :
tableData.map((rowData, index) => ( <Row key={index} data={this.props.data?this.props.data:rowData} widthArr={this.state.widthArr} style={[styles.row, index%2 && {backgroundColor: '#F7F6E7'}]} textStyle={styles.text} /> ))
and i get this error Invariant Violation: Objects are not valid as a React child (found: object with keys {NICKNAME, SENTDATE, XPOINT, YPOINT, POSDESCRIPTION, SPEED, TRUCKSTATE, MESSAGETIME, SIGNATURE, DIRECTION, MOVINGSTATE}). If you meant to render a collection of children, use an array instead.
how to show this on table ?
hi this is my data :
and this is my code :
tableData.map((rowData, index) => ( <Row key={index} data={this.props.data?this.props.data:rowData} widthArr={this.state.widthArr} style={[styles.row, index%2 && {backgroundColor: '#F7F6E7'}]} textStyle={styles.text} /> ))
and i get this errorInvariant Violation: Objects are not valid as a React child (found: object with keys {NICKNAME, SENTDATE, XPOINT, YPOINT, POSDESCRIPTION, SPEED, TRUCKSTATE, MESSAGETIME, SIGNATURE, DIRECTION, MOVINGSTATE}). If you meant to render a collection of children, use an array instead.
how to show this on table ?