{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/2687","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2687/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2687/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2687/events","html_url":"https://github.com/wix/react-native-navigation/issues/2687","id":295852334,"number":2687,"title":"Blank white screen on Android, IOS working fine!","user":{"login":"mohdabbas","id":10494470,"avatar_url":"https://avatars3.githubusercontent.com/u/10494470?v=4","gravatar_id":"","url":"https://api.github.com/users/mohdabbas","html_url":"https://github.com/mohdabbas","followers_url":"https://api.github.com/users/mohdabbas/followers","following_url":"https://api.github.com/users/mohdabbas/following{/other_user}","gists_url":"https://api.github.com/users/mohdabbas/gists{/gist_id}","starred_url":"https://api.github.com/users/mohdabbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohdabbas/subscriptions","organizations_url":"https://api.github.com/users/mohdabbas/orgs","repos_url":"https://api.github.com/users/mohdabbas/repos","events_url":"https://api.github.com/users/mohdabbas/events{/privacy}","received_events_url":"https://api.github.com/users/mohdabbas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":54,"created_at":"2018-02-09T12:17:41Z","updated_at":"2018-05-28T17:49:43Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  Please post questions in Stack Overflow under the react-native-navigation tag\r\n  https://stackoverflow.com/questions/tagged/react-native-navigation\r\n-->\r\n\r\n### Issue Description\r\nI get a blank white screen on react-native run-android, can't even access CMD+M for dev menu. IOS working perfectly fine. If I run http://localhost:8081/index.android.bundle?platform=android&dev=false&hot=false&minify=false in browser, it says: \"message\": \"Cannot find entry file index.android.js in any of the roots: [\\\"/Projects/Mobile Applications/Project\\\"]\", even I have added \r\n`@Override\r\n     public String getJSMainModuleName() {\r\n     return \"index\";\r\n    }`\r\nin MainApplication.java,\r\n\r\n(https://github.com/wix/react-native-navigation/issues/197)]\r\n\r\n### Steps to Reproduce / Code Snippets / Screenshots\r\n\r\nApp.js\r\n```\r\nimport { Navigation } from 'react-native-navigation';\r\n\r\nimport { registerScreens } from './src/screens';\r\n\r\nregisterScreens(); // this is where you register all of your app's screens\r\n\r\n// start the app\r\nNavigation.startTabBasedApp({\r\n  tabs: [\r\n    {\r\n      label: 'One',\r\n      screen: 'Project.SplashScreen', // this is a registered name for a screen\r\n      title: 'Screen One'\r\n    }\r\n  ]\r\n});\r\n```\r\n\r\nscreens/index.js\r\n```\r\nimport { Navigation } from 'react-native-navigation';\r\n\r\nimport SplashScreen from './splash/splash.screen';\r\n\r\n// register all screens of the app (including internal ones)\r\nexport function registerScreens() {\r\n  Navigation.registerComponent('Project.SplashScreen', () => SplashScreen);\r\n}\r\n```\r\n\r\nMainActivity.java\r\n```\r\npackage com.bricofer;\r\n\r\nimport com.reactnativenavigation.controllers.SplashActivity;\r\n\r\npublic class MainActivity extends SplashActivity {\r\n\r\n    /**\r\n     * Returns the name of the main component registered from JavaScript.\r\n     * This is used to schedule rendering of the component.\r\n     */\r\n    protected String getMainComponentName() {\r\n        return \"Project\";\r\n    }\r\n}\r\n```\r\n\r\nMainApplication.java\r\n```\r\npackage com.project;\r\n\r\nimport android.app.Application;\r\n\r\nimport com.facebook.react.ReactApplication;\r\nimport com.facebook.react.ReactNativeHost;\r\nimport com.facebook.react.ReactPackage;\r\nimport com.facebook.react.shell.MainReactPackage;\r\nimport com.facebook.soloader.SoLoader;\r\n\r\nimport java.util.Arrays;\r\nimport java.util.List;\r\nimport com.reactnativenavigation.NavigationApplication;\r\n\r\npublic class MainApplication extends NavigationApplication {\r\n\r\n     @Override\r\n     public boolean isDebug() {\r\n         // Make sure you are using BuildConfig from your own application\r\n         return BuildConfig.DEBUG;\r\n     }\r\n\r\n     protected List<ReactPackage> getPackages() {\r\n         // Add additional packages you require here\r\n         // No need to add RnnPackage and MainReactPackage\r\n         return Arrays.<ReactPackage>asList(\r\n             // eg. new VectorIconsPackage()\r\n         );\r\n     }\r\n\r\n     @Override\r\n     public String getJSMainModuleName() {\r\n     return \"index\";\r\n    }\r\n\r\n     @Override\r\n     public List<ReactPackage> createAdditionalReactPackages() {\r\n         return getPackages();\r\n     }\r\n }\r\n```\r\n\r\nKindly help!!!\r\n\r\nThanks\r\n\r\n---\r\n### Environment\r\n* React Native Navigation version: 1.1.375\r\n* React Native version: 0.52.0\r\n* Platform(s) (iOS, Android, or both?): both\r\n"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/392577857","html_url":"https://github.com/wix/react-native-navigation/issues/2687#issuecomment-392577857","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2687","id":392577857,"user":{"login":"Kriskev","id":17236708,"avatar_url":"https://avatars0.githubusercontent.com/u/17236708?v=4","gravatar_id":"","url":"https://api.github.com/users/Kriskev","html_url":"https://github.com/Kriskev","followers_url":"https://api.github.com/users/Kriskev/followers","following_url":"https://api.github.com/users/Kriskev/following{/other_user}","gists_url":"https://api.github.com/users/Kriskev/gists{/gist_id}","starred_url":"https://api.github.com/users/Kriskev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kriskev/subscriptions","organizations_url":"https://api.github.com/users/Kriskev/orgs","repos_url":"https://api.github.com/users/Kriskev/repos","events_url":"https://api.github.com/users/Kriskev/events{/privacy}","received_events_url":"https://api.github.com/users/Kriskev/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T17:49:43Z","updated_at":"2018-05-28T17:49:43Z","author_association":"NONE","body":"After several hours of research, I was so desperate, I used the example of the doc [](https://wix.github.io/react-native-navigation/#/usage) and miraculously it work.\r\n\r\nAfter that I made a ctrl z to find my original code, since he was able to launch the application for once. And there Booom, I had a lot of error but which was not displayed before.\r\n\r\n\r\nSo my conclusion, we have white screen because our code probably contains errors and react-native-navigation does not start the application with errors and for a reason that I do not know do not post them. So try to display something first with the example of the doc to launch the application and without closing, replace with your code.\r\nsorry for my poor English"}}
{"actor":{"display_login":"Kriskev"}}