Skip to content

Commit

Permalink
Simplify redundant enum usage
Browse files Browse the repository at this point in the history
  • Loading branch information
latekvo committed Oct 31, 2024
1 parent ec0e598 commit 0dcf1f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/docs/components/reanimated-drawer-layout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import ReanimatedDrawerLayout from 'react-native-gesture-handler/ReanimatedDrawe

### `drawerType`

accepts values of the `DrawerPosition` enum, defaults to `DrawerPosition.FRONT`.
accepts values of the `DrawerPosition` enum, defaults to `FRONT`.
Specifies the way the drawer will be displayed.

- `DrawerPosition.FRONT` the drawer will be displayed above the content view.
- `DrawerPosition.BACK` the drawer will be displayed below the content view, revealed by sliding away the content view.
- `DrawerPosition.SLIDE` the drawer will appear attached to the content view, opening it slides both the drawer and the content view.
- `FRONT` the drawer will be displayed above the content view.
- `BACK` the drawer will be displayed below the content view, revealed by sliding away the content view.
- `SLIDE` the drawer will appear attached to the content view, opening it slides both the drawer and the content view.

| `DrawerPosition.FRONT` | `DrawerPosition.BACK` | `DrawerPosition.SLIDE` |
| `FRONT` | `BACK` | `SLIDE` |
| ------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------- |
| <img src={useBaseUrl('gifs/drawer-front.gif')} /> | <img src={useBaseUrl('gifs/drawer-back.gif')} /> | <img src={useBaseUrl('gifs/drawer-slide.gif')} /> |

Expand Down

0 comments on commit 0dcf1f4

Please sign in to comment.