@1billion-tech/react-native-common-modules

0.2.0 • Public • Published

react-native-common-modules

test module

Installation

npm install react-native-common-modules

Usage

import  { DynamicTable }  from 'react-native-common-modules';

// ...
<DynamicTable 
    tableData = {[{rowId: "",rowType:"",questionSelectionType:"", columns:[]},{rowId: "",rowType:"",questionSelectionType:"",columns:[]}]}
    columnCount={"number"}
    columnWidthsTemplate={{ firstColumn: `${100 / columnCount }%`, otherColumns: `${100 / columnCount}%`, mergedColumns: `${100 - (100 / columnCount)}%`, fullColumn: '100%`'}}
    defaultColumnType={"DEFAULT"}
    cellHook={{ ["rowType"]: (data, elementRef) => {  /* logic */} }}
    onPressRow={"function"}
    renderPopup={"function"}
    showPopup={"boolean"}
/>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Readme

Keywords

Package Sidebar

Install

npm i @1billion-tech/react-native-common-modules

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

72.9 kB

Total Files

27

Last publish

Collaborators

  • sapudev
  • gayashan_sameera
  • shehan_ekanayake
  • opensource1bt