{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/3557","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3557/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3557/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3557/events","html_url":"https://github.com/wix/react-native-navigation/issues/3557","id":341310724,"node_id":"MDU6SXNzdWUzNDEzMTA3MjQ=","number":3557,"title":"[v2] TopTabs Navigation not not working in v2","user":{"login":"sandersjj","id":176772,"node_id":"MDQ6VXNlcjE3Njc3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/176772?v=4","gravatar_id":"","url":"https://api.github.com/users/sandersjj","html_url":"https://github.com/sandersjj","followers_url":"https://api.github.com/users/sandersjj/followers","following_url":"https://api.github.com/users/sandersjj/following{/other_user}","gists_url":"https://api.github.com/users/sandersjj/gists{/gist_id}","starred_url":"https://api.github.com/users/sandersjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandersjj/subscriptions","organizations_url":"https://api.github.com/users/sandersjj/orgs","repos_url":"https://api.github.com/users/sandersjj/repos","events_url":"https://api.github.com/users/sandersjj/events{/privacy}","received_events_url":"https://api.github.com/users/sandersjj/received_events","type":"User","site_admin":false},"labels":[{"id":951487479,"node_id":"MDU6TGFiZWw5NTE0ODc0Nzk=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/%F0%9F%8F%9A%20stale","name":"🏚 stale","color":"e6e6e6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-15T10:35:38Z","updated_at":"2018-10-01T22:56:45Z","closed_at":"2018-09-29T14:20:56Z","author_association":"NONE","body":"### TopTabs Navigation not not working in V2\r\n\r\nHi I am trying to implement a TopTabs navigation. My application does not crash, however I don't see any tabs on the top of my screens. \r\n\r\n### Steps to Reproduce / Code Snippets / Screenshots\r\n\r\n```javascript\r\nNavigation.registerComponent('news.SplashScreen', () => SplashScreen);\r\nNavigation.registerComponent('news.MainScreen', () => MainScreen);\r\n\r\nNavigation.events().registerAppLaunchedListener(() => {\r\n  Navigation.setRoot({\r\n    root: {\r\n      topTabs: {\r\n        children: [\r\n          {\r\n            component: {\r\n              id: '234',\r\n              name: 'news.MainScreen',\r\n              passProps: {\r\n                text: 'This is a test'\r\n              },\r\n            },\r\n            options: {\r\n              topTab:{\r\n                title: 'tab 1'\r\n              }\r\n            }\r\n          },\r\n          {\r\n            component: {\r\n              id: '043',\r\n              name: 'news.SplashScreen',\r\n              passProps: {\r\n                text: 'This is a test2'\r\n              },\r\n            },\r\n            options: {\r\n              topTab:{\r\n                title: 'tab 2'\r\n              }\r\n            }\r\n          }\r\n        ]\r\n      },\r\n    }\r\n  });\r\n});\r\n```\r\n\r\n---\r\n### Environment\r\n* React Native Navigation version: 0.55.4\r\n* React Native version: 2.0.2411\r\n* Platform(s) (iOS, Android, or both?): Android (haven't tested IOS yet)\r\n* Device info (Simulator/Device? OS version? Debug/Release?): Android simulator\r\n"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/426091291","html_url":"https://github.com/wix/react-native-navigation/issues/3557#issuecomment-426091291","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3557","id":426091291,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjA5MTI5MQ==","user":{"login":"SanchezQb","id":15196879,"node_id":"MDQ6VXNlcjE1MTk2ODc5","avatar_url":"https://avatars1.githubusercontent.com/u/15196879?v=4","gravatar_id":"","url":"https://api.github.com/users/SanchezQb","html_url":"https://github.com/SanchezQb","followers_url":"https://api.github.com/users/SanchezQb/followers","following_url":"https://api.github.com/users/SanchezQb/following{/other_user}","gists_url":"https://api.github.com/users/SanchezQb/gists{/gist_id}","starred_url":"https://api.github.com/users/SanchezQb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SanchezQb/subscriptions","organizations_url":"https://api.github.com/users/SanchezQb/orgs","repos_url":"https://api.github.com/users/SanchezQb/repos","events_url":"https://api.github.com/users/SanchezQb/events{/privacy}","received_events_url":"https://api.github.com/users/SanchezQb/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T22:56:45Z","updated_at":"2018-10-01T22:56:45Z","author_association":"NONE","body":"I still cant see any topTabs here. My code below, please help\r\n`import { Navigation } from 'react-native-navigation'\r\n\r\nexport const goToHome = () => Navigation.setRoot({\r\n    root: {\r\n      stack: {\r\n        id: 'test',\r\n        children: [\r\n          {\r\n            topTabs: {\r\n              children: [\r\n                {\r\n                  component: {\r\n                    name: \"Home\",\r\n                    passProps: {\r\n                        text: \"HOme\"\r\n                    },\r\n                    options: {\r\n                      topTab: {\r\n                        title: \"Tab 1\",\r\n                      },\r\n                    },\r\n                  },\r\n                },\r\n                {\r\n                  component: {\r\n                    name: \"Home\",\r\n                    options: {\r\n                      topTab: {\r\n                        title: \"Tab 2\",\r\n                      },\r\n                    },\r\n                  },\r\n                },\r\n              ],\r\n              options: {\r\n                  topTabs: {\r\n                      visible: true\r\n                  }\r\n              }\r\n            },\r\n          },\r\n        ],\r\n      },\r\n    },\r\n  });`"}}
{"actor":{"display_login":"SanchezQb"}}