Skip to content

[pull] master from xgfe:master #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8608531
Added an option to disable the Date Text and update the README
avencat May 22, 2017
0a9feaf
Add the ability to pass a custom TouchableComponent
avencat May 22, 2017
0b20885
Merge branch 'master' into hideDateText
avencat May 24, 2017
317fd06
Adding testIDs to elements
AidenMontgomery Jun 10, 2017
2a79f45
Add prop-types package for React versions at 15.5 or greater, Update …
jrzimmerman Jun 10, 2017
d9f76d7
Merge pull request #138 from ConstructiveCoding/master
feyy Jun 12, 2017
7c75cb0
Merge pull request #127 from avencat/hideDateText
feyy Jun 12, 2017
17ca170
Merge pull request #139 from jrzimmerman/master
feyy Jun 12, 2017
3762e71
Merge pull request #128 from avencat/customTouchableComponent
feyy Jun 12, 2017
05ea752
style(datepicker): fix code style
feyy Jun 12, 2017
44c8ec6
publish package
feyy Jun 12, 2017
98fec46
Avoid overwriting user-set ignored warnings
kashav Jul 9, 2017
ede5723
delete android build files
feyy Jul 13, 2017
7d727c0
Merge pull request #147 from chapsule/patch/ignored-warnings
feyy Jul 13, 2017
5e7c0ad
Allow Moments to be passed in
tomasreimers Jul 26, 2017
8dc6e10
Merge pull request #153 from tomasreimers/patch-1
feyy Aug 23, 2017
43b8cfb
chore(issue): add issue template
feyy Aug 23, 2017
b408d80
change number to object for customStyles in the documentation
costagolub Sep 28, 2017
c57aece
build(datepicker): upgrade react-native to 0.49 and switch to Jest
feyy Oct 18, 2017
7450bba
fix(datepicker): fix warns when pass moment instance to date prop
feyy Oct 18, 2017
58ed2b1
ci(node): upgrade node to 6
feyy Oct 18, 2017
5e42ef3
Addded support for the option to allow or disallow fontscaling to all…
matuszeg Oct 20, 2017
b0eb48f
Adding the prop allowFontScaling
matuszeg Oct 23, 2017
aff0983
if timezoneOffset is undefined, pass null to the iOS dateTime picker.…
andrew-bednarz-isobar Dec 13, 2017
905dfbd
feat: add `getDateStr` prop to customize display outside moment format
blackxored Jan 5, 2018
60e3887
feat: pass `locale` to native control if given
blackxored Jan 5, 2018
3f42107
fix when mode === 'time', androidMode not works~
believeZJP Jan 15, 2018
3532047
Fix button not showing on react-native 0.54 and newer
brunolemos Mar 20, 2018
b6a6e04
Merge pull request #228 from brunolemos/patch-1
feyy Apr 8, 2018
6abd935
Merge pull request #204 from believeZJP/patch-1
feyy Apr 8, 2018
bcb90cd
Merge pull request #201 from blackxored/feat/get-date-str-and-i18n
feyy Apr 8, 2018
ec9fd7a
Merge pull request #194 from bed42/master
feyy Apr 8, 2018
3381063
Merge branch 'master' into master
feyy Apr 8, 2018
2651c78
Merge pull request #180 from matuszeg/master
feyy Apr 8, 2018
f3b7e68
Merge pull request #172 from costagolub/master
feyy Apr 8, 2018
5377499
feat(datepicker): merge some PR for bugs
feyy Apr 8, 2018
09847cc
generate changelog
feyy Apr 8, 2018
19a9f07
Use moment with locales
tbergquist-godaddy Apr 12, 2018
251ade7
Fix crash in release mode.
Apr 18, 2018
fe5885d
Merge pull request #238 from Dallas62/patch-1
feyy Apr 22, 2018
3863386
Merge branch 'master' into moment-with-locales
feyy Apr 22, 2018
5975648
Merge pull request #234 from tbergq/moment-with-locales
feyy Apr 22, 2018
d9d243b
Revert "Use moment with locales"
feyy Apr 22, 2018
05c2f30
Merge pull request #240 from xgfe/revert-234-moment-with-locales
feyy Apr 22, 2018
dc29a09
fix(datepicker): fix androidMode enum not support 'clock' bug
feyy Apr 8, 2018
2a209bd
release v1.7.2
feyy Apr 22, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### Issue


### Expected Behavior


### Code

```javascript

```

### Environment

1. `react-native -v`:
2. `node -v`:
3. `npm -v`:
4. `yarn --version`<!-- (if you use Yarn) -->:
5. `target platform`: Android | iOS
6. `operating system`:

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ node_modules
# Optional REPL history
.node_repl_history

android/app/build/outputs/apk
android/app/build/
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
example
.*
coverage
index.android.js
index.ios.js
index.js
android/
ios/
google_calendar.png
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
sudo: true
node_js:
- "4.4"
- "6"
cache:
directories:
- node_modules
Expand Down
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
<a name="1.7.2"></a>
## [1.7.2](https://github.com/xgfe/react-native-datepicker/compare/v1.7.0...v1.7.2) (2018-04-22)


### Bug Fixes

