{"action":"created","issue":{"url":"https://api.github.com/repos/BugiDev/react-native-calendar-strip/issues/120","repository_url":"https://api.github.com/repos/BugiDev/react-native-calendar-strip","labels_url":"https://api.github.com/repos/BugiDev/react-native-calendar-strip/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/BugiDev/react-native-calendar-strip/issues/120/comments","events_url":"https://api.github.com/repos/BugiDev/react-native-calendar-strip/issues/120/events","html_url":"https://github.com/BugiDev/react-native-calendar-strip/issues/120","id":386294867,"node_id":"MDU6SXNzdWUzODYyOTQ4Njc=","number":120,"title":"onDateSelected returns same date everytime","user":{"login":"LeviWilliams","id":32551245,"node_id":"MDQ6VXNlcjMyNTUxMjQ1","avatar_url":"https://avatars3.githubusercontent.com/u/32551245?v=4","gravatar_id":"","url":"https://api.github.com/users/LeviWilliams","html_url":"https://github.com/LeviWilliams","followers_url":"https://api.github.com/users/LeviWilliams/followers","following_url":"https://api.github.com/users/LeviWilliams/following{/other_user}","gists_url":"https://api.github.com/users/LeviWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/LeviWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeviWilliams/subscriptions","organizations_url":"https://api.github.com/users/LeviWilliams/orgs","repos_url":"https://api.github.com/users/LeviWilliams/repos","events_url":"https://api.github.com/users/LeviWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/LeviWilliams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-30T18:11:54Z","updated_at":"2018-12-03T14:16:30Z","closed_at":null,"author_association":"NONE","body":"I have a CalendarStrip which I want to use with a function that updates state every time the date is changed - I am trying to leverage it to display data depending on the day similar to Tabs. Each time a new date is selected  onDateSelected returns the exact same moment timestamp.\r\n\r\nExample: https://ibb.co/XDn7tPW\r\n\r\nCalendarStrip (styling props removed):\r\n\r\n```\r\n<CalendarStrip\r\n   ref={(c) => { this._calendarStrip = c; }}\r\n   onDateSelected={date => console.log(date)}\r\n   selectedDate={this.props.startDateFormatted}\r\n   minDate={this.props.startDateFormatted}\r\n   maxDate={this.props.endDateFormatted}\r\n   datesWhitelist={[{\r\n      start: this.props.startDateFormatted,\r\n      end: this.props.endDateFormatted\r\n  }]}\r\n/>\r\n```\r\n_onDateSelected:\r\n\r\n```\r\n_onDateSelected(date) {\r\n    this.setState({daySelected: date});\r\n    console.log(date);\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/BugiDev/react-native-calendar-strip/issues/comments/443724411","html_url":"https://github.com/BugiDev/react-native-calendar-strip/issues/120#issuecomment-443724411","issue_url":"https://api.github.com/repos/BugiDev/react-native-calendar-strip/issues/120","id":443724411,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzcyNDQxMQ==","user":{"login":"LeviWilliams","id":32551245,"node_id":"MDQ6VXNlcjMyNTUxMjQ1","avatar_url":"https://avatars3.githubusercontent.com/u/32551245?v=4","gravatar_id":"","url":"https://api.github.com/users/LeviWilliams","html_url":"https://github.com/LeviWilliams","followers_url":"https://api.github.com/users/LeviWilliams/followers","following_url":"https://api.github.com/users/LeviWilliams/following{/other_user}","gists_url":"https://api.github.com/users/LeviWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/LeviWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeviWilliams/subscriptions","organizations_url":"https://api.github.com/users/LeviWilliams/orgs","repos_url":"https://api.github.com/users/LeviWilliams/repos","events_url":"https://api.github.com/users/LeviWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/LeviWilliams/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T14:16:30Z","updated_at":"2018-12-03T14:16:30Z","author_association":"NONE","body":"Actually if I switch `onDateSelected={date => console.log(date)}` to `onDateSelected={date => console.log(date.valueOf())}` it works for some reason. How does that make sense?"}}
{"actor":{"display_login":"LeviWilliams"}}