Héctor Ramos
643925b41d
Fix formatting in DatePickerAndroid.open docs
...
Summary:
Lists need to be separated by a blank line from the preceding paragraph in order to render properly.
Closes https://github.com/facebook/react-native/pull/12521
Differential Revision: D4619863
Pulled By: ericvicenti
fbshipit-source-id: 4d5019af5ad66d8f4360339f007cf7f39427a945
2017-02-27 18:34:19 -08:00
Pandiarajan Nagarajan
eaccd7e82e
Android datepicker mode configurations added
...
Summary:
Currently, The **DatePickerAndroid** component opens the native date picker with default mode. We can't able to change the mode via configurations. To support android **[date-picker mode](https://developer.android.com/reference/android/widget/DatePicker.html )**, existing component needs to be changed.
**For Android >= 5.0**, The DatePickerDialog doesn't provide the default method to change the mode of a date picker. So I have added custom theme which will support two kinds of **mode('spinner','calendar')** ref:https://developer.android.com/reference/android/R.attr.html#datePickerStyle .
**For Android < 5.0,** The DatePickerDialog provides the default method to change the mode of a date picker. ref:https://developer.android.com/reference/android/widget/DatePicker.html#setCalendarViewShown(boolean) .
With the help of **Build.VERSION.SDK_INT** I have done the above functionality with limited lines of code changes and also I have added the example to UIExplorer.
Closes https://github.com/facebook/react-native/pull/10932
Differential Revision: D4176089
Pulled By: ericvicenti
fbshipit-source-id: 7dfa9101214501ac2124bda7ee273a538f04e7cf
2016-11-23 04:58:31 -08:00
David Aurelio
94666f16c7
Auto-fix lint errors
...
Reviewed By: bestander
Differential Revision: D3683952
fbshipit-source-id: 9484d0b0e86859e8edaca0da1aa13a667f200905
2016-08-09 06:43:46 -07:00
trave7er
4237a27ec9
pick up some easy-to-fix lint warnings
...
Reviewed By: svcscm
Differential Revision: D2938097
fb-gh-sync-id: e3373bd44267251d8351d5203be1c88676aa8685
shipit-source-id: e3373bd44267251d8351d5203be1c88676aa8685
2016-02-16 02:00:57 -08:00
Martin Konicek
9a0539d2c4
Open source Android date and time pickers
...
Reviewed By: bestander
Differential Revision: D2856486
fb-gh-sync-id: 0bb81136289e2f121387649765ba682103e4701b
2016-01-26 10:31:17 -08:00