{"action":"created","issue":{"url":"https://api.github.com/repos/magicismight/react-native-svg/issues/118","repository_url":"https://api.github.com/repos/magicismight/react-native-svg","labels_url":"https://api.github.com/repos/magicismight/react-native-svg/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/magicismight/react-native-svg/issues/118/comments","events_url":"https://api.github.com/repos/magicismight/react-native-svg/issues/118/events","html_url":"https://github.com/magicismight/react-native-svg/issues/118","id":171841954,"number":118,"title":"Android not compiling on RN v0.32.0-rc.0 (TouchEvent.obtain)","user":{"login":"alvinlao","id":6529701,"avatar_url":"https://avatars.githubusercontent.com/u/6529701?v=3","gravatar_id":"","url":"https://api.github.com/users/alvinlao","html_url":"https://github.com/alvinlao","followers_url":"https://api.github.com/users/alvinlao/followers","following_url":"https://api.github.com/users/alvinlao/following{/other_user}","gists_url":"https://api.github.com/users/alvinlao/gists{/gist_id}","starred_url":"https://api.github.com/users/alvinlao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvinlao/subscriptions","organizations_url":"https://api.github.com/users/alvinlao/orgs","repos_url":"https://api.github.com/users/alvinlao/repos","events_url":"https://api.github.com/users/alvinlao/events{/privacy}","received_events_url":"https://api.github.com/users/alvinlao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-18T08:10:38Z","updated_at":"2016-08-19T08:11:59Z","closed_at":null,"body":"# Problem\r\nThis library is not compiling on Android with React Native version `0.32.0-rc.0`.\r\n\r\n# Error\r\nThis is the compilation error I got:\r\n```js\r\nnode_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RNSVGSvgView.java:114: error: method obtain in class TouchEvent cannot be a\r\npplied to given types;\r\n            TouchEvent.obtain(\r\n                      ^\r\n  required: int,TouchEventType,MotionEvent,float,float,TouchEventCoalescingKeyHelper\r\n  found: int,long,TouchEventType,MotionEvent,float,float,TouchEventCoalescingKeyHelper\r\n  reason: actual and formal argument lists differ in length\r\n```\r\n\r\n# Cause\r\n`TouchEvent.obtain`'s signature changed in [this commit](https://github.com/facebook/react-native/commit/da063e3d55a4fcd617ac496d62aa051343f35b56).\r\n\r\n# Solution\r\nThe fix should be to remove `SystemClock.nanoTime()` from line 116 in `RNSVGSvgView.java`.\r\n\r\n```java\r\n    private void dispatch(MotionEvent ev, TouchEventType type) {\r\n        mEventDispatcher.dispatchEvent(\r\n            TouchEvent.obtain(\r\n                mTargetTag,\r\n                SystemClock.nanoTime(),  // <------- Remove this line\r\n                type,\r\n                ev,\r\n                ev.getX(),\r\n                ev.getX(),\r\n                mTouchEventCoalescingKeyHelper));\r\n    }\r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/magicismight/react-native-svg/issues/comments/240956058","html_url":"https://github.com/magicismight/react-native-svg/issues/118#issuecomment-240956058","issue_url":"https://api.github.com/repos/magicismight/react-native-svg/issues/118","id":240956058,"user":{"login":"magicismight","id":7693239,"avatar_url":"https://avatars.githubusercontent.com/u/7693239?v=3","gravatar_id":"","url":"https://api.github.com/users/magicismight","html_url":"https://github.com/magicismight","followers_url":"https://api.github.com/users/magicismight/followers","following_url":"https://api.github.com/users/magicismight/following{/other_user}","gists_url":"https://api.github.com/users/magicismight/gists{/gist_id}","starred_url":"https://api.github.com/users/magicismight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicismight/subscriptions","organizations_url":"https://api.github.com/users/magicismight/orgs","repos_url":"https://api.github.com/users/magicismight/repos","events_url":"https://api.github.com/users/magicismight/events{/privacy}","received_events_url":"https://api.github.com/users/magicismight/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T08:11:59Z","updated_at":"2016-08-19T08:11:59Z","body":"Thanks for reporting this.\r\nI\\`ll fix this after 0.32.0 is released."}}
{"actor":{"display_login":"magicismight"}}