{"action":"created","issue":{"url":"https://api.github.com/repos/master-atul/react-native-exception-handler/issues/41","repository_url":"https://api.github.com/repos/master-atul/react-native-exception-handler","labels_url":"https://api.github.com/repos/master-atul/react-native-exception-handler/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/master-atul/react-native-exception-handler/issues/41/comments","events_url":"https://api.github.com/repos/master-atul/react-native-exception-handler/issues/41/events","html_url":"https://github.com/master-atul/react-native-exception-handler/issues/41","id":298530628,"number":41,"title":"Skipping setJSExceptionHandler: Reason: In DEV mode and allowedInDevMode = false","user":{"login":"Dorentin1997","id":34134858,"avatar_url":"https://avatars2.githubusercontent.com/u/34134858?v=4","gravatar_id":"","url":"https://api.github.com/users/Dorentin1997","html_url":"https://github.com/Dorentin1997","followers_url":"https://api.github.com/users/Dorentin1997/followers","following_url":"https://api.github.com/users/Dorentin1997/following{/other_user}","gists_url":"https://api.github.com/users/Dorentin1997/gists{/gist_id}","starred_url":"https://api.github.com/users/Dorentin1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dorentin1997/subscriptions","organizations_url":"https://api.github.com/users/Dorentin1997/orgs","repos_url":"https://api.github.com/users/Dorentin1997/repos","events_url":"https://api.github.com/users/Dorentin1997/events{/privacy}","received_events_url":"https://api.github.com/users/Dorentin1997/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-20T09:53:09Z","updated_at":"2018-02-24T11:43:53Z","closed_at":"2018-02-24T11:43:53Z","author_association":"NONE","body":"I placed the error-handler inside index-file like this:\r\n\r\n// registering the error handler (maybe u can do this in the index.android.js or index.ios.js)\r\nsetJSExceptionHandler((error, isFatal) => {\r\n    // This is your custom global error handler\r\n    // You do stuff like show an error dialog\r\n    // or hit google analytics to track crashes\r\n    // or hit a custom api to inform the dev team.\r\n    // Error saving data\r\n    try {\r\n        AsyncStorage.setItem('Error', error.toString());\r\n    } catch (error) {\r\n        // Error saving data\r\n    }\r\n\r\n});\r\n\r\n// getJSExceptionHandler gives the currently set JS exception handler\r\nconst currentHandler = getJSExceptionHandler();\r\n\r\nHow can i set In DEV mode to true.\r\n"},"comment":{"url":"https://api.github.com/repos/master-atul/react-native-exception-handler/issues/comments/368222745","html_url":"https://github.com/master-atul/react-native-exception-handler/issues/41#issuecomment-368222745","issue_url":"https://api.github.com/repos/master-atul/react-native-exception-handler/issues/41","id":368222745,"user":{"login":"master-atul","id":4029423,"avatar_url":"https://avatars0.githubusercontent.com/u/4029423?v=4","gravatar_id":"","url":"https://api.github.com/users/master-atul","html_url":"https://github.com/master-atul","followers_url":"https://api.github.com/users/master-atul/followers","following_url":"https://api.github.com/users/master-atul/following{/other_user}","gists_url":"https://api.github.com/users/master-atul/gists{/gist_id}","starred_url":"https://api.github.com/users/master-atul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/master-atul/subscriptions","organizations_url":"https://api.github.com/users/master-atul/orgs","repos_url":"https://api.github.com/users/master-atul/repos","events_url":"https://api.github.com/users/master-atul/events{/privacy}","received_events_url":"https://api.github.com/users/master-atul/received_events","type":"User","site_admin":false},"created_at":"2018-02-24T11:43:53Z","updated_at":"2018-02-24T11:43:53Z","author_association":"OWNER","body":"closing this issue @Dorentin1997  Please re open if it doesnt work. Thanks"}}
{"actor":{"display_login":"master-atul"}}