{"action":"created","issue":{"url":"https://api.github.com/repos/t4t5/react-native-router/issues/54","labels_url":"https://api.github.com/repos/t4t5/react-native-router/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/t4t5/react-native-router/issues/54/comments","events_url":"https://api.github.com/repos/t4t5/react-native-router/issues/54/events","html_url":"https://github.com/t4t5/react-native-router/pull/54","id":98463673,"number":54,"title":"Allow the passing of props and bumped dependency versions","user":{"login":"MikaelCarpenter","id":8742292,"avatar_url":"https://avatars.githubusercontent.com/u/8742292?v=3","gravatar_id":"","url":"https://api.github.com/users/MikaelCarpenter","html_url":"https://github.com/MikaelCarpenter","followers_url":"https://api.github.com/users/MikaelCarpenter/followers","following_url":"https://api.github.com/users/MikaelCarpenter/following{/other_user}","gists_url":"https://api.github.com/users/MikaelCarpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelCarpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelCarpenter/subscriptions","organizations_url":"https://api.github.com/users/MikaelCarpenter/orgs","repos_url":"https://api.github.com/users/MikaelCarpenter/repos","events_url":"https://api.github.com/users/MikaelCarpenter/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelCarpenter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-31T20:13:59Z","updated_at":"2015-09-03T01:44:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/t4t5/react-native-router/pulls/54","html_url":"https://github.com/t4t5/react-native-router/pull/54","diff_url":"https://github.com/t4t5/react-native-router/pull/54.diff","patch_url":"https://github.com/t4t5/react-native-router/pull/54.patch"},"body":"## Why\r\n#### props\r\nOriginally had to pass `data` object and call it via `this.props.data.myProp` which seems unnecessary.\r\n\r\n#### dependencies\r\nIf you had a recent version of react-native, you would get errors when running `npm start`\r\n```\r\nUnable to resolve module ./base64-vlq from /Users/mikaelcarpenter/gears-native/node_modules/react-native-router/node_modules/react-native/Libraries/JavaScriptAppEngine/Initialization/SourceMap.js\r\n\r\n{so on and so on}\r\n```\r\n\r\n## What\r\n#### props\r\nInstead of passing `data` in your route, you can now pass `passProps` which takes in an object, and then creates a prop for each `key: value` pair in the object.\r\n\r\n#### dependencies\r\nUpdated the version numbers in `package.json` dependencies.\r\n\r\nThis is also an update to a previous PR [(#47)](https://github.com/t4t5/react-native-router/pull/47) by wenkesj\r\n\r\n## Issue\r\nProps [#39](https://github.com/t4t5/react-native-router/issues/39)\r\nDependencies [#53](https://github.com/t4t5/react-native-router/issues/53)\r\n\r\n## Example\r\n```\r\n_initialRoute = {\r\n    name: 'Title'\r\n    component: Home\r\n    passProps: {\r\n        prop1: 'hi'\r\n        prop2: 'bye'\r\n    }\r\n}\r\n\r\nApp = React.createClass({\r\n    render: function() {\r\n        return (\r\n            <Router firstRoute={_initialRoute} />\r\n        )\r\n    }\r\n})\r\n\r\nmodule.exports = App\r\n```\r\nYour `Home` component can now use `this.props.prop1` and `this.props.prop2`"},"comment":{"url":"https://api.github.com/repos/t4t5/react-native-router/issues/comments/137298375","html_url":"https://github.com/t4t5/react-native-router/pull/54#issuecomment-137298375","issue_url":"https://api.github.com/repos/t4t5/react-native-router/issues/54","id":137298375,"user":{"login":"MikaelCarpenter","id":8742292,"avatar_url":"https://avatars.githubusercontent.com/u/8742292?v=3","gravatar_id":"","url":"https://api.github.com/users/MikaelCarpenter","html_url":"https://github.com/MikaelCarpenter","followers_url":"https://api.github.com/users/MikaelCarpenter/followers","following_url":"https://api.github.com/users/MikaelCarpenter/following{/other_user}","gists_url":"https://api.github.com/users/MikaelCarpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelCarpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelCarpenter/subscriptions","organizations_url":"https://api.github.com/users/MikaelCarpenter/orgs","repos_url":"https://api.github.com/users/MikaelCarpenter/repos","events_url":"https://api.github.com/users/MikaelCarpenter/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelCarpenter/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T01:44:28Z","updated_at":"2015-09-03T01:44:28Z","body":"@jhabdas I haven't checked it out yet, but would you want to use it for the nav bar transitions rather than the opacity from tween-state?"}}