* **datepicker:** fix androidMode enum not support 'clock' bug ([dc29a09](https://github.com/xgfe/react-native-datepicker/commit/dc29a09))



<a name="1.7.0"></a>
# [1.7.0](https://github.com/xgfe/react-native-datepicker/compare/v1.6.0...v1.7.0) (2018-04-08)


### Bug Fixes

* **datepicker:** fix warns when pass moment instance to date prop ([7450bba](https://github.com/xgfe/react-native-datepicker/commit/7450bba)), closes [#166](https://github.com/xgfe/react-native-datepicker/issues/166)


### Features

* **datepicker:** add `getDateStr` prop to customize display outside moment format ([905dfbd](https://github.com/xgfe/react-native-datepicker/commit/905dfbd))
* **datepicker:** pass `locale` to native control if given ([60e3887](https://github.com/xgfe/react-native-datepicker/commit/60e3887))
* **datepicker:** merge some PR for bugs ([5377499](https://github.com/xgfe/react-native-datepicker/commit/5377499))



<a name="1.6.0"></a>
# [1.6.0](https://github.com/xgfe/react-native-datepicker/compare/v1.5.1...v1.6.0) (2017-06-12)

### Features

* **datepicker:** adding testIds to elements ([#138](https://github.com/xgfe/react-native-datepicker/issues/138)
* **datepicker:** add `hideText` property to hide the Date Text ([#127](https://github.com/xgfe/react-native-datepicker/issues/127)
* **datepicker:** add `TouchableComponent` property to support custom touchable components ([#128](https://github.com/xgfe/react-native-datepicker/issues/128)


<a name="1.5.1"></a>
## [1.5.1](https://github.com/xgfe/react-native-datepicker/compare/v1.5.0...v1.5.1) (2017-05-16)

Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# react-native-datepicker [![Build Status](https://travis-ci.org/xgfe/react-native-datepicker.svg?branch=master)](https://travis-ci.org/xgfe/react-native-datepicker) [![Coverage Status](https://coveralls.io/repos/github/xgfe/react-native-datepicker/badge.svg?branch=master)](https://coveralls.io/github/xgfe/react-native-datepicker?branch=master) [![Monthly download](https://img.shields.io/npm/dm/react-native-datepicker.svg)](https://img.shields.io/npm/dm/react-native-datepicker.svg) [![Total downloads](https://img.shields.io/npm/dt/react-native-datepicker.svg)](https://img.shields.io/npm/dt/react-native-datepicker.svg)
react native datePicker component for both Android and IOS, using DatePickerAndroid, TimePickerAndroid and DatePickerIOS
React Native DatePicker component for both Android and iOS, using DatePickerAndroid, TimePickerAndroid and DatePickerIOS

## Install

Expand Down Expand Up @@ -70,7 +70,7 @@ You can check [index.js](https://github.com/xgfe/react-native-datepicker/blob/ma
| Prop | Default | Type | Description |
| :------------ |:---------------:| :---------------:| :-----|
| style | - | `object` | Specify the style of the DatePicker, eg. width, height... |
| date | - | <code>string &#124; date</code> | Specify the display date of DatePicker. `string` type value must match the specified format |
| date | - | <code>string &#124; date &#124; Moment instance</code> | Specify the display date of DatePicker. `string` type value must match the specified format |
| mode | 'date' | `enum` | The `enum` of `date`, `datetime` and `time` |
| androidMode | 'default' | `enum` | The `enum` of `default`, `calendar` and `spinner` (only Android) |
| format | 'YYYY-MM-DD' | `string` | Specify the display format of the date, which using [moment.js](http://momentjs.com/). The default value change according to the mode. |
Expand All @@ -80,17 +80,21 @@ You can check [index.js](https://github.com/xgfe/react-native-datepicker/blob/ma
| minDate | - | <code>string &#124; date</code> | Restricts the range of possible date values. |
| maxDate | - | <code>string &#124; date</code> | Restricts the range of possible date values. |
| duration | 300 | `number` | Specify the animation duration of datepicker.|
| customStyles | - | `number` | The hook of customize datepicker style, same as the native style. `dateTouchBody`, `dateInput`...|
| customStyles | - | `object` | The hook of customize datepicker style, same as the native style. `dateTouchBody`, `dateInput`...|
| showIcon | true | `boolean` | Controller whether or not show the icon |
| hideText | false | `boolean` | Controller whether or not show the `dateText` |
| iconComponent | - | `element` | Set the custom icon |
| disabled | false | `boolean` | Controller whether or not disable the picker |
| is24Hour | - | `boolean` | Set the TimePicker is24Hour flag. The default value depend on `format`. Only work in Android |
| allowFontScaling | true | `boolean` | Set to false to disable font scaling for every text component |
| placeholder | '' | `string` | The placeholder show when this.props.date is falsy |
| onDateChange | - | `function` | This is called when the user confirm the picked date or time in the UI. The first and only argument is a date or time string representing the new date and time formatted by [moment.js](http://momentjs.com/) with the given format property. |
| onOpenModal | - | `function` | This is called when the DatePicker Modal open. |
| onCloseModal | - | `function` | This is called when the DatePicker Modal close |
| onPressMask | - | `function` | This is called when clicking the ios modal mask |
| modalOnResponderTerminationRequest | - | `function` | Set the callback for React Native's [Gesture Responder System](https://facebook.github.io/react-native/docs/gesture-responder-system.html#responder-lifecycle)'s call to `onResponderTerminationRequest`. By default this will reject a termination request, but can be overidden in case the View under the Modal is implementing custom gesture responders, and you wish for those to be overidden in certain cases. |
| TouchableComponent | `TouchableHighlight` | `Component` | Replace the `TouchableHighlight` with a custom `Component`. For example : `TouchableOpacity` |
| getDateStr | - | Function | A function to override how to format the date into a `String` for display, receives a `Date` instance

### Property `customStyles` available keys

Expand Down
Loading