File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ export default function PlaygroundScreen() {
3434 current = { INITIAL_DATE }
3535 style = { styles . calendar }
3636 horizontal
37+ pagingEnabled
38+ staticHeader
3739 />
3840 ) ;
3941 } ;
Original file line number Diff line number Diff line change @@ -308,6 +308,3 @@ Calendar.propTypes = {
308308 customHeader : PropTypes . any ,
309309 allowSelectionOutOfRange : PropTypes . bool
310310} ;
311- Calendar . defaultProps = {
312- enableSwipeMonths : false
313- } ;
Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ import React from 'react';
22import { measurePerformance } from 'reassure' ;
33import { Calendar , CalendarList } from '../../index' ;
44
5+ const INITIAL_DATE = '2022-07-07' ;
6+
57describe ( 'Playground testing' , ( ) => {
68 const TestCase = ( ) => {
7- return < Calendar /> ;
9+ return < Calendar current = { INITIAL_DATE } /> ;
810 } ;
911 const TestCaseList = ( ) => {
10- return < CalendarList /> ;
12+ return < CalendarList current = { INITIAL_DATE } /> ;
1113 } ;
1214
1315 it ( 'calendar' , async ( ) => {
You can’t perform that action at this time.
0 commit comments