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
| hourLimit | Limit on the hours it is possible to select | { max?: Number, min?: Number } | - | false |
345
-
| minuteLimit | Limit on the minutes it is possible to select | { max?: Number, min?: Number } | - | false |
346
-
| secondLimit | Limit on the seconds it is possible to select | { max?: Number, min?: Number } | - | false |
343
+
| hourLimit | Limit on the hours it is possible to select |`{ max?: Number, min?: Number }`| - | false |
344
+
| minuteLimit | Limit on the minutes it is possible to select |`{ max?: Number, min?: Number }`| - | false |
345
+
| secondLimit | Limit on the seconds it is possible to select |`{ max?: Number, min?: Number }`| - | false |
347
346
| hourLabel | Label for the hours picker | String \| React.ReactElement | h | false |
348
347
| minuteLabel | Label for the minutes picker | String \| React.ReactElement | m | false |
349
348
| secondLabel | Label for the seconds picker | String \| React.ReactElement | s | false |
@@ -370,17 +369,19 @@ The following custom styles can be supplied to re-style the component in any way
370
369
| theme | Theme of the component | "light" \| "dark" |
371
370
| backgroundColor | Main background color | string |
372
371
| text | Base text style | TextStyle |
373
-
| pickerContainer | Main container for the picker | ViewStyle |
372
+
| pickerContainer | Main container for the picker | ViewStyle & { backgroundColor?: string } |
374
373
| pickerLabelContainer | Container for the picker's labels | ViewStyle |
375
374
| pickerLabel | Style for the picker's labels | TextStyle |
376
375
| pickerAmPmContainer | Style for the picker's labels | ViewStyle |
377
376
| pickerAmPmLabel | Style for the picker's labels | TextStyle |
378
-
| pickerItemContainer | Container for each number in the picker | ViewStyle |
377
+
| pickerItemContainer | Container for each number in the picker | ViewStyle & { height?: number } |
379
378
| pickerItem | Style for each individual picker number | TextStyle |
380
379
| disabledPickerItem | Style for any numbers outside any set limits | TextStyle |
381
380
| disabledPickerContainer | Style for disabled pickers | ViewStyle |
382
381
| pickerGradientOverlay | Style for the gradient overlay (fade out) | ViewStyle |
383
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
+
384
385
### TimerPickerModal ⏰
385
386
386
387
The TimerPickerModal component accepts all [TimerPicker props](#timerpicker-️), and the below additional props.
@@ -486,6 +487,12 @@ There are two permenant branches: `main` and `develop`. You should never work di
486
487
487
488
<br>
488
489
490
+
## Limitations ⚠
491
+
492
+
Nesting the `TimerPicker` component inside a vertical ScrollView is not supported. React Native will throw an error and the picker will not be scrollable. The modal component works fine in this scenario however.
493
+
494
+
<br>
495
+
489
496
## License 📝
490
497
491
498
This project is licensed under the [MIT License](LICENSE).
0 commit comments