rn-swipeable-panel icon indicating copy to clipboard operation
rn-swipeable-panel copied to clipboard

Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<SwipeablePanel> & Readonly<SwipeablePanelProps>'.

Open chizhkov422 opened this issue 1 year ago • 2 comments

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.

chizhkov422 avatar Oct 03 '22 16:10 chizhkov422

I have the same problem.

damiaofranca avatar Nov 01 '22 13:11 damiaofranca

I have same issue

yshakouri avatar Jul 31 '23 12:07 yshakouri