xgfe / react-native-datepicker

react native datePicker component for both Android and IOS, useing DatePikcerAndroid, TimePickerAndroid and DatePickerIOS
MIT License
2.12k stars 726 forks source link

How to adjust the overall height? #336

Open majiabin opened 5 years ago

majiabin commented 5 years ago
        <DatePicker
                                                customStyles={{
                                                        dateInput: {
                                                            borderWidth:1,
                                                        }
                                                }}
                                                hideText={false}
                                                androidMode='spinner'
                                                showIcon={false}
                                                style={{ backgroundColor:'red'}}
                                                date={this.state.startTime}
                                                mode="datetime"
                                                placeholder=""
                                                format="YYYY-MM-DD HH:mm"
                                                minDate="2010-01-01"
                                                maxDate="2016-06-01"
                                                confirmBtnText="Confirm"
                                                cancelBtnText="Cancel"
                                                onDateChange={(date) => {this.setState({startTime: date})}}
                                        />