File tree Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ function CalendarEdit({
2424 validRange,
2525 locale,
2626 inputEnabled,
27+ withDateFormatInLabel,
2728} : {
2829 mode : ModeType
2930 label ?: string
@@ -35,6 +36,7 @@ function CalendarEdit({
3536 validRange : ValidRangeType | undefined
3637 locale : string
3738 inputEnabled ?: boolean
39+ withDateFormatInLabel ?: boolean
3840} ) {
3941 const dateInput = useRef < TextInputNative | null > ( null )
4042 const startInput = useRef < TextInputNative | null > ( null )
@@ -93,6 +95,7 @@ function CalendarEdit({
9395 withModal = { false }
9496 autoComplete = { 'off' }
9597 inputEnabled = { inputEnabled }
98+ withDateFormatInLabel = { withDateFormatInLabel }
9699 />
97100 ) : null }
98101 { mode === 'range' ? (
@@ -110,6 +113,7 @@ function CalendarEdit({
110113 withModal = { false }
111114 autoComplete = { 'off' }
112115 inputEnabled = { inputEnabled }
116+ withDateFormatInLabel = { withDateFormatInLabel }
113117 />
114118 < View style = { styles . separator } />
115119 < DatePickerInputWithoutModal
@@ -124,6 +128,7 @@ function CalendarEdit({
124128 withModal = { false }
125129 autoComplete = "off"
126130 inputEnabled = { inputEnabled }
131+ withDateFormatInLabel = { withDateFormatInLabel }
127132 />
128133 </ View >
129134 ) : null }
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ function DatePickerInput(
8787 presentationStyle = { presentationStyle }
8888 label = { rest . label as any }
8989 startWeekOnMonday = { startWeekOnMonday }
90+ withDateFormatInLabel = { rest . withDateFormatInLabel }
9091 />
9192 ) : null
9293 }
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ export function DatePickerModal(
101101 disableSafeTop = { disableStatusBarPadding }
102102 disableStatusBar = { disableStatusBar }
103103 statusBarOnTopOfBackdrop = { isPageSheet || statusBarOnTopOfBackdrop }
104+ withDateFormatInLabel = { props . withDateFormatInLabel }
104105 />
105106 </ View >
106107 </ View >
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ export function DatePickerModalContent(
212212 validRange = { validRange }
213213 locale = { locale }
214214 inputEnabled = { props . inputEnabled }
215+ withDateFormatInLabel = { props . withDateFormatInLabel }
215216 />
216217 }
217218 />
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export interface HeaderPickProps {
1212 moreLabel ?: string
1313 label ?: string
1414 emptyLabel ?: string
15+ withDateFormatInLabel ?: boolean
1516 saveLabel ?: string
1617 uppercase ?: boolean
1718 headerSeparator ?: string
You can’t perform that action at this time.
0 commit comments