Closed crobinson42 closed 4 years ago
If the surrounding container has flex: 1 the table is not shown, removing flex shows the data OR removing the flexArr prop also fixes this. Any ideas why?
flex: 1
flex
flexArr
<ScrollView style={{ flex: 1 }}> <Table> {tableData.map((rowData, index) => ( <Row data={rowData} flexArr={[1, 1, 3, 1]} key={index} style={[ index % 2 ? { backgroundColor: '#c3c3c0' } : { height: 100 }, ]} textStyle={styles.headText} /> ))} </Table> </ScrollView>
If the surrounding container has
flex: 1
the table is not shown, removingflex
shows the data OR removing theflexArr
prop also fixes this. Any ideas why?