{"action":"created","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/3","labels_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/3/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/3/events","html_url":"https://github.com/aksonov/react-native-router-flux/pull/3","id":104714707,"number":3,"title":"Add ability to make titles dynamic","user":{"login":"tylermcginnis","id":2933430,"avatar_url":"https://avatars.githubusercontent.com/u/2933430?v=3","gravatar_id":"","url":"https://api.github.com/users/tylermcginnis","html_url":"https://github.com/tylermcginnis","followers_url":"https://api.github.com/users/tylermcginnis/followers","following_url":"https://api.github.com/users/tylermcginnis/following{/other_user}","gists_url":"https://api.github.com/users/tylermcginnis/gists{/gist_id}","starred_url":"https://api.github.com/users/tylermcginnis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylermcginnis/subscriptions","organizations_url":"https://api.github.com/users/tylermcginnis/orgs","repos_url":"https://api.github.com/users/tylermcginnis/repos","events_url":"https://api.github.com/users/tylermcginnis/events{/privacy}","received_events_url":"https://api.github.com/users/tylermcginnis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-03T14:56:00Z","updated_at":"2015-09-03T16:26:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/pulls/3","html_url":"https://github.com/aksonov/react-native-router-flux/pull/3","diff_url":"https://github.com/aksonov/react-native-router-flux/pull/3.diff","patch_url":"https://github.com/aksonov/react-native-router-flux/pull/3.patch"},"body":"In our app, all of the navbar titles aren't static. We have a few places where we're putting the users name or the title of the specific post in the title. This pull request makes it possible to dynamically update the routes title by passing in the name of the title as the second argument to ```Animation.myRoute```. \r\n\r\n![rfbis7azsv](https://cloud.githubusercontent.com/assets/2933430/9661762/1e86c08a-5254-11e5-8ce8-94829c165ab1.gif)\r\n\r\nThe code for the above Gif looks like this,\r\n\r\n```\r\n    Actions.post({\r\n      authedUser: this.props.authedUser,\r\n      post: this.props.post\r\n    }, this.getTitle(this.props.post.title));\r\n```"},"comment":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/comments/137503052","html_url":"https://github.com/aksonov/react-native-router-flux/pull/3#issuecomment-137503052","issue_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/3","id":137503052,"user":{"login":"aksonov","id":1321329,"avatar_url":"https://avatars.githubusercontent.com/u/1321329?v=3","gravatar_id":"","url":"https://api.github.com/users/aksonov","html_url":"https://github.com/aksonov","followers_url":"https://api.github.com/users/aksonov/followers","following_url":"https://api.github.com/users/aksonov/following{/other_user}","gists_url":"https://api.github.com/users/aksonov/gists{/gist_id}","starred_url":"https://api.github.com/users/aksonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aksonov/subscriptions","organizations_url":"https://api.github.com/users/aksonov/orgs","repos_url":"https://api.github.com/users/aksonov/repos","events_url":"https://api.github.com/users/aksonov/events{/privacy}","received_events_url":"https://api.github.com/users/aksonov/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T16:26:12Z","updated_at":"2015-09-03T16:26:12Z","body":"I believe it should be supported already. Have you tried to just pass title param to action?\n\nPavel.\n\n> 3 сент. 2015, в 16:56, Tyler McGinnis <notifications@github.com> написал(а):\n> \n> In our app, all of the navbar titles aren't static. We have a few places where we're putting the users name or the title of the specific post in the title. This pull request makes it possible to dynamically update the routes title by passing in the name of the title as the second argument to Animation.myRoute.\n> \n> \n> \n> The code for the above Gif looks like this,\n> \n>     Actions.post({\n>       authedUser: this.props.authedUser,\n>       post: this.props.post\n>     }, this.getTitle(this.props.post.title));\n> You can view, comment on, or merge this pull request online at:\n> \n>   https://github.com/aksonov/react-native-router-flux/pull/3\n> \n> Commit Summary\n> \n> Add ability to make titles dynamic\n> File Changes\n> \n> M index.js (6)\n> Patch Links:\n> \n> https://github.com/aksonov/react-native-router-flux/pull/3.patch\n> https://github.com/aksonov/react-native-router-flux/pull/3.diff\n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}