@@ -106,6 +106,7 @@ export const App = () => {
106106 const [ neutralButtonLabel , setNeutralButtonLabel ] = useState ( undefined ) ;
107107 const [ disabled , setDisabled ] = useState ( false ) ;
108108 const [ isFullscreen , setIsFullscreen ] = useState ( false ) ;
109+ const [ showYearPickerFirst , setShowYearPickerFirst ] = useState ( false ) ;
109110 const [ minimumDate , setMinimumDate ] = useState ( ) ;
110111 const [ maximumDate , setMaximumDate ] = useState ( ) ;
111112 const [ design , setDesign ] = useState ( DESIGNS [ 0 ] ) ;
@@ -386,6 +387,14 @@ export const App = () => {
386387 < Switch value = { isFullscreen } onValueChange = { setIsFullscreen } />
387388 </ View >
388389 </ View >
390+ < View style = { styles . header } >
391+ < ThemedText style = { styles . textLabel } >
392+ showYearPickerFirst (android only)
393+ </ ThemedText >
394+ < View style = { { flex : 1 , alignItems : 'flex-start' } } >
395+ < Switch value = { showYearPickerFirst } onValueChange = { setShowYearPickerFirst } />
396+ </ View >
397+ </ View >
389398 < View style = { styles . header } >
390399 < ThemedText style = { styles . textLabel } >
391400 neutralButtonLabel (android only)
@@ -501,6 +510,7 @@ export const App = () => {
501510 initialInputMode = { isMaterialDesign ? inputMode : undefined }
502511 design = { design }
503512 fullscreen = { isMaterialDesign ? isFullscreen : undefined }
513+ showYearPickerFirst = { showYearPickerFirst }
504514 />
505515 ) }
506516 </ View >
0 commit comments