Docs
Platform behaviour
Components adapt to the host platform: haptics, safe areas, keyboard handling and dialogs follow iOS and Android conventions, InputPrompt uses the system prompt on iOS, and screen readers can close sheets with their escape gesture. You get platform correctness without writing platform code.
// The same sheet on iOS and Android: drag it down to dismiss it.
<BottomSheet visible={open} onClose={() => setOpen(false)}>
<BottomSheet.Header>
<Heading level={3}>Choose a plan</Heading>
</BottomSheet.Header>
<BottomSheet.Body>
<PlanList />
</BottomSheet.Body>
</BottomSheet>
Key points
- Haptics, safe areas and keyboard handling follow the conventions of each platform.
- InputPrompt opens the system prompt on iOS.
- Screen reader users can close a sheet with the escape gesture.
- The library works with Expo and is ready for the New Architecture.