{"action":"created","issue":{"url":"https://api.github.com/repos/efkan/rndrawer-implemented-rnrouter/issues/17","repository_url":"https://api.github.com/repos/efkan/rndrawer-implemented-rnrouter","labels_url":"https://api.github.com/repos/efkan/rndrawer-implemented-rnrouter/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/efkan/rndrawer-implemented-rnrouter/issues/17/comments","events_url":"https://api.github.com/repos/efkan/rndrawer-implemented-rnrouter/issues/17/events","html_url":"https://github.com/efkan/rndrawer-implemented-rnrouter/issues/17","id":206512515,"number":17,"title":"Unhandled JS Exception: [react-native-router-flux] unique key should be defined","user":{"login":"harish220","id":120794,"avatar_url":"https://avatars.githubusercontent.com/u/120794?v=3","gravatar_id":"","url":"https://api.github.com/users/harish220","html_url":"https://github.com/harish220","followers_url":"https://api.github.com/users/harish220/followers","following_url":"https://api.github.com/users/harish220/following{/other_user}","gists_url":"https://api.github.com/users/harish220/gists{/gist_id}","starred_url":"https://api.github.com/users/harish220/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harish220/subscriptions","organizations_url":"https://api.github.com/users/harish220/orgs","repos_url":"https://api.github.com/users/harish220/repos","events_url":"https://api.github.com/users/harish220/events{/privacy}","received_events_url":"https://api.github.com/users/harish220/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-09T14:00:26Z","updated_at":"2017-02-09T15:19:14Z","closed_at":null,"body":"I am getting \"[react-native-router-flux] unique key should be defined error.\" and in console \"Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of `Example`.\r\n[react-native-router-flux] unique key should be defined \r\nUnhandled JS Exception: [react-native-router-flux] unique key should be defined \" \r\n\r\nI have followed exact below steps:\r\n1.Run the command of react-native init reactNativeRouterFluxSample & cd reactNativeRouterFluxSample\r\n2.Then npm i --save react-native-drawer@1.16.7 & npm i --save react-native-router-flux@2.2.7 & npm i --save react-native-button@1.4.2\r\n3.Then copy src folder and index.ios.js file of rndrawer-implemented-rnrouter into the new initiated project.\r\n4.Finally, official site says that; \"Open ios/reactNativeRouterFluxSample.xcodeproj and hit run in Xcode\".\r\n\r\nBelow is the render method in Example.js\r\n\r\n`render() {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Router name='root'>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Schema name='boot' sceneConfig={Navigator.SceneConfigs.FloatFromRight} hideNavBar type='replace' // When type='replace' is existing Actions.pop never work\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Route name='Login' component={Login} schema='boot' initial title=\"Welcome\"/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Route name='Register' component={Register} hideNavBar title=\"Register Screen\"/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Route name='Drawer' hideNavBar type='reset'>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<SideDrawer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tref={c => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? this.drawer = c.drawer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: this.drawer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/*Nested Routes are used for to manage the navbar cases (Route[Home] \\ Router \\ Route[Home_] )\r\n\t\t\t\t\t\tReact-Native-Reouter-Flux actions use the route names.*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Router\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname='drawerRoot'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsceneStyle={styles.routerScene}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigationBarStyle={styles.navBar}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitleStyle={styles.navTitle}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Schema\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname='home'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsceneConfig={Navigator.SceneConfigs.FloatFromRight}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thideNavBar={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trenderLeftButton={this.renderMenuButton}/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Schema\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname='interior'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsceneConfig={Navigator.SceneConfigs.FloatFromRight}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thideNavBar={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trenderLeftButton={this.renderBackButton}/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Route name='Home' component={ScreenHome} schema='home' title='Home'/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Route name='Screen1' component={Screen1} schema='interior' title='Screen1'/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Route name='Screen2' component={Screen2} schema='interior' title='Screen2'/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Router>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</SideDrawer>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Route>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</Router>\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t}`"},"comment":{"url":"https://api.github.com/repos/efkan/rndrawer-implemented-rnrouter/issues/comments/278672535","html_url":"https://github.com/efkan/rndrawer-implemented-rnrouter/issues/17#issuecomment-278672535","issue_url":"https://api.github.com/repos/efkan/rndrawer-implemented-rnrouter/issues/17","id":278672535,"user":{"login":"efkan","id":6974198,"avatar_url":"https://avatars.githubusercontent.com/u/6974198?v=3","gravatar_id":"","url":"https://api.github.com/users/efkan","html_url":"https://github.com/efkan","followers_url":"https://api.github.com/users/efkan/followers","following_url":"https://api.github.com/users/efkan/following{/other_user}","gists_url":"https://api.github.com/users/efkan/gists{/gist_id}","starred_url":"https://api.github.com/users/efkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efkan/subscriptions","organizations_url":"https://api.github.com/users/efkan/orgs","repos_url":"https://api.github.com/users/efkan/repos","events_url":"https://api.github.com/users/efkan/events{/privacy}","received_events_url":"https://api.github.com/users/efkan/received_events","type":"User","site_admin":false},"created_at":"2017-02-09T15:19:14Z","updated_at":"2017-02-09T15:19:14Z","body":"I guess this issue is regarding with `breaking-changes` in `react-native` upgrades.\r\n\r\nThe files I use might be overcome this issue.\r\n\r\nCould you please try to replace [these](https://github.com/efkan/rndrawer-implemented-rnrouter/blob/master/change_these_folders_with_their_originals.zip) folders with their originals in `node_modules` folder?"}}
{"actor":{"display_login":"efkan"}}