这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@chizhkov422

Description

@chizhkov422

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions