jsoendermann / rn-section-list-get-item-layout

:black_square_button: Easy getItemLayout props for react-native SectionLists.
https://medium.com/@jsoendermann/sectionlist-and-getitemlayout-2293b0b916fb
Other
221 stars 32 forks source link

How to use it with Functional Components? #19

Open LightningNemesis opened 3 years ago

LightningNemesis commented 3 years ago

I was trying to implement the same concept using Functional Components, but I'm not sure I am doing it the right way. Could you please prepare a documentation of using with Functional Components too?

choijiho0021 commented 3 years ago

22222222

qwertychael commented 6 months ago

Probably too late but I forked the repo and converted the code to js / hooks, too lazy to deploy to npm, you can just copy src/useDynamicListLayout.js to your project and import as you would with any other hook. I also changed the readme to include how to use it with hooks. 😄