Last active
May 30, 2016 16:29
-
-
Save otiai10/22765e1ede76f81da1814de7e9322f03 to your computer and use it in GitHub Desktop.
https://github.com/facebook/react-native/issues/6264, https://github.com/facebook/react-native/pull/6406, https://github.com/zo0r/react-native-push-notification/issues/56, https://github.com/facebook/react-native/issues/4049
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Libraries/Components/DatePicker/DatePickerIOS.ios.js b/Libraries/Components/DatePicker/DatePickerIOS.ios.js | |
| index 49df159..2174f4b 100644 | |
| --- a/Libraries/Components/DatePicker/DatePickerIOS.ios.js | |
| +++ b/Libraries/Components/DatePicker/DatePickerIOS.ios.js | |
| @@ -46,7 +46,7 @@ var DatePickerIOS = React.createClass({ | |
| /** | |
| * The currently selected date. | |
| */ | |
| - date: PropTypes.instanceOf(Date).isRequired, | |
| + date: PropTypes.number.isRequired, | |
| /** | |
| * Date change handler. | |
| @@ -108,7 +108,7 @@ var DatePickerIOS = React.createClass({ | |
| // prop. That way they can also disallow/undo/mutate the selection of | |
| // certain values. In other words, the embedder of this component should | |
| // be the source of truth, not the native component. | |
| - var propsTimeStamp = this.props.date.getTime(); | |
| + var propsTimeStamp = this.props.date; //.getTime(); | |
| if (this._picker && nativeTimeStamp !== propsTimeStamp) { | |
| this._picker.setNativeProps({ | |
| date: propsTimeStamp, | |
| @@ -123,7 +123,7 @@ var DatePickerIOS = React.createClass({ | |
| <RCTDatePickerIOS | |
| ref={ picker => this._picker = picker } | |
| style={styles.datePickerIOS} | |
| - date={props.date.getTime()} | |
| + date={props.date} | |
| maximumDate={ | |
| props.maximumDate ? props.maximumDate.getTime() : undefined | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment