Skip to content

Commit cf2443d

Browse files
authored
doc: fix a typo and improve variable naming in hooks.md (#2615)(by @Chinteyley)
Corrected a typo in the hook description and updated variable name for clarity.
1 parent eccd823 commit cf2443d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/docs/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ const SheetContent = () => {
9090

9191
## useBottomSheetScrollableCreator
9292

93-
A custom hook that creates a scrollable component for third-party libraries like `LegendList` or `FlashList` to integrate the interaction and scrolling behaviors with th BottomSheet component.
93+
A custom hook that creates a scrollable component for third-party libraries like `LegendList` or `FlashList` to integrate the interaction and scrolling behaviors with the BottomSheet component.
9494

9595
```tsx
9696
import React from 'react';
9797
import BottomSheet, { useBottomSheetScrollableCreator } from '@gorhom/bottom-sheet';
9898
import { LegendList } from '@legendapp/list';
9999

100100
const SheetContent = () => {
101-
const BottomSheetScrollable = useBottomSheetScrollableCreator();
101+
const BottomSheetLegendListScrollable = useBottomSheetScrollableCreator();
102102
return (
103103
<BottomSheet>
104104
<LegendList

0 commit comments

Comments
 (0)