Open
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected]
for the project I'm working on.
Issue : Using Dynamically generated carousel screens throws a typing error.
Here is the diff that solved my problem:
diff --git a/node_modules/react-responsive-carousel/lib/ts/components/Carousel/types.d.ts b/node_modules/react-responsive-carousel/lib/ts/components/Carousel/types.d.ts
index f170eef..33c5797 100644
--- a/node_modules/react-responsive-carousel/lib/ts/components/Carousel/types.d.ts
+++ b/node_modules/react-responsive-carousel/lib/ts/components/Carousel/types.d.ts
@@ -18,7 +18,7 @@ export interface CarouselProps {
autoPlay?: boolean;
centerMode?: boolean;
centerSlidePercentage: number;
- children?: React.ReactChild[];
+ children?: React.ReactNode;
className?: string;
dynamicHeight?: boolean;
emulateTouch?: boolean;
If needed, I can raise a PR too. Thank you for your work once again!
This issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
No labels