From 20e7f4f9d8701c123dc91edb48632da85575e159 Mon Sep 17 00:00:00 2001 From: Cody Brouwers Date: Sun, 11 Sep 2022 20:46:24 +0900 Subject: [PATCH 1/2] fix: use BottomSheetModalProps instead of BottomSheetProps --- src/types.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.tsx b/src/types.tsx index eb22fea..9cb3b8c 100644 --- a/src/types.tsx +++ b/src/types.tsx @@ -1,4 +1,4 @@ -import type { BottomSheetProps } from '@gorhom/bottom-sheet'; +import type { BottomSheetModalProps } from '@gorhom/bottom-sheet'; import type { DefaultNavigatorOptions, Descriptor, @@ -64,7 +64,7 @@ export type BottomSheetNavigationHelpers = NavigationHelpers< export type BottomSheetNavigationConfig = {}; export type BottomSheetNavigationOptions = Omit< - BottomSheetProps, + BottomSheetModalProps, // Remove some props that aren't useful as navigation options. | 'containerHeight' | 'snapPoints' From cf874423c3e5db95bb296b35ef8e4e1df50d4fc4 Mon Sep 17 00:00:00 2001 From: Cody Brouwers Date: Sun, 11 Sep 2022 21:04:05 +0900 Subject: [PATCH 2/2] docs: update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e9b66bd..4035442 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ const BottomSheet = createBottomSheetNavigator(); ; @@ -61,7 +61,7 @@ Defaults to `['66%']`. #### Other options -Most props from bottom sheet are exposed as navigation options. See the [@gorhom/bottom-sheet website](https://gorhom.github.io/react-native-bottom-sheet/props) for full documentation. +Most props from `BottomSheetModal` are exposed as navigation options. See the [@gorhom/bottom-sheet website](https://gorhom.github.io/react-native-bottom-sheet/modal/props) for full documentation. ### Navigation helpers