{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/3218","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3218/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3218/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3218/events","html_url":"https://github.com/wix/react-native-navigation/issues/3218","id":323805295,"node_id":"MDU6SXNzdWUzMjM4MDUyOTU=","number":3218,"title":"Android stuck on splash screen on startup","user":{"login":"alburdette619","id":22638838,"node_id":"MDQ6VXNlcjIyNjM4ODM4","avatar_url":"https://avatars1.githubusercontent.com/u/22638838?v=4","gravatar_id":"","url":"https://api.github.com/users/alburdette619","html_url":"https://github.com/alburdette619","followers_url":"https://api.github.com/users/alburdette619/followers","following_url":"https://api.github.com/users/alburdette619/following{/other_user}","gists_url":"https://api.github.com/users/alburdette619/gists{/gist_id}","starred_url":"https://api.github.com/users/alburdette619/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alburdette619/subscriptions","organizations_url":"https://api.github.com/users/alburdette619/orgs","repos_url":"https://api.github.com/users/alburdette619/repos","events_url":"https://api.github.com/users/alburdette619/events{/privacy}","received_events_url":"https://api.github.com/users/alburdette619/received_events","type":"User","site_admin":false},"labels":[{"id":430104061,"node_id":"MDU6TGFiZWw0MzAxMDQwNjE=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/user:%20more%20info%20needed","name":"user: more info needed","color":"0052cc","default":false},{"id":828174913,"node_id":"MDU6TGFiZWw4MjgxNzQ5MTM=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/v1","name":"v1","color":"2cd6a0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-05-16T22:08:31Z","updated_at":"2018-10-28T14:02:39Z","closed_at":"2018-05-23T05:57:25Z","author_association":"NONE","body":"### Issue Description\r\n\r\nWhen trying to start my app on an Android device, the splash screen shows and then never transitions to the tabs/screen.\r\n\r\n### Steps to Reproduce / Code Snippets / Screenshots\r\n\r\nI followed the setup instructions for Android, it's not the first time I've done so and for some reason the Android app hangs completely on the splash screen.  Here are my adjusted native files.  I hope one of you can spot some dumb mistake I've made.  Note that the entry point is `index.js` and I've registered the screen(s) and run `Nativation.startTabBasedApp/startSingleScreenApp` (tried both).  If you need to see that let me know.  It seems to be down to the native code.  I've eliminated all extraneous startup JS and the issue persists.\r\n\r\n**android/settings.gradle**:\r\n```gradle\r\nrootProject.name = 'MyApp'\r\ninclude ':react-native-navigation'\r\nproject(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/android/app/')\r\ninclude ':app'\r\n```\r\n\r\n**android/app/build.gradle**:\r\n```gradle\r\nandroid {\r\n    compileSdkVersion 25\r\n    buildToolsVersion \"25.0.1\"\r\n...\r\n\r\ndependencies {\r\n    compile fileTree(dir: \"libs\", include: [\"*.jar\"])\r\n    compile \"com.android.support:appcompat-v7:23.0.1\"\r\n    compile \"com.facebook.react:react-native:+\"  // From node_modules\r\n    compile project(':react-native-navigation')\r\n}\r\n```\r\n**MainActivity**:\r\n```java\r\npackage com.ma.android;\r\n\r\nimport android.view.View;\r\nimport android.widget.ImageView;\r\nimport com.facebook.react.ReactActivity;\r\nimport com.reactnativenavigation.controllers.SplashActivity;\r\n\r\npublic class MainActivity extends SplashActivity {\r\n  @Override\r\n    public View createSplashLayout() {\r\n        ImageView splash = new ImageView(this);\r\n        splash.setImageResource(R.drawable.screen);\r\n        splash.setScaleType(ImageView.ScaleType.CENTER_CROP);\r\n\r\n        return splash;\r\n    }\r\n}\r\n```\r\n\r\n**MainApplication**:\r\n```java\r\npackage com.myApp.android;\r\n\r\nimport com.facebook.react.ReactPackage;\r\n\r\nimport java.util.Arrays;\r\nimport java.util.List;\r\n\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  }\r\n\r\n  @Override\r\n  public List<ReactPackage> createAdditionalReactPackages() {\r\n    return getPackages();\r\n  }\r\n\r\n  @Override\r\n  public String getJSMainModuleName() {\r\n    return \"index\";\r\n  }\r\n}\r\n```\r\n\r\n**AndroidManifest**:\r\n```xml\r\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    package=\"com.myApp.android\">\r\n\r\n    <uses-permission android:name=\"android.permission.INTERNET\" />\r\n    <uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>\r\n\r\n    <application\r\n      android:name=\".MainApplication\"\r\n      android:label=\"@string/app_name\"\r\n      android:icon=\"@mipmap/ic_launcher\"\r\n      android:allowBackup=\"false\"\r\n      android:theme=\"@style/AppTheme\">\r\n      <activity\r\n        android:name=\".MainActivity\"\r\n        android:label=\"@string/app_name\"\r\n        android:configChanges=\"keyboard|keyboardHidden|orientation|screenSize\"\r\n        android:windowSoftInputMode=\"adjustResize\">\r\n        <intent-filter>\r\n            <action android:name=\"android.intent.action.MAIN\" />\r\n            <category android:name=\"android.intent.category.LAUNCHER\" />\r\n        </intent-filter>\r\n      </activity>\r\n      <activity android:name=\"com.facebook.react.devsupport.DevSettingsActivity\" />\r\n    </application>\r\n\r\n</manifest>\r\n```\r\n\r\n---\r\n### Environment\r\n* React Native Navigation version: ^1.1.450\r\n* React Native version: 0.55.3\r\n* Platform(s) (iOS, Android, or both?): Android\r\n* Device info (Simulator/Device? OS version? Debug/Release?): Device, 8.1.0 (but have tried others), Debug.\r\n"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/433707991","html_url":"https://github.com/wix/react-native-navigation/issues/3218#issuecomment-433707991","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3218","id":433707991,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzcwNzk5MQ==","user":{"login":"Yousefjb","id":6010585,"node_id":"MDQ6VXNlcjYwMTA1ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/6010585?v=4","gravatar_id":"","url":"https://api.github.com/users/Yousefjb","html_url":"https://github.com/Yousefjb","followers_url":"https://api.github.com/users/Yousefjb/followers","following_url":"https://api.github.com/users/Yousefjb/following{/other_user}","gists_url":"https://api.github.com/users/Yousefjb/gists{/gist_id}","starred_url":"https://api.github.com/users/Yousefjb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yousefjb/subscriptions","organizations_url":"https://api.github.com/users/Yousefjb/orgs","repos_url":"https://api.github.com/users/Yousefjb/repos","events_url":"https://api.github.com/users/Yousefjb/events{/privacy}","received_events_url":"https://api.github.com/users/Yousefjb/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T14:02:39Z","updated_at":"2018-10-28T14:02:39Z","author_association":"NONE","body":"@adirzoari you have to go to Apps settings in your device and find your app then press clear storage."}}
{"actor":{"display_login":"Yousefjb"}}