Closed hjpunzalan closed 1 year ago
Hello!
Sorry for the late reply; pull requests are very welcome!
is anyone there typed ref props properly..? please share it via comment. thanks in advance!
is anyone there typed ref props properly..? please share it via comment. thanks in advance!
I just needed containerWidth, so I wrote type like this below.. (maybe not a proper way, but it works anyway)
type CustomXMasonryProps = Component<XMasonryProps, {}, any> & { containerWidth: number };
const xMasonryRef = useRef<CustomXMasonryProps>(null);
I see no problem in using <XMasonry ref={...}></XMasonry>
. What's the issue with it? Can you please reproduce or suggest a fix? Thanks!
Closing this due to inactivity.
Hi,
Thank you for this wonderful tool. Could you please add props of ref of xMasonry component in the type file definition. Will it be possible to add gaps for this component?