Skip to content

Commit b0cc729

Browse files
Merge pull request #8 from codybrouwers/cb-sep11-fix/bottom-sheet-prop-types
Use BottomSheetModalProps instead of BottomSheetProps as navigation options
2 parents ed95d9f + cf87442 commit b0cc729

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const BottomSheet = createBottomSheetNavigator();
3131
<BottomSheet.Screen
3232
name="secondSheet"
3333
component={SecondSheetComponent}
34-
// Can pass any prop from @gorhom/bottom-sheet
34+
// Can pass any prop from @gorhom/bottom-sheet's BottomSheetModal
3535
options={{ snapPoints: [200, "100%"], index: 1 }}
3636
/>
3737
</BottomSheet.Navigator>;
@@ -61,7 +61,7 @@ Defaults to `['66%']`.
6161

6262
#### Other options
6363

64-
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.
64+
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.
6565

6666
### Navigation helpers
6767

src/types.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { BottomSheetProps } from '@gorhom/bottom-sheet';
1+
import type { BottomSheetModalProps } from '@gorhom/bottom-sheet';
22
import type {
33
DefaultNavigatorOptions,
44
Descriptor,
@@ -64,7 +64,7 @@ export type BottomSheetNavigationHelpers = NavigationHelpers<
6464
export type BottomSheetNavigationConfig = {};
6565

6666
export type BottomSheetNavigationOptions = Omit<
67-
BottomSheetProps,
67+
BottomSheetModalProps,
6868
// Remove some props that aren't useful as navigation options.
6969
| 'containerHeight'
7070
| 'snapPoints'

0 commit comments

Comments
 (0)