{"action":"created","issue":{"url":"https://api.github.com/repos/christopherdro/react-native-calendar/issues/16","repository_url":"https://api.github.com/repos/christopherdro/react-native-calendar","labels_url":"https://api.github.com/repos/christopherdro/react-native-calendar/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/christopherdro/react-native-calendar/issues/16/comments","events_url":"https://api.github.com/repos/christopherdro/react-native-calendar/issues/16/events","html_url":"https://github.com/christopherdro/react-native-calendar/pull/16","id":113968535,"number":16,"title":"onDateIsEnabled callback to determine if date is selectable","user":{"login":"aforty","id":523683,"avatar_url":"https://avatars.githubusercontent.com/u/523683?v=3","gravatar_id":"","url":"https://api.github.com/users/aforty","html_url":"https://github.com/aforty","followers_url":"https://api.github.com/users/aforty/followers","following_url":"https://api.github.com/users/aforty/following{/other_user}","gists_url":"https://api.github.com/users/aforty/gists{/gist_id}","starred_url":"https://api.github.com/users/aforty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aforty/subscriptions","organizations_url":"https://api.github.com/users/aforty/orgs","repos_url":"https://api.github.com/users/aforty/repos","events_url":"https://api.github.com/users/aforty/events{/privacy}","received_events_url":"https://api.github.com/users/aforty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T02:59:29Z","updated_at":"2016-06-06T20:31:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/christopherdro/react-native-calendar/pulls/16","html_url":"https://github.com/christopherdro/react-native-calendar/pull/16","diff_url":"https://github.com/christopherdro/react-native-calendar/pull/16.diff","patch_url":"https://github.com/christopherdro/react-native-calendar/pull/16.patch"},"body":"I needed this for a project I'm working on. Basically I needed only past dates to be selectable and for future dates to not even be clickable. I implemented this by providing the component with a callback to check whether a specific date is enabled. If it isn't enabled then it won't be wrapped in a `<TouchableWithoutFeedback />` and a new `disabledDayText` style is applied.\r\n\r\nThis may not fit with your plans for this component but like I said, I needed this for a project and decided to implement it this way.\r\n\r\nAlso did some cleanup, for example `CalendarIOS` still had `_dayTextStyle()` and `_dayCircleStyle()` methods which were going unused. I assumed it was old code and removed it."},"comment":{"url":"https://api.github.com/repos/christopherdro/react-native-calendar/issues/comments/224078762","html_url":"https://github.com/christopherdro/react-native-calendar/pull/16#issuecomment-224078762","issue_url":"https://api.github.com/repos/christopherdro/react-native-calendar/issues/16","id":224078762,"user":{"login":"tomaskulich","id":4833191,"avatar_url":"https://avatars.githubusercontent.com/u/4833191?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaskulich","html_url":"https://github.com/tomaskulich","followers_url":"https://api.github.com/users/tomaskulich/followers","following_url":"https://api.github.com/users/tomaskulich/following{/other_user}","gists_url":"https://api.github.com/users/tomaskulich/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaskulich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaskulich/subscriptions","organizations_url":"https://api.github.com/users/tomaskulich/orgs","repos_url":"https://api.github.com/users/tomaskulich/repos","events_url":"https://api.github.com/users/tomaskulich/events{/privacy}","received_events_url":"https://api.github.com/users/tomaskulich/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T20:31:36Z","updated_at":"2016-06-06T20:31:36Z","body":"Wow, I like this. IMO that's really nice feature."}}
{"actor":{"display_login":"tomaskulich"}}