Skip to content

Commit 893b8b8

Browse files
committed
docs: validRange in example
1 parent 1b5da06 commit 893b8b8

File tree

2 files changed

+12230
-12630
lines changed

2 files changed

+12230
-12630
lines changed

example/src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function App({
245245
{dates
246246
?.map((date) => date && dateFormatter.format(date))
247247
.filter(Boolean)
248-
.join(', ')}
248+
.join(', ') ?? '-'}
249249
</Text>
250250
</Row>
251251
</View>
@@ -376,6 +376,9 @@ function App({
376376
visible={multiOpen}
377377
onDismiss={onDismissMulti}
378378
dates={dates}
379+
validRange={{
380+
startDate: new Date(),
381+
}}
379382
onConfirm={onChangeMulti}
380383
// moreLabel="more" // optional, if multiple are selected this will show if we can't show all dates
381384
// onChange={onChangeMulti}

0 commit comments

Comments
 (0)