nysamnang / react-native-raw-bottom-sheet

Add Your Own Component To Bottom Sheet Whatever You Want (Android and iOS)

Home Page:https://npmjs.com/package/react-native-raw-bottom-sheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Property 'children' does not exist on type

stereodenis opened this issue Β· comments

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-raw-bottom-sheet@2.2.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-raw-bottom-sheet/index.d.ts b/node_modules/react-native-raw-bottom-sheet/index.d.ts
index 31a5259..1c4cf13 100644
--- a/node_modules/react-native-raw-bottom-sheet/index.d.ts
+++ b/node_modules/react-native-raw-bottom-sheet/index.d.ts
@@ -1,4 +1,4 @@
-import { Component } from "react";
+import { Component, PropsWithChildren } from "react";
 import { StyleProp, ViewStyle } from "react-native";
 
 declare module "react-native-raw-bottom-sheet" {
@@ -20,7 +20,7 @@ declare module "react-native-raw-bottom-sheet" {
       draggableIcon?: StyleProp<ViewStyle>;
     };
     keyboardAvoidingViewEnabled?: boolean;
-  };
+  } & PropsWithChildren;
 
   export default class RBSheet extends Component<RBSheetProps> {
     open(): void;

This issue body was partially generated by patch-package.

@nysamnang @stereodenis Worth making a PR to fix this for everyone?

@msachi unfortunately this projects seems to be abandoned