Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-timeline-flatlist@0.8.0 for the project I'm working on.
I Realized the Timeline component has a field called options which was marked with the type of FlatlistProps, where as Flastlist has a few props that are required, but in our context wont be required since those props are passed directly to the Timeline component, a typical example is the renderItem prop which Flatlist requires but in this case wont be required on our end as consumers of the module. My suggestion is for us to wrap the FlatlistProps with the TSOptional utility method so we dont have to deal with TS errors requiring us to pass some props which technically we are not required to pass.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-native-timeline-flatlist@0.8.0
for the project I'm working on.I Realized the
Timeline
component has a field called options which was marked with the type ofFlatlistProps
, where as Flastlist has a few props that are required, but in our context wont be required since those props are passed directly to theTimeline
component, a typical example is therenderItem
prop whichFlatlist
requires but in this case wont be required on our end as consumers of the module. My suggestion is for us to wrap theFlatlistProps
with theTS
Optional
utility method so we dont have to deal withTS
errors requiring us to pass some props which technically we are not required to pass.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.