@codeleap/mobile 3.23.4 → 3.23.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "3.23.4",
3
+ "version": "3.23.5",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -123,6 +123,7 @@ export const DatePickerModal = (props: DatePickerModalProps) => {
123
123
  style,
124
124
  minimumDate,
125
125
  maximumDate,
126
+ initialDate,
126
127
  footerComponent,
127
128
  toggleOnConfirm,
128
129
  onConfirm: _onConfirm,
@@ -220,7 +221,7 @@ export const DatePickerModal = (props: DatePickerModalProps) => {
220
221
  modal={!isCustomModal}
221
222
  open={visible}
222
223
  onCancel={toggle}
223
- date={value ?? new Date()}
224
+ date={value ?? initialDate ?? new Date()}
224
225
  onDateChange={(date) => {
225
226
  if (commitDate === 'onChange') {
226
227
  setValue(date)
@@ -56,6 +56,8 @@ export type DatePickerModalProps = Omit<ModalProps, 'styles' | 'variants' | 'ref
56
56
 
57
57
  maximumDate?: DatePickerProps['maximumDate']
58
58
 
59
+ initialDate?: Date
60
+
59
61
  toggleOnConfirm?: boolean
60
62
 
61
63
  onConfirm?: (value: Date) => void