{"action":"closed","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/238","repository_url":"https://api.github.com/repos/aksonov/react-native-router-flux","labels_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/238/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/238/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/238","id":135270910,"number":238,"title":"Unable to set selected default tab","user":{"login":"ippy04","id":69661,"avatar_url":"https://avatars.githubusercontent.com/u/69661?v=3","gravatar_id":"","url":"https://api.github.com/users/ippy04","html_url":"https://github.com/ippy04","followers_url":"https://api.github.com/users/ippy04/followers","following_url":"https://api.github.com/users/ippy04/following{/other_user}","gists_url":"https://api.github.com/users/ippy04/gists{/gist_id}","starred_url":"https://api.github.com/users/ippy04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ippy04/subscriptions","organizations_url":"https://api.github.com/users/ippy04/orgs","repos_url":"https://api.github.com/users/ippy04/repos","events_url":"https://api.github.com/users/ippy04/events{/privacy}","received_events_url":"https://api.github.com/users/ippy04/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-21T22:44:52Z","updated_at":"2016-02-23T17:23:00Z","closed_at":"2016-02-23T17:23:00Z","body":"Hi - I'm trying to set the default tab to be the middle tab rather than the first tab on a 3 tab screen. My Route / Router:\r\n\r\n```\r\n<Route name=\"tabbar\" hideNavBar={true}>\r\n    <Router footer={TabBar} hideNavBar={true}>\r\n        <Route name=\"foo\" component={Foo1} title=\"Foo1\" icon={FooIcon} schema=\"tab\" />\r\n        <Route name=\"foo2\" component={Foo2} title=\"Foo2\" icon={FooIcon2} schema=\"tab\" />\r\n        <Route name=\"foo3\" component={Foo3} title=\"Foo3\" icon={FooIcon3} schema=\"tab\" />      \r\n    </Router>\r\n</Route>\r\n```\r\n\r\nTrying to set the selected prop on the react-native-tabs component copied from https://github.com/aksonov/react-native-router-flux/blob/master/TabBar.js\r\n\r\n```\r\n<Tabs selected=\"foo2\" onSelect={this.onSelect.bind(this)} {...this.props}>\r\n    {this.state.children}\r\n</Tabs>\r\n```\r\n\r\nResults in a \"cannot find router for route=foo2 current router=undefined\" error\r\n\r\nI'm assuming this is related to #164? Any ideas on how to set the default tab to not be the first defined route?\r\n\r\nThanks!"}}