Drawer takes the same props as on the web (open, onClose, side, size, title, description, footer, showClose, closeOnClickaway, flush). It slides in from one edge and floats a step in from it, clear of the notch and the home indicator. Use it for an app's menu, a set of filters or a record's details; for a short task, a Dialog bottom sheet fits better. See the web Drawer for the same component in the browser.
The drawer is always controlled: keep open in state and close it in onClose. The close button, the Android back button and a tap on the backdrop all call onClose.
side is the edge it slides from: right (the default), left, top or bottom. size is the width of a left or right drawer and the most a top or bottom one grows to: s 20rem, m 28rem, l 40rem, never wider than the screen less the inset. full covers the screen, less the inset.
flush drops the header and the padding, so the content reaches the edges, for media or a list. The close button floats in the corner; showClose={false} hides it.
- Focus props (initialFocusRef, returnFocusRef) are left out: React Native moves the screen reader into the drawer on its own.
- It slides in over 240ms, and appears at once when the device's reduce-motion setting is on.
- The Android back button closes it.