Advertisement
Badal_hs_shah

Untitled

Feb 20th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. import IData from './IData';
  2.  
  3. export default interface Props {
  4. /** The array of objects data. */
  5. data: IData<T>[];
  6. /** The sectionlist container style. */
  7. style?: any;
  8. /**
  9. * Render the list item elements.
  10. *
  11. * @param item - The JSX component with data array of object with value and key
  12. * @returns The JSX Element component
  13. *
  14. */
  15. renderItem?: (item: IData<T>) => JSX.Element;
  16. /**
  17. * Render the alphabet letter header.
  18. *
  19. * @param section - The section header JSX component
  20. * @returns The JSX Element component
  21. *
  22. */
  23. renderSectionHeader?: (section: any) => JSX.Element;
  24. onLoadMoreItems?: () => void;
  25. /**
  26. * Returns the each item height position size.
  27. *
  28. * @param sectionIndex - The section index position.
  29. * @param rowIndex - The header row index position.
  30. * @returns Returns the each item height position size.
  31. *
  32. */
  33. getItemHeight?: ({
  34. sectionIndex,
  35. rowIndex,
  36. }: {
  37. sectionIndex: number;
  38. rowIndex: number;
  39. }) => number;
  40. /** The section header defines each alphabet title header size. */
  41. sectionHeaderHeight?: number;
  42. /** The alphabet letter font-size. */
  43. indexLetterColor?: string;
  44. /** The alphabet letter font-size. */
  45. indexLetterSize?: number;
  46. /** The alphabet letter index width size. */
  47. letterIndexWidth?: number;
  48. /** The container letter item style. */
  49. letterItemStyle?: any;
  50. /** The alphabet wrapper container style. */
  51. containerStyle?: any;
  52. /** The flatlist alphabet container style. */
  53. alphabetContainer?: any;
  54. }
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement