Skip to content

Commit 9c58986

Browse files
committed
Fix typos
1 parent e1af85b commit 9c58986

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

versioned_docs/version-6.x/multiple-drawers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const LeftDrawerScreen = () => {
4040
};
4141

4242
function RightDrawerScreen() {
43-
const [letDrawerOpen, setLeftDrawerOpen] = React.useState(false);
43+
const [rightDrawerOpen, setRightDrawerOpen] = React.useState(false);
4444

4545
return (
4646
<Drawer
@@ -101,7 +101,7 @@ const LeftDrawerScreen = () => {
101101
};
102102

103103
function RightDrawerScreen() {
104-
const [letDrawerOpen, setLeftDrawerOpen] = React.useState(false);
104+
const [rightDrawerOpen, setRightDrawerOpen] = React.useState(false);
105105

106106
const value = React.useMemo(
107107
() => ({
@@ -281,5 +281,5 @@ Here, we are passing `"LeftDrawer"` and `"RightDrawer"` strings (you can use any
281281

282282
- To have multiple drawers, you can use [`react-native-drawer-layout`](drawer-layout.md) directly in combination with a drawer navigator.
283283
- The [`drawerPosition`](drawer-layout.md#drawerposition) prop can be used to position the drawer on the right.
284-
- The methods to control the drawer can be passed down using context API.
284+
- The methods to control the drawer can be passed down using context API when using [`react-native-drawer-layout`](drawer-layout.md).
285285
- When nesting multiple navigators, you can use [`navigation.getParent`](navigation-prop.md#getparent) in combination with the [`id` prop](drawer-navigator.md#id) to refer to the desired drawer.

versioned_docs/version-7.x/multiple-drawers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const LeftDrawerScreen = () => {
4040
};
4141

4242
function RightDrawerScreen() {
43-
const [letDrawerOpen, setLeftDrawerOpen] = React.useState(false);
43+
const [rightDrawerOpen, setRightDrawerOpen] = React.useState(false);
4444

4545
return (
4646
<Drawer
@@ -101,7 +101,7 @@ const LeftDrawerScreen = () => {
101101
};
102102

103103
function RightDrawerScreen() {
104-
const [letDrawerOpen, setLeftDrawerOpen] = React.useState(false);
104+
const [rightDrawerOpen, setRightDrawerOpen] = React.useState(false);
105105

106106
const value = React.useMemo(
107107
() => ({

0 commit comments

Comments
 (0)