Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 911 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 911 Bytes

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