rn-swipeable-panel
rn-swipeable-panel copied to clipboard
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<SwipeablePanel> & Readonly<SwipeablePanelProps>'.
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.
Here is the diff that solved my problem:
diff --git a/node_modules/rn-swipeable-panel/dist/Panel.d.ts b/node_modules/rn-swipeable-panel/dist/Panel.d.ts
index 0368e4c..19c7052 100644
--- a/node_modules/rn-swipeable-panel/dist/Panel.d.ts
+++ b/node_modules/rn-swipeable-panel/dist/Panel.d.ts
@@ -1,4 +1,4 @@
-import { Component } from 'react';
+import React, { Component } from 'react';
import { Animated, ScrollViewProps } from 'react-native';
declare type SwipeablePanelProps = {
isActive: boolean;
@@ -19,6 +19,7 @@ declare type SwipeablePanelProps = {
barContainerStyle?: object;
allowTouchOutside?: boolean;
scrollViewProps?: ScrollViewProps;
+ children: React.ReactElement;
};
declare type SwipeablePanelState = {
status: number;
This issue body was partially generated by patch-package.
I have the same problem.
I have same issue