{"action":"opened","number":36,"pull_request":{"url":"https://api.github.com/repos/dogfessional/react-swipeable/pulls/36","id":68082576,"html_url":"https://github.com/dogfessional/react-swipeable/pull/36","diff_url":"https://github.com/dogfessional/react-swipeable/pull/36.diff","patch_url":"https://github.com/dogfessional/react-swipeable/pull/36.patch","issue_url":"https://api.github.com/repos/dogfessional/react-swipeable/issues/36","number":36,"state":"open","locked":false,"title":"Merge props into child element instead of wrapping children into a new div tag","user":{"login":"Xazzzi","id":1200201,"avatar_url":"https://avatars.githubusercontent.com/u/1200201?v=3","gravatar_id":"","url":"https://api.github.com/users/Xazzzi","html_url":"https://github.com/Xazzzi","followers_url":"https://api.github.com/users/Xazzzi/followers","following_url":"https://api.github.com/users/Xazzzi/following{/other_user}","gists_url":"https://api.github.com/users/Xazzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/Xazzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xazzzi/subscriptions","organizations_url":"https://api.github.com/users/Xazzzi/orgs","repos_url":"https://api.github.com/users/Xazzzi/repos","events_url":"https://api.github.com/users/Xazzzi/events{/privacy}","received_events_url":"https://api.github.com/users/Xazzzi/received_events","type":"User","site_admin":false},"body":"I did it for myself, because additional divs were breaking my flexbox layout, but it turns out there are people who are also unhappy with default behaviour (like #24).\r\n\r\nI'm doing pull request to show the idea of how could it be done, but it shouldn't actually be merged, because of compatibility issues people will have.\r\n\r\nI'm using `<Swipeable>` as a higher-order component, wrapping individual react elements so i didn't bother with handling cases like multiple children or non-element content.\r\n\r\nHowever, there's nothing limiting from introducing HOC-feature **with** backward compatibility.\r\nHope it will be implemented in some future release =)","created_at":"2016-04-27T16:21:00Z","updated_at":"2016-04-27T16:21:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dogfessional/react-swipeable/pulls/36/commits","review_comments_url":"https://api.github.com/repos/dogfessional/react-swipeable/pulls/36/comments","review_comment_url":"https://api.github.com/repos/dogfessional/react-swipeable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dogfessional/react-swipeable/issues/36/comments","statuses_url":"https://api.github.com/repos/dogfessional/react-swipeable/statuses/b707588ab005704648f6d1888e99a8e20bc600a5","head":{"label":"Xazzzi:master","ref":"master","sha":"b707588ab005704648f6d1888e99a8e20bc600a5","user":{"login":"Xazzzi","id":1200201,"avatar_url":"https://avatars.githubusercontent.com/u/1200201?v=3","gravatar_id":"","url":"https://api.github.com/users/Xazzzi","html_url":"https://github.com/Xazzzi","followers_url":"https://api.github.com/users/Xazzzi/followers","following_url":"https://api.github.com/users/Xazzzi/following{/other_user}","gists_url":"https://api.github.com/users/Xazzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/Xazzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xazzzi/subscriptions","organizations_url":"https://api.github.com/users/Xazzzi/orgs","repos_url":"https://api.github.com/users/Xazzzi/repos","events_url":"https://api.github.com/users/Xazzzi/events{/privacy}","received_events_url":"https://api.github.com/users/Xazzzi/received_events","type":"User","site_admin":false},"repo":{"id":57224580,"name":"react-swipeable","full_name":"Xazzzi/react-swipeable","owner":{"login":"Xazzzi","id":1200201,"avatar_url":"https://avatars.githubusercontent.com/u/1200201?v=3","gravatar_id":"","url":"https://api.github.com/users/Xazzzi","html_url":"https://github.com/Xazzzi","followers_url":"https://api.github.com/users/Xazzzi/followers","following_url":"https://api.github.com/users/Xazzzi/following{/other_user}","gists_url":"https://api.github.com/users/Xazzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/Xazzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xazzzi/subscriptions","organizations_url":"https://api.github.com/users/Xazzzi/orgs","repos_url":"https://api.github.com/users/Xazzzi/repos","events_url":"https://api.github.com/users/Xazzzi/events{/privacy}","received_events_url":"https://api.github.com/users/Xazzzi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Xazzzi/react-swipeable","description":"Swipe bindings for react","fork":true,"url":"https://api.github.com/repos/Xazzzi/react-swipeable","forks_url":"https://api.github.com/repos/Xazzzi/react-swipeable/forks","keys_url":"https://api.github.com/repos/Xazzzi/react-swipeable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Xazzzi/react-swipeable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Xazzzi/react-swipeable/teams","hooks_url":"https://api.github.com/repos/Xazzzi/react-swipeable/hooks","issue_events_url":"https://api.github.com/repos/Xazzzi/react-swipeable/issues/events{/number}","events_url":"https://api.github.com/repos/Xazzzi/react-swipeable/events","assignees_url":"https://api.github.com/repos/Xazzzi/react-swipeable/assignees{/user}","branches_url":"https://api.github.com/repos/Xazzzi/react-swipeable/branches{/branch}","tags_url":"https://api.github.com/repos/Xazzzi/react-swipeable/tags","blobs_url":"https://api.github.com/repos/Xazzzi/react-swipeable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Xazzzi/react-swipeable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Xazzzi/react-swipeable/git/refs{/sha}","trees_url":"https://api.github.com/repos/Xazzzi/react-swipeable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Xazzzi/react-swipeable/statuses/{sha}","languages_url":"https://api.github.com/repos/Xazzzi/react-swipeable/languages","stargazers_url":"https://api.github.com/repos/Xazzzi/react-swipeable/stargazers","contributors_url":"https://api.github.com/repos/Xazzzi/react-swipeable/contributors","subscribers_url":"https://api.github.com/repos/Xazzzi/react-swipeable/subscribers","subscription_url":"https://api.github.com/repos/Xazzzi/react-swipeable/subscription","commits_url":"https://api.github.com/repos/Xazzzi/react-swipeable/commits{/sha}","git_commits_url":"https://api.github.com/repos/Xazzzi/react-swipeable/git/commits{/sha}","comments_url":"https://api.github.com/repos/Xazzzi/react-swipeable/comments{/number}","issue_comment_url":"https://api.github.com/repos/Xazzzi/react-swipeable/issues/comments{/number}","contents_url":"https://api.github.com/repos/Xazzzi/react-swipeable/contents/{+path}","compare_url":"https://api.github.com/repos/Xazzzi/react-swipeable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Xazzzi/react-swipeable/merges","archive_url":"https://api.github.com/repos/Xazzzi/react-swipeable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Xazzzi/react-swipeable/downloads","issues_url":"https://api.github.com/repos/Xazzzi/react-swipeable/issues{/number}","pulls_url":"https://api.github.com/repos/Xazzzi/react-swipeable/pulls{/number}","milestones_url":"https://api.github.com/repos/Xazzzi/react-swipeable/milestones{/number}","notifications_url":"https://api.github.com/repos/Xazzzi/react-swipeable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Xazzzi/react-swipeable/labels{/name}","releases_url":"https://api.github.com/repos/Xazzzi/react-swipeable/releases{/id}","deployments_url":"https://api.github.com/repos/Xazzzi/react-swipeable/deployments","created_at":"2016-04-27T15:29:41Z","updated_at":"2016-04-27T15:29:43Z","pushed_at":"2016-04-27T16:08:37Z","git_url":"git://github.com/Xazzzi/react-swipeable.git","ssh_url":"git@github.com:Xazzzi/react-swipeable.git","clone_url":"https://github.com/Xazzzi/react-swipeable.git","svn_url":"https://github.com/Xazzzi/react-swipeable","homepage":null,"size":218,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dogfessional:master","ref":"master","sha":"6bc8dc864f8e7a1031c1b8dc870f312783cf0b1c","user":{"login":"dogfessional","id":9157134,"avatar_url":"https://avatars.githubusercontent.com/u/9157134?v=3","gravatar_id":"","url":"https://api.github.com/users/dogfessional","html_url":"https://github.com/dogfessional","followers_url":"https://api.github.com/users/dogfessional/followers","following_url":"https://api.github.com/users/dogfessional/following{/other_user}","gists_url":"https://api.github.com/users/dogfessional/gists{/gist_id}","starred_url":"https://api.github.com/users/dogfessional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogfessional/subscriptions","organizations_url":"https://api.github.com/users/dogfessional/orgs","repos_url":"https://api.github.com/users/dogfessional/repos","events_url":"https://api.github.com/users/dogfessional/events{/privacy}","received_events_url":"https://api.github.com/users/dogfessional/received_events","type":"Organization","site_admin":false},"repo":{"id":25096934,"name":"react-swipeable","full_name":"dogfessional/react-swipeable","owner":{"login":"dogfessional","id":9157134,"avatar_url":"https://avatars.githubusercontent.com/u/9157134?v=3","gravatar_id":"","url":"https://api.github.com/users/dogfessional","html_url":"https://github.com/dogfessional","followers_url":"https://api.github.com/users/dogfessional/followers","following_url":"https://api.github.com/users/dogfessional/following{/other_user}","gists_url":"https://api.github.com/users/dogfessional/gists{/gist_id}","starred_url":"https://api.github.com/users/dogfessional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogfessional/subscriptions","organizations_url":"https://api.github.com/users/dogfessional/orgs","repos_url":"https://api.github.com/users/dogfessional/repos","events_url":"https://api.github.com/users/dogfessional/events{/privacy}","received_events_url":"https://api.github.com/users/dogfessional/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dogfessional/react-swipeable","description":"Swipe bindings for react","fork":false,"url":"https://api.github.com/repos/dogfessional/react-swipeable","forks_url":"https://api.github.com/repos/dogfessional/react-swipeable/forks","keys_url":"https://api.github.com/repos/dogfessional/react-swipeable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dogfessional/react-swipeable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dogfessional/react-swipeable/teams","hooks_url":"https://api.github.com/repos/dogfessional/react-swipeable/hooks","issue_events_url":"https://api.github.com/repos/dogfessional/react-swipeable/issues/events{/number}","events_url":"https://api.github.com/repos/dogfessional/react-swipeable/events","assignees_url":"https://api.github.com/repos/dogfessional/react-swipeable/assignees{/user}","branches_url":"https://api.github.com/repos/dogfessional/react-swipeable/branches{/branch}","tags_url":"https://api.github.com/repos/dogfessional/react-swipeable/tags","blobs_url":"https://api.github.com/repos/dogfessional/react-swipeable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dogfessional/react-swipeable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dogfessional/react-swipeable/git/refs{/sha}","trees_url":"https://api.github.com/repos/dogfessional/react-swipeable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dogfessional/react-swipeable/statuses/{sha}","languages_url":"https://api.github.com/repos/dogfessional/react-swipeable/languages","stargazers_url":"https://api.github.com/repos/dogfessional/react-swipeable/stargazers","contributors_url":"https://api.github.com/repos/dogfessional/react-swipeable/contributors","subscribers_url":"https://api.github.com/repos/dogfessional/react-swipeable/subscribers","subscription_url":"https://api.github.com/repos/dogfessional/react-swipeable/subscription","commits_url":"https://api.github.com/repos/dogfessional/react-swipeable/commits{/sha}","git_commits_url":"https://api.github.com/repos/dogfessional/react-swipeable/git/commits{/sha}","comments_url":"https://api.github.com/repos/dogfessional/react-swipeable/comments{/number}","issue_comment_url":"https://api.github.com/repos/dogfessional/react-swipeable/issues/comments{/number}","contents_url":"https://api.github.com/repos/dogfessional/react-swipeable/contents/{+path}","compare_url":"https://api.github.com/repos/dogfessional/react-swipeable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dogfessional/react-swipeable/merges","archive_url":"https://api.github.com/repos/dogfessional/react-swipeable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dogfessional/react-swipeable/downloads","issues_url":"https://api.github.com/repos/dogfessional/react-swipeable/issues{/number}","pulls_url":"https://api.github.com/repos/dogfessional/react-swipeable/pulls{/number}","milestones_url":"https://api.github.com/repos/dogfessional/react-swipeable/milestones{/number}","notifications_url":"https://api.github.com/repos/dogfessional/react-swipeable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dogfessional/react-swipeable/labels{/name}","releases_url":"https://api.github.com/repos/dogfessional/react-swipeable/releases{/id}","deployments_url":"https://api.github.com/repos/dogfessional/react-swipeable/deployments","created_at":"2014-10-11T22:00:55Z","updated_at":"2016-04-26T23:37:48Z","pushed_at":"2016-04-27T16:21:00Z","git_url":"git://github.com/dogfessional/react-swipeable.git","ssh_url":"git@github.com:dogfessional/react-swipeable.git","clone_url":"https://github.com/dogfessional/react-swipeable.git","svn_url":"https://github.com/dogfessional/react-swipeable","homepage":null,"size":227,"stargazers_count":181,"watchers_count":181,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":5,"forks":32,"open_issues":5,"watchers":181,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dogfessional/react-swipeable/pulls/36"},"html":{"href":"https://github.com/dogfessional/react-swipeable/pull/36"},"issue":{"href":"https://api.github.com/repos/dogfessional/react-swipeable/issues/36"},"comments":{"href":"https://api.github.com/repos/dogfessional/react-swipeable/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/dogfessional/react-swipeable/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/dogfessional/react-swipeable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dogfessional/react-swipeable/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/dogfessional/react-swipeable/statuses/b707588ab005704648f6d1888e99a8e20bc600a5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":170,"deletions":10,"changed_files":3}}