Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chizhkov422 opened this issue Oct 3, 2022 · 2 comments

Comments

@chizhkov422
Copy link

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch rn-swipeable-panel@1.2.7 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.

@damiaofranca
Copy link

I have the same problem.

@yshakouri
Copy link

I have same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants