{"action":"created","issue":{"url":"https://api.github.com/repos/yahoo/react-dnd-touch-backend/issues/51","repository_url":"https://api.github.com/repos/yahoo/react-dnd-touch-backend","labels_url":"https://api.github.com/repos/yahoo/react-dnd-touch-backend/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/react-dnd-touch-backend/issues/51/comments","events_url":"https://api.github.com/repos/yahoo/react-dnd-touch-backend/issues/51/events","html_url":"https://github.com/yahoo/react-dnd-touch-backend/issues/51","id":211364183,"number":51,"title":"Draggable item is not visible","user":{"login":"dffpm","id":22280079,"avatar_url":"https://avatars1.githubusercontent.com/u/22280079?v=3","gravatar_id":"","url":"https://api.github.com/users/dffpm","html_url":"https://github.com/dffpm","followers_url":"https://api.github.com/users/dffpm/followers","following_url":"https://api.github.com/users/dffpm/following{/other_user}","gists_url":"https://api.github.com/users/dffpm/gists{/gist_id}","starred_url":"https://api.github.com/users/dffpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dffpm/subscriptions","organizations_url":"https://api.github.com/users/dffpm/orgs","repos_url":"https://api.github.com/users/dffpm/repos","events_url":"https://api.github.com/users/dffpm/events{/privacy}","received_events_url":"https://api.github.com/users/dffpm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-02T11:29:42Z","updated_at":"2017-03-14T14:49:39Z","closed_at":null,"body":"Good day. I have problem: when i try to move source item, it's working, but item does not visible, while it moving. What i do wrong? This is code of my source item:\r\n\r\n```\r\nimport React, {Component, PropTypes} from 'react';\r\nimport {DragSource} from 'react-dnd';\r\n\r\n const boxSource = {\r\n     beginDrag(props) {\r\n         return props.item\r\n     },\r\n\r\n    endDrag(props, monitor) {\r\n        const item = monitor.getItem();\r\n        const dropResult = monitor.getDropResult();\r\n\r\n        if (dropResult) {\r\n            props.addItem(item);\r\n        }\r\n    }\r\n };\r\n\r\nclass DragSourceComponent extends Component {\r\n    static propTypes = {\r\n        connectDragSource: PropTypes.func.isRequired,\r\n        isDragging: PropTypes.bool.isRequired\r\n    };\r\n\r\n    render() {\r\n        const {isDragging, connectDragSource} = this.props;\r\n        return (\r\n            connectDragSource(\r\n                <div className=\"dnd__source\">Name</div>,\r\n            )\r\n        );\r\n    }\r\n}\r\n\r\nexport default DragSource('box', boxSource, (connect, monitor) => ({\r\n    connectDragSource: connect.dragSource(),\r\n    isDragging: monitor.isDragging()\r\n}))(DragSourceComponent);\r\n```"},"comment":{"url":"https://api.github.com/repos/yahoo/react-dnd-touch-backend/issues/comments/286444732","html_url":"https://github.com/yahoo/react-dnd-touch-backend/issues/51#issuecomment-286444732","issue_url":"https://api.github.com/repos/yahoo/react-dnd-touch-backend/issues/51","id":286444732,"user":{"login":"OliverJAsh","id":921609,"avatar_url":"https://avatars1.githubusercontent.com/u/921609?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverJAsh","html_url":"https://github.com/OliverJAsh","followers_url":"https://api.github.com/users/OliverJAsh/followers","following_url":"https://api.github.com/users/OliverJAsh/following{/other_user}","gists_url":"https://api.github.com/users/OliverJAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverJAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverJAsh/subscriptions","organizations_url":"https://api.github.com/users/OliverJAsh/orgs","repos_url":"https://api.github.com/users/OliverJAsh/repos","events_url":"https://api.github.com/users/OliverJAsh/events{/privacy}","received_events_url":"https://api.github.com/users/OliverJAsh/received_events","type":"User","site_admin":false},"created_at":"2017-03-14T14:49:39Z","updated_at":"2017-03-14T14:49:39Z","body":"You have to implement the preview yourself when using this backend. See the docs https://github.com/yahoo/react-dnd-touch-backend#drag-preview"}}
{"actor":{"display_login":"OliverJAsh"}}