{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/3113","labels_url":"https://api.github.com/repos/facebook/react-native/issues/3113/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/3113/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/3113/events","html_url":"https://github.com/facebook/react-native/issues/3113","id":108841693,"number":3113,"title":"[iOS] Add \"peek and pop\" (3d touch) capabilities to RN","user":{"login":"rricard","id":246520,"avatar_url":"https://avatars.githubusercontent.com/u/246520?v=3","gravatar_id":"","url":"https://api.github.com/users/rricard","html_url":"https://github.com/rricard","followers_url":"https://api.github.com/users/rricard/followers","following_url":"https://api.github.com/users/rricard/following{/other_user}","gists_url":"https://api.github.com/users/rricard/gists{/gist_id}","starred_url":"https://api.github.com/users/rricard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rricard/subscriptions","organizations_url":"https://api.github.com/users/rricard/orgs","repos_url":"https://api.github.com/users/rricard/repos","events_url":"https://api.github.com/users/rricard/events{/privacy}","received_events_url":"https://api.github.com/users/rricard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/iOS","name":"iOS","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-09-29T10:33:32Z","updated_at":"2015-10-15T21:28:25Z","closed_at":"2015-10-06T19:47:46Z","body":"#3055 will transmit 3d touch props during touch events. However the \"[peek and pop](http://www.apple.com/iphone-6s/3d-touch/)\" feature presented by Apple is still very hard to implement just using pressure events. My goal would be to implement in a related PR a wrapper around iOS's [`UIViewControllerPreviewingDelegate` Protocol](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewControllerPreviewingDelegate_Protocol/) that makes it easy to create \"peek and pop\" previews. This protocol works well on iOS but may not be really friendly with the way React does things. On that, I would like to get your input.\r\n\r\nIn my opinion, the React way of doing things is still handling an event **but** use a component or an API that would wrap [`UIPreviewAction`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPreviewAction_Class/#//apple_ref/occ/clm/UIPreviewAction/), [`UIPreviewActionGroup`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPreviewActionGroup_Class/) and [the `UIPreviewActionItem` Protocol](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPreviewActionItem_Protocol/) to display the preview and its action group.\r\n\r\nHow would you do that ? Once I get the right way of doing things here, I can try to implement it!"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/148526019","html_url":"https://github.com/facebook/react-native/issues/3113#issuecomment-148526019","issue_url":"https://api.github.com/repos/facebook/react-native/issues/3113","id":148526019,"user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T21:28:25Z","updated_at":"2015-10-15T21:28:25Z","body":"Any idea how well it works? If it's really really good we could consider including it in the touch system. Otherwise I'd recommend forking RN and using it in your fork if that lib is useful to you."}}