Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const BottomSheet = createBottomSheetNavigator();
<BottomSheet.Screen
name="secondSheet"
component={SecondSheetComponent}
// Can pass any prop from @gorhom/bottom-sheet
// Can pass any prop from @gorhom/bottom-sheet's BottomSheetModal
options={{ snapPoints: [200, "100%"], index: 1 }}
/>
</BottomSheet.Navigator>;
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { BottomSheetProps } from '@gorhom/bottom-sheet';
import type { BottomSheetModalProps } from '@gorhom/bottom-sheet';
import type {
DefaultNavigatorOptions,
Descriptor,
Expand Down Expand Up @@ -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'
Expand Down