{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-redux/issues/393","repository_url":"https://api.github.com/repos/reactjs/react-redux","labels_url":"https://api.github.com/repos/reactjs/react-redux/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-redux/issues/393/comments","events_url":"https://api.github.com/repos/reactjs/react-redux/issues/393/events","html_url":"https://github.com/reactjs/react-redux/issues/393","id":157051814,"number":393,"title":"connect() doing something to static methods in parent class?","user":{"login":"braco","id":2449172,"avatar_url":"https://avatars.githubusercontent.com/u/2449172?v=3","gravatar_id":"","url":"https://api.github.com/users/braco","html_url":"https://github.com/braco","followers_url":"https://api.github.com/users/braco/followers","following_url":"https://api.github.com/users/braco/following{/other_user}","gists_url":"https://api.github.com/users/braco/gists{/gist_id}","starred_url":"https://api.github.com/users/braco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braco/subscriptions","organizations_url":"https://api.github.com/users/braco/orgs","repos_url":"https://api.github.com/users/braco/repos","events_url":"https://api.github.com/users/braco/events{/privacy}","received_events_url":"https://api.github.com/users/braco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-26T18:46:28Z","updated_at":"2016-05-26T19:01:19Z","closed_at":"2016-05-26T18:51:13Z","body":"No idea why this is happening. Any clues?\r\n\r\n```\r\nclass Bar {\r\n  static renderNavigationBar(props) {\r\n    return <CustomView />;\r\n  }\r\n}\r\n\r\nclass Foo1 extends Bar {}\r\n```\r\n\r\nThe function of the static method is probably irrelevant, but it tells rn to use that custom view for the navigation bar: https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Navigator/Navigator.js#L1120\r\n\r\nThis works as expected:\r\n\r\n```\r\nexport default Foo1;\r\n```\r\n\r\nAnd without inheritance, this works as expected:\r\n\r\n```\r\nclass Foo2 {\r\n  static renderNavigationBar(props) {\r\n    return <CustomView />;\r\n  }\r\n}\r\nexport default Foo2;\r\n```\r\n\r\nBut with inheritance, this doesn't work – it's as if there was no static method on parent.\r\n\r\n```\r\nexport default connect(...)(Foo1)\r\n```\r\n\r\nIs this a redux issue?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/reactjs/react-redux/issues/comments/221963527","html_url":"https://github.com/reactjs/react-redux/issues/393#issuecomment-221963527","issue_url":"https://api.github.com/repos/reactjs/react-redux/issues/393","id":221963527,"user":{"login":"braco","id":2449172,"avatar_url":"https://avatars.githubusercontent.com/u/2449172?v=3","gravatar_id":"","url":"https://api.github.com/users/braco","html_url":"https://github.com/braco","followers_url":"https://api.github.com/users/braco/followers","following_url":"https://api.github.com/users/braco/following{/other_user}","gists_url":"https://api.github.com/users/braco/gists{/gist_id}","starred_url":"https://api.github.com/users/braco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braco/subscriptions","organizations_url":"https://api.github.com/users/braco/orgs","repos_url":"https://api.github.com/users/braco/repos","events_url":"https://api.github.com/users/braco/events{/privacy}","received_events_url":"https://api.github.com/users/braco/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T19:01:19Z","updated_at":"2016-05-26T19:01:19Z","body":"Thanks @gearon. How would that work with a static method on the parent container, though? static renderNavigationBar() still wouldn't get picked up with the technique you linked to:\r\n\r\n```\r\nclass Foo1 {\r\n  render() {\r\n     // static renderNavigationBar method is on Bar\r\n     <Bar>\r\n          ...\r\n     </Bar>\r\n  }\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"braco"}}