Skip to content

Commit c54e54b

Browse files
add showYearPickerFirst option to example.
1 parent 0db1867 commit c54e54b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

example/App.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export const App = () => {
107107
const [neutralButtonLabel, setNeutralButtonLabel] = useState(undefined);
108108
const [disabled, setDisabled] = useState(false);
109109
const [isFullscreen, setIsFullscreen] = useState(false);
110+
const [showYearPickerFirst, setShowYearPickerFirst] = useState(false);
110111
const [minimumDate, setMinimumDate] = useState();
111112
const [maximumDate, setMaximumDate] = useState();
112113
const [design, setDesign] = useState(DESIGNS[0]);
@@ -387,6 +388,14 @@ export const App = () => {
387388
<Switch value={isFullscreen} onValueChange={setIsFullscreen} />
388389
</View>
389390
</View>
391+
<View style={styles.header}>
392+
<ThemedText style={styles.textLabel}>
393+
showYearPickerFirst (android only)
394+
</ThemedText>
395+
<View style={{flex: 1, alignItems: 'flex-start'}}>
396+
<Switch value={showYearPickerFirst} onValueChange={setShowYearPickerFirst} />
397+
</View>
398+
</View>
390399
<View style={styles.header}>
391400
<ThemedText style={styles.textLabel}>
392401
neutralButtonLabel (android only)
@@ -520,6 +529,7 @@ export const App = () => {
520529
initialInputMode={isMaterialDesign ? inputMode : undefined}
521530
design={design}
522531
fullscreen={isMaterialDesign ? isFullscreen : undefined}
532+
showYearPickerFirst={showYearPickerFirst}
523533
/>
524534
)}
525535
</View>

0 commit comments

Comments
 (0)