{"action":"created","issue":{"url":"https://api.github.com/repos/react-community/react-navigation/issues/1480","repository_url":"https://api.github.com/repos/react-community/react-navigation","labels_url":"https://api.github.com/repos/react-community/react-navigation/issues/1480/labels{/name}","comments_url":"https://api.github.com/repos/react-community/react-navigation/issues/1480/comments","events_url":"https://api.github.com/repos/react-community/react-navigation/issues/1480/events","html_url":"https://github.com/react-community/react-navigation/issues/1480","id":228193373,"number":1480,"title":"How to verify the type of parameter passed","user":{"login":"lucasleelz","id":4484335,"avatar_url":"https://avatars1.githubusercontent.com/u/4484335?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasleelz","html_url":"https://github.com/lucasleelz","followers_url":"https://api.github.com/users/lucasleelz/followers","following_url":"https://api.github.com/users/lucasleelz/following{/other_user}","gists_url":"https://api.github.com/users/lucasleelz/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasleelz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasleelz/subscriptions","organizations_url":"https://api.github.com/users/lucasleelz/orgs","repos_url":"https://api.github.com/users/lucasleelz/repos","events_url":"https://api.github.com/users/lucasleelz/events{/privacy}","received_events_url":"https://api.github.com/users/lucasleelz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-12T05:43:26Z","updated_at":"2017-07-10T09:46:09Z","closed_at":null,"body":"### Current Behavior\r\n```\r\n this.props.navigation.navigate('About', {user: 'lucas'});\r\n```\r\nHow to verify this parameter in `About` is a string type\r\n\r\n### Expected Behavior\r\n\r\n```\r\nclass AboutScreen extends Component {\r\n    static propTypes = {\r\n        user: PropTypes.string.isRequired,\r\n   }\r\n}\r\n```\r\nI would like to be able to verify the parameters as above. \r\nwhat should I do?\r\n\r\n### Your Environment\r\n| software         | version\r\n| ---------------- | -------\r\n| react-navigation |  1.0.0-beta.9\r\n| react-native     |  0.44.0\r\n| node             | 7.5.0\r\n| npm       | 4.1.2\r\n"},"comment":{"url":"https://api.github.com/repos/react-community/react-navigation/issues/comments/314058226","html_url":"https://github.com/react-community/react-navigation/issues/1480#issuecomment-314058226","issue_url":"https://api.github.com/repos/react-community/react-navigation/issues/1480","id":314058226,"user":{"login":"lucasleelz","id":4484335,"avatar_url":"https://avatars1.githubusercontent.com/u/4484335?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasleelz","html_url":"https://github.com/lucasleelz","followers_url":"https://api.github.com/users/lucasleelz/followers","following_url":"https://api.github.com/users/lucasleelz/following{/other_user}","gists_url":"https://api.github.com/users/lucasleelz/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasleelz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasleelz/subscriptions","organizations_url":"https://api.github.com/users/lucasleelz/orgs","repos_url":"https://api.github.com/users/lucasleelz/repos","events_url":"https://api.github.com/users/lucasleelz/events{/privacy}","received_events_url":"https://api.github.com/users/lucasleelz/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T09:46:09Z","updated_at":"2017-07-10T09:46:09Z","body":"@Andreyco Thank you!\r\nBut, I still feel that the previous way is very good, do not like this.The level is too deep is very bad\r\n```\r\nclass AboutScreen extends Component {\r\n    static propTypes = {\r\n        user: PropTypes.string.isRequired,\r\n   }\r\n}\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"lucasleelz"}}