Skip to content

Commit 5fd43cb

Browse files
committed
remove console.logs
1 parent 8162ea2 commit 5fd43cb

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-awesome-table",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "React-Native Simple Data Tables",
55
"homepage": "https://github.com/garrylachman/react-native-awesome-table",
66
"keywords": ["react", "react-native", "react tables", "react-native tables", "data tables", "table"],

src/components/Row.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ const Row = (props: RowProps) => {
1212
style = {}
1313
} = props;
1414

15-
console.log(children)
16-
1715
return (
1816
<TouchableOpacity style={[styles.container, style]}>
1917
{children}

src/components/Table.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,10 @@ const Table = (props: TableProps) => {
9494
}
9595
// Have data, adjust by title/data (first row)
9696
const firstRow = data[0];
97-
console.log("first Row", firstRow);
98-
console.log("columns", columns)
9997
totalLength = columns
10098
.map(c => Math.max(c.title.length, `${firstRow[c.dataKey]}`.length))
10199
.reduce((a,b) => a + b, 0);
102-
console.log("totalLength", totalLength);
103100
precent = 100/totalLength;
104-
console.log("precent", precent)
105101
return [...columns].map(c => ({...c, flex: Math.max(c.title.length, `${firstRow[c.dataKey]}`.length) * precent}));
106102
}, [flexAutoAdjustment, columns, data])
107103

0 commit comments

Comments
 (0)