react-native-table-component
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "react-native-table-component", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Build table for react native.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -86,3 +86,3 @@ # React Native Table Component | ||
<Row data={tableHead} style={styles.head} textStyle={styles.text} flexArr={[1, 2, 1, 2]}/> | ||
<Cols data={tableData} textStyle={styles.text} heightArr={[20, 50]} widthArr={[60, 120, 60, 120]}/> | ||
<Cols data={tableData} textStyle={styles.text} heightArr={[20, 50]} flexArr={[1, 2, 1, 2]}/> | ||
</Table> | ||
@@ -135,4 +135,4 @@ </View> | ||
head: { height: 40, backgroundColor: '#f1f8ff' }, | ||
title: { flex: 1 backgroundColor: '#f6f8fa' }, | ||
row: { height: 30 }, | ||
title: { flex: 1, backgroundColor: '#f6f8fa' }, | ||
row: { height: 28 }, | ||
text: { textAlign: 'center' } | ||
@@ -162,3 +162,3 @@ }) | ||
return ( | ||
<View style={style.con}> | ||
<View> | ||
<Table style={{flexDirection: 'row'}}> | ||
@@ -216,3 +216,3 @@ {/* Left Wrapper */} | ||
return ( | ||
<View style={style.con}> | ||
<View> | ||
<Table style={styles.table}> | ||
@@ -224,3 +224,3 @@ {/* Left Wrapper */} | ||
tableTitle.map((title, i) => ( | ||
<Cell key={i} data={title} height={28} style={[styles.title, i%2 && {backgroundColor: '#DFF5F2'}]} textStyle={styles.titleText}/> | ||
<Cell key={i} data={title} height={28} style={i%2 && {backgroundColor: '#DFF5F2'}} textStyle={styles.titleText}/> | ||
)) | ||
@@ -253,3 +253,3 @@ } | ||
titleText: { marginLeft: 6 }, | ||
list: { height: 30, backgroundColor: '#f0f0f0' }, | ||
list: { height: 28, backgroundColor: '#f0f0f0' }, | ||
listText: { textAlign: 'right', marginRight: 6 } | ||
@@ -256,0 +256,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16860