Open kestarumper opened 2 years ago
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch react-native-lightbox-v2@0.9.0 for the project I'm working on.
react-native-lightbox-v2@0.9.0
The exported Lightbox type is not supporting React children
Lightbox
children
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-lightbox-v2/dist/Lightbox.d.ts b/node_modules/react-native-lightbox-v2/dist/Lightbox.d.ts index 984e8ae..38a52f2 100644 --- a/node_modules/react-native-lightbox-v2/dist/Lightbox.d.ts +++ b/node_modules/react-native-lightbox-v2/dist/Lightbox.d.ts @@ -12,7 +12,7 @@ export interface ISpringConfig { tension: number; friction: number; } -export interface LightboxProps<T = any> extends IGestureProps { +export interface LightboxProps<T = any> extends React.PropsWithChildren<IGestureProps> { activeProps?: Record<string, T>; renderContent?: Func<T, JSX.Element>; renderHeader?: Func<T, JSX.Element>;
This issue body was partially generated by patch-package.
Thanks! Resolved my issue
We apologize for the late response. The related issues will be resolved in the upcoming version. You are also welcome to join us in the co-development.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
react-native-lightbox-v2@0.9.0
for the project I'm working on.Problem
The exported
Lightbox
type is not supporting Reactchildren
Diff
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.