{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/5031","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/5031/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/5031/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/5031/events","html_url":"https://github.com/facebook/react-native/issues/5031","id":124261202,"number":5031,"title":"[NavigatorIOS] Implement hidesBottomBarWhenPushed to hide TabBar while doing push in native module","user":{"login":"nicholasding","id":869176,"avatar_url":"https://avatars.githubusercontent.com/u/869176?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasding","html_url":"https://github.com/nicholasding","followers_url":"https://api.github.com/users/nicholasding/followers","following_url":"https://api.github.com/users/nicholasding/following{/other_user}","gists_url":"https://api.github.com/users/nicholasding/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasding/subscriptions","organizations_url":"https://api.github.com/users/nicholasding/orgs","repos_url":"https://api.github.com/users/nicholasding/repos","events_url":"https://api.github.com/users/nicholasding/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-29T20:04:04Z","updated_at":"2016-04-04T09:41:23Z","closed_at":null,"body":"I followed the discussion on https://github.com/facebook/react-native/issues/720 and https://github.com/facebook/react-native/issues/1489, it seems the problem is not solved yet.\r\n\r\nWhile it's really easy to implement in Objective-C while setting viewController.hidesBottomBarWhenPushed = YES, I'm wondering if it's possible to have it in native module.\r\n\r\n```\r\n// Objective-C\r\nUIViewController *vc = [[UIViewController alloc] init];\r\nvc.hidesBottomBarWhenPushed = YES;\r\n[self.navigationController pushViewController:vc animated:YES];\r\n```\r\n\r\n```\r\n// JavaScript\r\nthis.props.navigator.push({\r\n    title: 'Detailed View',\r\n    component: DetailedView,\r\n    hidesBottomBarWhenPushed: true, // if possible\r\n});\r\n```\r\n\r\nIn the meanwhile, I was trying to modify RCTNavItem.m to pass additional attribute (hidesBottomBarWhenPushed) and RCTNavigator.m to inject code before the [_navigationController pushViewController:vc animated:(currentReactCount > 1)];\r\n\r\nBut it doesn't work even though the attribute is correctly set before the pushViewController method, could anyone give me some insight about how to make it work?"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/205214890","html_url":"https://github.com/facebook/react-native/issues/5031#issuecomment-205214890","issue_url":"https://api.github.com/repos/facebook/react-native/issues/5031","id":205214890,"user":{"login":"follyxing","id":4349448,"avatar_url":"https://avatars.githubusercontent.com/u/4349448?v=3","gravatar_id":"","url":"https://api.github.com/users/follyxing","html_url":"https://github.com/follyxing","followers_url":"https://api.github.com/users/follyxing/followers","following_url":"https://api.github.com/users/follyxing/following{/other_user}","gists_url":"https://api.github.com/users/follyxing/gists{/gist_id}","starred_url":"https://api.github.com/users/follyxing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/follyxing/subscriptions","organizations_url":"https://api.github.com/users/follyxing/orgs","repos_url":"https://api.github.com/users/follyxing/repos","events_url":"https://api.github.com/users/follyxing/events{/privacy}","received_events_url":"https://api.github.com/users/follyxing/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T09:41:23Z","updated_at":"2016-04-04T09:41:23Z","body":"not solved yet?? +1111"}}