react-native-datetimepicker / datetimepicker

React Native date & time picker component for iOS, Android and Windows
MIT License
2.51k stars 405 forks source link

Is there a placeholder property? #164

Closed ahmedsu closed 4 years ago

ahmedsu commented 4 years ago

Question

Is there an option for a placeholder? Instead of showing default value, we should be able to show something like dd/mm/yyyy which means the date is empty and you need to fill it.

vonovak commented 4 years ago

hello and thanks for the question. We do not provide such component because this out of the scope of this library. We provide functionality from UIDatePicker on iOS and DatePickerDialog + TimePickerDialog on Android.

see this note: https://github.com/react-native-community/datetimepicker#props

However, you can build such component yourself. Thanks!