mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 Merge PR #64549 [react-native-calendar-picker] Add initialView prop to CalendarPickerProps (v7.1.4) by @dmarcucci
* Add new initialView prop for react-native-calendar-picker * Add new test for initialView prop
This commit is contained in:
@@ -70,6 +70,7 @@ export interface CalendarPickerProps {
|
||||
monthTitleStyle?: StyleProp<TextStyle> | undefined;
|
||||
yearTitleStyle?: StyleProp<TextStyle> | undefined;
|
||||
customDayHeaderStyles?: CustomDayHeaderStylesFunc | undefined;
|
||||
initialView?: 'years' | 'months' | 'days' | undefined;
|
||||
}
|
||||
|
||||
export type DayOfWeekStyle = {
|
||||
|
||||
@@ -192,3 +192,14 @@ const TestDayOfWeekStyles = () => {
|
||||
const TestCustomComponents = () => {
|
||||
return <CalendarPicker nextComponent={<View></View>} previousComponent={[<TextInput />]} />;
|
||||
};
|
||||
|
||||
const TestInitialViewValues = () => {
|
||||
return (
|
||||
<>
|
||||
<CalendarPicker initialView={"days"} />
|
||||
<CalendarPicker initialView={"months"} />
|
||||
<CalendarPicker initialView={"years"} />
|
||||
<CalendarPicker initialView={undefined} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user