{"action":"created","issue":{"url":"https://api.github.com/repos/callstack/react-native-paper/issues/223","repository_url":"https://api.github.com/repos/callstack/react-native-paper","labels_url":"https://api.github.com/repos/callstack/react-native-paper/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/callstack/react-native-paper/issues/223/comments","events_url":"https://api.github.com/repos/callstack/react-native-paper/issues/223/events","html_url":"https://github.com/callstack/react-native-paper/issues/223","id":293120387,"number":223,"title":"Add imports to docs examples","user":{"login":"thymikee","id":5106466,"avatar_url":"https://avatars2.githubusercontent.com/u/5106466?v=4","gravatar_id":"","url":"https://api.github.com/users/thymikee","html_url":"https://github.com/thymikee","followers_url":"https://api.github.com/users/thymikee/followers","following_url":"https://api.github.com/users/thymikee/following{/other_user}","gists_url":"https://api.github.com/users/thymikee/gists{/gist_id}","starred_url":"https://api.github.com/users/thymikee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thymikee/subscriptions","organizations_url":"https://api.github.com/users/thymikee/orgs","repos_url":"https://api.github.com/users/thymikee/repos","events_url":"https://api.github.com/users/thymikee/events{/privacy}","received_events_url":"https://api.github.com/users/thymikee/received_events","type":"User","site_admin":false},"labels":[{"id":639879281,"url":"https://api.github.com/repos/callstack/react-native-paper/labels/docs","name":"docs","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"ferrannp","id":774577,"avatar_url":"https://avatars2.githubusercontent.com/u/774577?v=4","gravatar_id":"","url":"https://api.github.com/users/ferrannp","html_url":"https://github.com/ferrannp","followers_url":"https://api.github.com/users/ferrannp/followers","following_url":"https://api.github.com/users/ferrannp/following{/other_user}","gists_url":"https://api.github.com/users/ferrannp/gists{/gist_id}","starred_url":"https://api.github.com/users/ferrannp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferrannp/subscriptions","organizations_url":"https://api.github.com/users/ferrannp/orgs","repos_url":"https://api.github.com/users/ferrannp/repos","events_url":"https://api.github.com/users/ferrannp/events{/privacy}","received_events_url":"https://api.github.com/users/ferrannp/received_events","type":"User","site_admin":false},"assignees":[{"login":"ferrannp","id":774577,"avatar_url":"https://avatars2.githubusercontent.com/u/774577?v=4","gravatar_id":"","url":"https://api.github.com/users/ferrannp","html_url":"https://github.com/ferrannp","followers_url":"https://api.github.com/users/ferrannp/followers","following_url":"https://api.github.com/users/ferrannp/following{/other_user}","gists_url":"https://api.github.com/users/ferrannp/gists{/gist_id}","starred_url":"https://api.github.com/users/ferrannp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferrannp/subscriptions","organizations_url":"https://api.github.com/users/ferrannp/orgs","repos_url":"https://api.github.com/users/ferrannp/repos","events_url":"https://api.github.com/users/ferrannp/events{/privacy}","received_events_url":"https://api.github.com/users/ferrannp/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-01-31T11:16:41Z","updated_at":"2018-02-27T16:06:11Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently docs feature examples like this:\r\n```js\r\nconst MyComponent = () => (\r\n  <Button raised onPress={() => console.log('Pressed')}>\r\n    Press me\r\n  </Button>\r\n);\r\n```\r\nWhat I find not great for DX here is the lack of `import` statement, which clearly states how to import the module.\r\n\r\nThis looks much better and removes the ambiguity of how to import specific component:\r\n```js\r\nimport { Button } from 'react-native-paper';\r\n\r\nconst MyComponent = () => (\r\n  <Button raised onPress={() => console.log('Pressed')}>\r\n    Press me\r\n  </Button>\r\n);\r\n```"},"comment":{"url":"https://api.github.com/repos/callstack/react-native-paper/issues/comments/368930033","html_url":"https://github.com/callstack/react-native-paper/issues/223#issuecomment-368930033","issue_url":"https://api.github.com/repos/callstack/react-native-paper/issues/223","id":368930033,"user":{"login":"iamclaytonray","id":16495816,"avatar_url":"https://avatars3.githubusercontent.com/u/16495816?v=4","gravatar_id":"","url":"https://api.github.com/users/iamclaytonray","html_url":"https://github.com/iamclaytonray","followers_url":"https://api.github.com/users/iamclaytonray/followers","following_url":"https://api.github.com/users/iamclaytonray/following{/other_user}","gists_url":"https://api.github.com/users/iamclaytonray/gists{/gist_id}","starred_url":"https://api.github.com/users/iamclaytonray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamclaytonray/subscriptions","organizations_url":"https://api.github.com/users/iamclaytonray/orgs","repos_url":"https://api.github.com/users/iamclaytonray/repos","events_url":"https://api.github.com/users/iamclaytonray/events{/privacy}","received_events_url":"https://api.github.com/users/iamclaytonray/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T16:06:11Z","updated_at":"2018-02-27T16:06:11Z","author_association":"NONE","body":"Hmm. So, am I namespacing React or not?"}}
{"actor":{"display_login":"iamclaytonray"}}