Skip to content

Commit 14edbcf

Browse files
authored
fix: import useSheetRouter instead of useRouter in sheet router guide
The example shows import of 'useRouter` which is not correct. Fix that to import `useSheetRouter` instead See issue #303
1 parent 93cf9fc commit 14edbcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/guides/sheetrouter.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Router works like any navigation router in your app.
1010
import ActionSheet, {
1111
Route,
1212
RouteScreenProps,
13-
useRouter,
13+
useSheetRouter,
1414
useSheetRouteParams,
1515
} from 'react-native-actions-sheet';
1616

@@ -28,7 +28,7 @@ const RouteA = ({router}: RouteScreenProps) => {
2828
};
2929

3030
const RouteB = () => {
31-
const router = useRouter();
31+
const router = useSheetRouter();
3232
const params = useSheetRouteParams();
3333

3434
return (

0 commit comments

Comments
 (0)