Skip to content

Commit 93d0abc

Browse files
committed
📝 add note to README about minor limitations to style types
1 parent a0b1259 commit 93d0abc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,17 +369,19 @@ The following custom styles can be supplied to re-style the component in any way
369369
| theme | Theme of the component | "light" \| "dark" |
370370
| backgroundColor | Main background color | string |
371371
| text | Base text style | TextStyle |
372-
| pickerContainer | Main container for the picker | ViewStyle |
372+
| pickerContainer | Main container for the picker | ViewStyle & { backgroundColor?: string } |
373373
| pickerLabelContainer | Container for the picker's labels | ViewStyle |
374374
| pickerLabel | Style for the picker's labels | TextStyle |
375375
| pickerAmPmContainer | Style for the picker's labels | ViewStyle |
376376
| 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 } |
378378
| pickerItem | Style for each individual picker number | TextStyle |
379379
| disabledPickerItem | Style for any numbers outside any set limits | TextStyle |
380380
| disabledPickerContainer | Style for disabled pickers | ViewStyle |
381381
| pickerGradientOverlay | Style for the gradient overlay (fade out) | ViewStyle |
382382

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+
383385
### TimerPickerModal ⏰
384386

385387
The TimerPickerModal component accepts all [TimerPicker props](#timerpicker-️), and the below additional props.

0 commit comments

Comments
 (0)