Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Date/CalendarEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function CalendarEdit({
collapsed,
onChange,
validRange,
locale,
}: {
mode: ModeType
label?: string
Expand All @@ -30,6 +31,7 @@ function CalendarEdit({
collapsed: boolean
onChange: (s: LocalState) => any
validRange: ValidRangeType | undefined
locale?: undefined | string
}) {
const dateInput = React.useRef<TextInputNative | null>(null)
const startInput = React.useRef<TextInputNative | null>(null)
Expand Down Expand Up @@ -84,6 +86,7 @@ function CalendarEdit({
onChange={(date) => onChange({ ...state, date })}
onSubmitEditing={onSubmitInput}
validRange={validRange}
locale={locale}
/>
) : null}
{mode === 'range' ? (
Expand All @@ -96,6 +99,7 @@ function CalendarEdit({
returnKeyType={'next'}
onSubmitEditing={onSubmitStartInput}
validRange={validRange}
locale={locale}
/>
<View style={styles.separator} />
<CalendarInput
Expand All @@ -106,6 +110,7 @@ function CalendarEdit({
isEndDate
onSubmitEditing={onSubmitEndInput}
validRange={validRange}
locale={locale}
/>
</>
) : null}
Expand Down
2 changes: 2 additions & 0 deletions src/Date/DatePickerModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type LocalState = {

interface DatePickerModalContentBaseProps {
inputFormat?: string
locale?: undefined | string
onDismiss: () => any
disableSafeTop?: boolean
}
Expand Down Expand Up @@ -180,6 +181,7 @@ export function DatePickerModalContent(
collapsed={collapsed}
onChange={onInnerChange}
validRange={validRange}
locale={locale}
/>
}
/>
Expand Down