0.0.2 • Published 4 years ago

@acaciomartins/react-native-simpletable v0.0.2

Weekly downloads
2
License
-
Repository
github
Last release
4 years ago

A React Native Simple Table is a component React Native.

npm install @acaciomartins/react-native-simpletable

import SimpleTable from '@acaciomartins/react-native-simpletable';
const headerName = [{ name: "Name", size: 70 }, { name: "Description", size: 120 }, { name: "Amount", size: 80 }, { name: "Price", size: 70 }];
const columnName = ["name", "description", "amount", "price"];
const tableData = [
  { name: "Product 1", description: "Description Product 1", price: "1,99", amount: "1" }, 
  { name: "Product 2", description: "Description Product 2", price: "2,99", amount: "2" }];
    
<SimpleTable
    data={tableData}
    headerName={headerName}
    columnName={columnName}
/>

Props