{"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":23,"created_at":"2018-02-09T12:17:41Z","updated_at":"2018-04-07T12:58:36Z","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/379467563","html_url":"https://github.com/wix/react-native-navigation/issues/2687#issuecomment-379467563","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2687","id":379467563,"user":{"login":"peakyDicers","id":16856101,"avatar_url":"https://avatars0.githubusercontent.com/u/16856101?v=4","gravatar_id":"","url":"https://api.github.com/users/peakyDicers","html_url":"https://github.com/peakyDicers","followers_url":"https://api.github.com/users/peakyDicers/followers","following_url":"https://api.github.com/users/peakyDicers/following{/other_user}","gists_url":"https://api.github.com/users/peakyDicers/gists{/gist_id}","starred_url":"https://api.github.com/users/peakyDicers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peakyDicers/subscriptions","organizations_url":"https://api.github.com/users/peakyDicers/orgs","repos_url":"https://api.github.com/users/peakyDicers/repos","events_url":"https://api.github.com/users/peakyDicers/events{/privacy}","received_events_url":"https://api.github.com/users/peakyDicers/received_events","type":"User","site_admin":false},"created_at":"2018-04-07T12:58:36Z","updated_at":"2018-04-07T12:58:36Z","author_association":"NONE","body":"I am having a similar issue. Build is successful, but shows a blank screen on the emulator. When I press Ctrl-M, I hear the feedback sound that the emulator makes when the developer menu appears, even though it does not appear.\r\n\r\nreact-native: 0.53.3\r\n\r\n![image](https://user-images.githubusercontent.com/16856101/38455015-af1cfca6-3a3f-11e8-9364-1cfc04c98e35.png)\r\n![image](https://user-images.githubusercontent.com/16856101/38455019-ba65b08a-3a3f-11e8-8d2e-f61237002864.png)\r\n\r\n![image](https://user-images.githubusercontent.com/16856101/38455049-2fb73bf6-3a40-11e8-8b3a-683d7a83d67a.png)\r\n`MainActivity.java & MainApplication.java`\r\nhttps://gist.github.com/peakyDicers/2f78f70f1762fd5afbeb7e9c7383c806"}}
{"actor":{"display_login":"peakyDicers"}}