Skip to content

gayashan1billiontech/react-native-common-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published