Skip to content

Commit

Permalink
fix table issue
Browse files Browse the repository at this point in the history
  • Loading branch information
menzheha-maksym committed Apr 15, 2022
1 parent b5d8a46 commit e9abe4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
13 changes: 6 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"react-native-dropdown-picker": "^5.4.0",
"react-native-safe-area-context": "^4.2.4",
"react-native-screens": "^3.13.1",
"react-native-table-component": "^1.2.2"
"react-native-table-component": "https://github.com/slice312/react-native-table-component.git"
},
"devDependencies": {
"@babel/core": "^7.12.9",
Expand Down
8 changes: 4 additions & 4 deletions src/components/RatesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const styles = StyleSheet.create({
tableBorder: {
borderWidth: 1,
},
rowHeader: {
padding: 10,
},
});

interface RatesTableProps {
Expand All @@ -34,11 +37,8 @@ const RatesTable: React.FC<RatesTableProps> = ({currency, ratesData}) => {
<Text>Selected currency {currency}</Text>
<ScrollView>
<Table borderStyle={styles.tableBorder}>
<Row data={tableHead} />
<Row data={tableHead} textStyle={styles.rowHeader} />
<Rows data={tableData} />
{/* {tableData.map((rowData, index) => {
<Row key={index} data={rowData} />;
})} */}
</Table>
</ScrollView>
</View>
Expand Down

0 comments on commit e9abe4d

Please sign in to comment.