diff --git a/package.json b/package.json index e417e24..c771182 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-awesome-table", - "version": "1.0.3", + "version": "1.0.4", "description": "React-Native Simple Data Tables", "homepage": "https://github.com/garrylachman/react-native-awesome-table", "keywords": ["react", "react-native", "react tables", "react-native tables", "data tables", "table"], diff --git a/src/components/Row.tsx b/src/components/Row.tsx index 918caa5..34d3405 100644 --- a/src/components/Row.tsx +++ b/src/components/Row.tsx @@ -12,8 +12,6 @@ const Row = (props: RowProps) => { style = {} } = props; - console.log(children) - return ( {children} diff --git a/src/components/Table.tsx b/src/components/Table.tsx index 36f882d..c7cc1f4 100644 --- a/src/components/Table.tsx +++ b/src/components/Table.tsx @@ -94,14 +94,10 @@ const Table = (props: TableProps) => { } // Have data, adjust by title/data (first row) const firstRow = data[0]; - console.log("first Row", firstRow); - console.log("columns", columns) totalLength = columns .map(c => Math.max(c.title.length, `${firstRow[c.dataKey]}`.length)) .reduce((a,b) => a + b, 0); - console.log("totalLength", totalLength); precent = 100/totalLength; - console.log("precent", precent) return [...columns].map(c => ({...c, flex: Math.max(c.title.length, `${firstRow[c.dataKey]}`.length) * precent})); }, [flexAutoAdjustment, columns, data])