You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -369,17 +369,19 @@ The following custom styles can be supplied to re-style the component in any way
369
369
| theme | Theme of the component | "light" \| "dark" |
370
370
| backgroundColor | Main background color | string |
371
371
| text | Base text style | TextStyle |
372
-
| pickerContainer | Main container for the picker | ViewStyle |
372
+
| pickerContainer | Main container for the picker | ViewStyle & { backgroundColor?: string } |
373
373
| pickerLabelContainer | Container for the picker's labels | ViewStyle |
374
374
| pickerLabel | Style for the picker's labels | TextStyle |
375
375
| pickerAmPmContainer | Style for the picker's labels | ViewStyle |
376
376
| pickerAmPmLabel | Style for the picker's labels | TextStyle |
377
-
| pickerItemContainer | Container for each number in the picker | ViewStyle |
377
+
| pickerItemContainer | Container for each number in the picker | ViewStyle & { height?: number } |
378
378
| pickerItem | Style for each individual picker number | TextStyle |
379
379
| disabledPickerItem | Style for any numbers outside any set limits | TextStyle |
380
380
| disabledPickerContainer | Style for disabled pickers | ViewStyle |
381
381
| pickerGradientOverlay | Style for the gradient overlay (fade out) | ViewStyle |
382
382
383
+
Note the minor limitations to the allowed styles for `pickerContainer` and `pickerItemContainer`. These are made because these styles are used for internal calculations and all possible `backgroundColor`/`height` types are not supported.
384
+
383
385
### TimerPickerModal ⏰
384
386
385
387
The TimerPickerModal component accepts all [TimerPicker props](#timerpicker-️), and the below additional props.
0 commit comments