{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/367","repository_url":"https://api.github.com/repos/ant-design/ant-design-mobile","labels_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/367/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/367/events","html_url":"https://github.com/ant-design/ant-design-mobile/issues/367","id":182432209,"number":367,"title":"提供上手文档","user":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"labels":[{"id":293173319,"url":"https://api.github.com/repos/ant-design/ant-design-mobile/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"warmhug","id":2011119,"avatar_url":"https://avatars.githubusercontent.com/u/2011119?v=3","gravatar_id":"","url":"https://api.github.com/users/warmhug","html_url":"https://github.com/warmhug","followers_url":"https://api.github.com/users/warmhug/followers","following_url":"https://api.github.com/users/warmhug/following{/other_user}","gists_url":"https://api.github.com/users/warmhug/gists{/gist_id}","starred_url":"https://api.github.com/users/warmhug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warmhug/subscriptions","organizations_url":"https://api.github.com/users/warmhug/orgs","repos_url":"https://api.github.com/users/warmhug/repos","events_url":"https://api.github.com/users/warmhug/events{/privacy}","received_events_url":"https://api.github.com/users/warmhug/received_events","type":"User","site_admin":false},"assignees":[{"login":"warmhug","id":2011119,"avatar_url":"https://avatars.githubusercontent.com/u/2011119?v=3","gravatar_id":"","url":"https://api.github.com/users/warmhug","html_url":"https://github.com/warmhug","followers_url":"https://api.github.com/users/warmhug/followers","following_url":"https://api.github.com/users/warmhug/following{/other_user}","gists_url":"https://api.github.com/users/warmhug/gists{/gist_id}","starred_url":"https://api.github.com/users/warmhug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warmhug/subscriptions","organizations_url":"https://api.github.com/users/warmhug/orgs","repos_url":"https://api.github.com/users/warmhug/repos","events_url":"https://api.github.com/users/warmhug/events{/privacy}","received_events_url":"https://api.github.com/users/warmhug/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2016-10-12T04:22:34Z","updated_at":"2016-12-20T09:32:56Z","closed_at":null,"body":"按傻瓜式的步骤跑通最简单的页面。用以解决『找不到模块』『样式未加载』『按需加载失效』『我的组件为什么这么大』等常见问题。\r\n\r\n相关 issue：#366 #363 #360 #352 （十个有五个都是这种问题，用户都在门外进不来）\r\n\r\n目标是设计师都能跑通流程。\r\n\r\n- [ ] web 版本\r\n- [ ] ios 版本\r\n- [ ] android 版本\r\n\r\n---\r\n\r\n现有的脚手架：#56"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/comments/268196779","html_url":"https://github.com/ant-design/ant-design-mobile/issues/367#issuecomment-268196779","issue_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/367","id":268196779,"user":{"login":"roytan883","id":4022752,"avatar_url":"https://avatars.githubusercontent.com/u/4022752?v=3","gravatar_id":"","url":"https://api.github.com/users/roytan883","html_url":"https://github.com/roytan883","followers_url":"https://api.github.com/users/roytan883/followers","following_url":"https://api.github.com/users/roytan883/following{/other_user}","gists_url":"https://api.github.com/users/roytan883/gists{/gist_id}","starred_url":"https://api.github.com/users/roytan883/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roytan883/subscriptions","organizations_url":"https://api.github.com/users/roytan883/orgs","repos_url":"https://api.github.com/users/roytan883/repos","events_url":"https://api.github.com/users/roytan883/events{/privacy}","received_events_url":"https://api.github.com/users/roytan883/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T09:32:56Z","updated_at":"2016-12-20T09:32:56Z","body":"我提供一个我刚刚写完的android react native antd-mobile上手文档：\r\n\r\n### 一：按照react native官网安装让hello world在手机上跑起来\r\n\r\n### 二：安装antd-mobile\r\n* 修改项目目录下的package.json，并安装一下缺失的npm包：\r\n```\r\n  \"dependencies\": {\r\n    \"antd-mobile\": \"^0.9.12\",\r\n    \"react\": \"^15.4.1\",\r\n    \"react-dom\": \"^15.4.1\",\r\n    \"react-native\": \"0.39.2\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-jest\": \"18.0.0\",\r\n    \"babel-plugin-import\": \"^1.1.0\",\r\n    \"babel-plugin-transform-runtime\": \"^6.15.0\",\r\n    \"babel-preset-react-native\": \"^1.9.1\",\r\n    \"jest\": \"18.0.0\",\r\n    \"react-test-renderer\": \"15.4.1\"\r\n  },\r\n```\r\n\r\n* 修改项目目录下的.babelrc\r\n```\r\n{\r\n  \"presets\": [\"react-native\"],\r\n  \"plugins\": [\r\n    [\"import\", {\"libraryName\": \"antd-mobile\"}],\r\n    [\"transform-runtime\", {\"polyfill\": false, \"regenerator\": true}]\r\n  ]\r\n}\r\n```\r\n* 代码index.android.js中使用\r\n```\r\nimport { Button } from 'antd-mobile';\r\n<Button type=\"primary\">Start</Button>\r\n```\r\n\r\n### 三：react-native start启动packager，手机上Reload菜单重载js文件\r\n"}}
{"actor":{"display_login":"roytan883"}}