Skip to content

Commit

Permalink
fix incomplete sentence in DatePickerAndroid docs (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
FLGMwt authored and hramos committed Nov 2, 2018
1 parent 3d029de commit ac3f805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/datepickerandroid.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The available keys for the `options` object are:
* 'spinner': Show a date picker in spinner mode.
* 'default': Show a default native date picker(spinner/calendar) based on android versions.

Returns a Promise which will be invoked an object containing `action`, `year`, `month` (0-11), `day` if the user picked a date. If the user dismissed the dialog, the Promise will still be resolved with action being `DatePickerAndroid.dismissedAction` and all the other keys being undefined. **Always** check whether the `action` before reading the values.
Returns a Promise which will be invoked an object containing `action`, `year`, `month` (0-11), `day` if the user picked a date. If the user dismissed the dialog, the Promise will still be resolved with action being `DatePickerAndroid.dismissedAction` and all the other keys being undefined. **Always** check whether the `action` is equal to `DatePickerAndroid.dateSetAction` before reading the values.

Note the native date picker dialog has some UI glitches on Android 4 and lower when using the `minDate` and `maxDate` options.

Expand Down

0 comments on commit ac3f805

Please sign in to comment.