nysamnang / react-native-raw-bottom-sheet

Add Your Own Component To Bottom Sheet Whatever You Want (Android and iOS)
https://npmjs.com/package/react-native-raw-bottom-sheet
MIT License
1.09k stars 195 forks source link

RBSheetProps and RBSheetRef #189

Open umaAntier opened 4 months ago

umaAntier commented 4 months ago

RBSheetProps and RBSheetRef make it exportable.

jayarjo commented 3 months ago

Why not exporting these?

umaAntier commented 3 months ago

Why not exporting these?

Screenshot 2024-08-09 at 11 14 34 AM

because of these both interfaces are not exportable ....!

so we cannot import it whenever we need to use it.

ncoen97 commented 3 months ago

Agree, the types should be exported

BRTZL commented 1 month ago

You can use the patch file below for exporting types

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 5b7ecdb..98fe5b3 100644
--- a/node_modules/react-native-raw-bottom-sheet/index.d.ts
+++ b/node_modules/react-native-raw-bottom-sheet/index.d.ts
@@ -116,3 +116,5 @@ declare const RBSheet: React.ForwardRefExoticComponent<
 >;

 export default RBSheet;
+export { RBSheetProps, RBSheetRef };
+