{"action":"created","issue":{"url":"https://api.github.com/repos/BranchMetrics/react-native-branch-deep-linking/issues/317","repository_url":"https://api.github.com/repos/BranchMetrics/react-native-branch-deep-linking","labels_url":"https://api.github.com/repos/BranchMetrics/react-native-branch-deep-linking/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/BranchMetrics/react-native-branch-deep-linking/issues/317/comments","events_url":"https://api.github.com/repos/BranchMetrics/react-native-branch-deep-linking/issues/317/events","html_url":"https://github.com/BranchMetrics/react-native-branch-deep-linking/issues/317","id":292362150,"number":317,"title":"Custom events on android platform crash the app enum error","user":{"login":"mieszko4","id":3238370,"avatar_url":"https://avatars2.githubusercontent.com/u/3238370?v=4","gravatar_id":"","url":"https://api.github.com/users/mieszko4","html_url":"https://github.com/mieszko4","followers_url":"https://api.github.com/users/mieszko4/followers","following_url":"https://api.github.com/users/mieszko4/following{/other_user}","gists_url":"https://api.github.com/users/mieszko4/gists{/gist_id}","starred_url":"https://api.github.com/users/mieszko4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mieszko4/subscriptions","organizations_url":"https://api.github.com/users/mieszko4/orgs","repos_url":"https://api.github.com/users/mieszko4/repos","events_url":"https://api.github.com/users/mieszko4/events{/privacy}","received_events_url":"https://api.github.com/users/mieszko4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-29T10:52:39Z","updated_at":"2018-02-07T10:22:11Z","closed_at":null,"author_association":"NONE","body":"While implementing referral mechanism I tried to add a custom event on which reward would be triggered.\r\nI do the following:\r\n```es6\r\nimport Branch, { BranchEvent } from \"react-native-branch\";\r\n\r\nconst event = new BranchEvent(\"customevent\");\r\nevent.logEvent();\r\n```\r\n\r\nBut the app crashes on `logEvent()` call with:\r\n```\r\nNo enum constant io.branch.referral.util.BRANCH_STANDARD_EVENT.customevent\r\nvalueOf\r\n    Enum.java:254\r\nvalueOf\r\n    BRANCH_STANDARD_EVENT.java:9\r\ncreateBranchEvent\r\n    RNBranchModule.java:526\r\nlogEvent\r\n    RNBranchModule.java:336\r\ninvoke\r\n    Method.java\r\ninvoke\r\n    JavaMethodWrapper.java:374\r\ninvoke\r\n    JavaModuleWrapper.java:162\r\nrun\r\n    NativeRunnable.java\r\nhandleCallback\r\n    Handler.java:751\r\ndispatchMessage\r\n    Handler.java:95\r\ndispatchMessage\r\n    MessageQueueThreadHandler.java:31\r\nloop\r\n    Looper.java:154\r\nrun\r\n    MessageQueueThreadImpl.java:194\r\nrun\r\n    Thread.java:761\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/BranchMetrics/react-native-branch-deep-linking/issues/comments/363723381","html_url":"https://github.com/BranchMetrics/react-native-branch-deep-linking/issues/317#issuecomment-363723381","issue_url":"https://api.github.com/repos/BranchMetrics/react-native-branch-deep-linking/issues/317","id":363723381,"user":{"login":"john1jan","id":4264813,"avatar_url":"https://avatars2.githubusercontent.com/u/4264813?v=4","gravatar_id":"","url":"https://api.github.com/users/john1jan","html_url":"https://github.com/john1jan","followers_url":"https://api.github.com/users/john1jan/followers","following_url":"https://api.github.com/users/john1jan/following{/other_user}","gists_url":"https://api.github.com/users/john1jan/gists{/gist_id}","starred_url":"https://api.github.com/users/john1jan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john1jan/subscriptions","organizations_url":"https://api.github.com/users/john1jan/orgs","repos_url":"https://api.github.com/users/john1jan/repos","events_url":"https://api.github.com/users/john1jan/events{/privacy}","received_events_url":"https://api.github.com/users/john1jan/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T10:22:11Z","updated_at":"2018-02-07T10:22:11Z","author_association":"NONE","body":"i am also getting the same issue\r\n![screenshot_1517998901](https://user-images.githubusercontent.com/4264813/35911097-cfe96b9e-0c1e-11e8-865d-5f7a0d584eb7.png)\r\n"}}
{"actor":{"display_login":"john1jan"}}