{"action":"created","issue":{"url":"https://api.github.com/repos/crazycodeboy/react-native-splash-screen/issues/167","repository_url":"https://api.github.com/repos/crazycodeboy/react-native-splash-screen","labels_url":"https://api.github.com/repos/crazycodeboy/react-native-splash-screen/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/crazycodeboy/react-native-splash-screen/issues/167/comments","events_url":"https://api.github.com/repos/crazycodeboy/react-native-splash-screen/issues/167/events","html_url":"https://github.com/crazycodeboy/react-native-splash-screen/issues/167","id":292871331,"number":167,"title":"Android App Crashing on Open","user":{"login":"GenericJam","id":5807145,"avatar_url":"https://avatars2.githubusercontent.com/u/5807145?v=4","gravatar_id":"","url":"https://api.github.com/users/GenericJam","html_url":"https://github.com/GenericJam","followers_url":"https://api.github.com/users/GenericJam/followers","following_url":"https://api.github.com/users/GenericJam/following{/other_user}","gists_url":"https://api.github.com/users/GenericJam/gists{/gist_id}","starred_url":"https://api.github.com/users/GenericJam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GenericJam/subscriptions","organizations_url":"https://api.github.com/users/GenericJam/orgs","repos_url":"https://api.github.com/users/GenericJam/repos","events_url":"https://api.github.com/users/GenericJam/events{/privacy}","received_events_url":"https://api.github.com/users/GenericJam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-01-30T17:33:03Z","updated_at":"2018-03-14T21:04:24Z","closed_at":null,"author_association":"NONE","body":"For anyone with this issue I spent a bit of time trying to figure out how to solve it. This library works well for me on ios and I didn't want to have two different libraries for the different operating systems. \r\nIf you are having this issue, in MainActivity.java:\r\ninstead of \r\n    `SplashScreen.show(this);`\r\nuse\r\n    `SplashScreen.show(this, true);`\r\n\r\nThe problem is in the supporting Java file, SplashScreen.java. This is the default call which calls another method called show(final Activity activity, final boolean fullScreen).\r\n`    public static void show(final Activity activity) {\r\n        show(activity, false);\r\n    }`\r\n\r\nBecause it calls it with 'false', the second style is used which React Native can't figure out and it crashes.\r\non line ~31\r\n    `mSplashDialog = new Dialog(activity, fullScreen ? R.style.SplashScreen_Fullscreen : R.style.SplashScreen_SplashTheme);'\r\n\r\nIf you just call show(final Activity activity, final boolean fullScreen) directly with 'true' as the second argument, it should be able to figure out the first style and it will work.\r\n\r\nPlease update the documentation"},"comment":{"url":"https://api.github.com/repos/crazycodeboy/react-native-splash-screen/issues/comments/373174267","html_url":"https://github.com/crazycodeboy/react-native-splash-screen/issues/167#issuecomment-373174267","issue_url":"https://api.github.com/repos/crazycodeboy/react-native-splash-screen/issues/167","id":373174267,"user":{"login":"ntomallen","id":6265975,"avatar_url":"https://avatars0.githubusercontent.com/u/6265975?v=4","gravatar_id":"","url":"https://api.github.com/users/ntomallen","html_url":"https://github.com/ntomallen","followers_url":"https://api.github.com/users/ntomallen/followers","following_url":"https://api.github.com/users/ntomallen/following{/other_user}","gists_url":"https://api.github.com/users/ntomallen/gists{/gist_id}","starred_url":"https://api.github.com/users/ntomallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntomallen/subscriptions","organizations_url":"https://api.github.com/users/ntomallen/orgs","repos_url":"https://api.github.com/users/ntomallen/repos","events_url":"https://api.github.com/users/ntomallen/events{/privacy}","received_events_url":"https://api.github.com/users/ntomallen/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T21:04:24Z","updated_at":"2018-03-14T21:04:24Z","author_association":"NONE","body":"@callmetwan I'm on 0.53.3. I'm actually not sure if everything is resolved yet. First, the image doesn't seem to show up when loading - it just shows a gray background. And then, everything in the app is basically just showing white... but for some reason the few text elements I'm putting in to debug will render properly. Something got f-d up along the way but I'm not sure where it is"}}
{"actor":{"display_login":"ntomallen"}}