# Time Picker — React Native component for Expo

> A time picker as 3D wheel drums, a draggable clock dial or bookable time chips.

Time input in three styles: iOS-style wheel drums whose rows tilt, shrink and fade past an inset selection band (scroll-driven on the native driver, momentum snapping, tap a row to jump); a Material 3-style clock face with a big hh : mm header, AM / PM toggle and a hand you drag anywhere on the dial — it snaps to hours, then crossfades to minutes; or a grid of bookable time chips with struck-through booked slots and Morning / Afternoon / Evening groups. Render any of them inline or as a floating-label field that opens it in a drag-to-dismiss sheet.

- Docs: https://expokit.in/docs/components/time-picker
- Tier: Free
- Also called: time picker, wheel time picker, clock picker
- Category: Inputs
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg
- Uses ExpoKit items: kit
- Variants: Alarm, Clock, Appointment, Reminder, In Sheet, Clock In Sheet

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add time-picker
```

The CLI copies the source into your project (you own the code) and installs react-native-svg.

Import: `import { TimePicker } from "@/components/ui/time-picker";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `{ hours, minutes } \| null` | — | Controlled 24-hour time. |
| `defaultValue` | `{ hours, minutes } \| null` | `null` | Initial time when uncontrolled. |
| `onChange` | `(time: TimeValue) => void` | — | Called when a wheel settles, the clock hand snaps or a chip is picked (or on Set when staged). |
| `variant` | `'wheel' \| 'chips' \| 'clock'` | `'wheel'` | 3D wheel drums, a grid of time slots, or an analog dial (24-hour mode adds an inner 13–00 ring). |
| `presentation` | `'inline' \| 'sheet'` | `'inline'` | Render in place, or as a field that opens a bottom sheet. |
| `hour12` | `boolean` | `from locale` | 12-hour clock: an AM / PM column on the wheel, an AM / PM toggle on the clock. |
| `minuteInterval` | `number` | `1 (wheel, clock) · 30 (chips)` | Minute step for the wheel and the clock hand (the dial labels every 5); slot spacing for chips. |
| `locale` | `string` | `device` | Used to pick 12h / 24h when hour12 is not set. |
| `startTime` | `'HH:mm' \| TimeValue` | `'09:00'` | Chips: first slot. |
| `endTime` | `'HH:mm' \| TimeValue` | `'17:00'` | Chips: closing time (exclusive). |
| `slots` | `('HH:mm' \| TimeValue)[]` | — | Chips: explicit slot list instead of start / end / interval. |
| `bookedTimes` | `('HH:mm' \| TimeValue)[]` | — | Chips: taken slots, struck through and not selectable. |
| `disabledTimes` | `('HH:mm' \| TimeValue)[]` | — | Chips: slots unavailable for another reason (faded). |
| `columns` | `number` | `3` | Chips per row. |
| `groupByPeriod` | `boolean` | `false` | Chips: Morning / Afternoon / Evening headings with an open-slot count. |
| `label` | `string` | `labels.time` | Sheet: field label. |
| `floatingLabel` | `boolean` | `true` | Sheet: set to false to put the label above the field as static text (no notch) and show placeholder inside. |
| `title` | `string` | `label` | Sheet: heading. |
| `placeholder` | `string` | `labels.selectTime` | Sheet: shown while nothing is picked. |
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Sheet: field height and type size. |
| `confirm` | `boolean` | `true for wheel and clock` | Sheet: stage the choice behind Cancel / Set; chips otherwise close on pick. |
| `error` | `string` | — | Sheet: red border, icon message and a shake. |
| `success` | `boolean \| string` | — | Sheet: success border and check; a string is shown under the field. |
| `helper` | `string` | — | Sheet: hint under the field. |
| `disabled` | `boolean` | `false` | Sheet: dims the field and blocks opening. |
| `accent` | `string` | `theme accent` | Selection band, clock hand and active segment, focus and halo colour. |
| `surface` | `string` | `theme background` | Sheet: background behind the field (label notch). |
| `style` | `StyleProp<ViewStyle>` | — | Style for the wheel, clock, slot grid or field wrapper, depending on variant and presentation. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |
| `fieldStyle` | `StyleProp<ViewStyle>` | — | Sheet: the trigger box — background, border, radius, height, padding. Wins over the computed style; a borderColor replaces the resting border only (open, error and success colours still show). A numeric height / borderRadius re-centres the label and resizes the halo. |
| `inputStyle` | `StyleProp<TextStyle>` | — | Sheet: the formatted time text in the trigger. |
| `labelStyle` | `StyleProp<TextStyle>` | — | Sheet: label in both modes. color is the resting colour — open (accent), error and success still take over; fontSize sets the resting size, it floats at the same ratio and the notch follows its width. |
| `messageStyle` | `StyleProp<TextStyle>` | — | Sheet: helper / error / success text. color applies to the helper; error and success keep their tone colour. |
| `placeholderTextColor` | `string` | `theme mutedForeground` | Sheet: placeholder colour in the trigger. |
| `iconColor` | `string` | `theme mutedForeground` | Sheet: clock icon colour at rest (accent while open). |
| `menuStyle` | `StyleProp<ViewStyle>` | — | Sheet: the sheet / dialog panel — background, border, radius, padding, shadow (transform and opacity are animated). |

## Behaviour & accessibility

- **Touch**: Wheel drums snap with momentum and a tapped row jumps into the band. On the clock, drag the hand anywhere on the dial; it snaps to hours, then moves on to minutes when you let go.
- **Motion**: Wheel rows tilt, shrink and fade past the selection band, driven by scroll on the native driver; the clock header crossfades between hours and minutes.
- **Screen readers**: Each wheel column and the clock dial are adjustable with increment / decrement actions; AM / PM and the time chips are radio groups, with booked or unavailable slots named. The sheet field is a button with expanded state.

## FAQ

### How do I make a time picker in React Native?

Use ExpoKit's Time Picker: run npx @expokit/cli@latest add time-picker in your Expo or React Native project and it copies a ready-made time picker into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Time Picker work in Expo Go?

Yes. Time Picker runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.

### How do I add Time Picker to my Expo app?

Run npx @expokit/cli@latest add time-picker in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.

### Is Time Picker free?

Yes. Time Picker is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Time Picker looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/components/time-picker
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
