Merge pull request #21523 from Oize/master

[react-native-datepicker] Add androidMode prop
This commit is contained in:
Nathan Shively-Sanders
2017-11-15 09:11:28 -08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import * as React from 'react';
export interface DatePickerProps {
mode?: 'date' | 'datetime' | 'time';
androidMode?: 'default' | 'calendar' | 'spinner';
date?: string | Date;
format?: string;
minDate?: string | Date;

View File

@@ -17,6 +17,7 @@ export default class MyDatePicker extends React.Component<{}, MyDatePickerState>
style={{width: 200}}
date={this.state.date}
mode="date"
androidMode="calendar"
placeholder="select date"
format="YYYY-MM-DD"
minDate="2016-05-01"