{"action":"closed","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/2608","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/2608/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/2608/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/2608/events","html_url":"https://github.com/ant-design/ant-design-mobile/issues/2608","id":328461103,"node_id":"MDU6SXNzdWUzMjg0NjExMDM=","number":2608,"title":"Cannot find module '../style/images/arrow.png' from 'ListItem.native.js'","user":{"login":"zhaozhiming","id":1436694,"node_id":"MDQ6VXNlcjE0MzY2OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1436694?v=4","gravatar_id":"","url":"https://api.github.com/users/zhaozhiming","html_url":"https://github.com/zhaozhiming","followers_url":"https://api.github.com/users/zhaozhiming/followers","following_url":"https://api.github.com/users/zhaozhiming/following{/other_user}","gists_url":"https://api.github.com/users/zhaozhiming/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaozhiming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaozhiming/subscriptions","organizations_url":"https://api.github.com/users/zhaozhiming/orgs","repos_url":"https://api.github.com/users/zhaozhiming/repos","events_url":"https://api.github.com/users/zhaozhiming/events{/privacy}","received_events_url":"https://api.github.com/users/zhaozhiming/received_events","type":"User","site_admin":false},"labels":[{"id":417903837,"node_id":"MDU6TGFiZWw0MTc5MDM4Mzc=","url":"https://api.github.com/repos/ant-design/ant-design-mobile/labels/type:%20react%20native","name":"type: react native","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-01T10:14:28Z","updated_at":"2018-06-06T08:54:56Z","closed_at":"2018-06-06T08:54:56Z","author_association":"NONE","body":"- [x] I have searched the [issues](https://github.com/ant-design/ant-design-mobile/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### Version\r\n2.1.7\r\n\r\n### Environment\r\nMac OS Hight sierra 10.13.2, React-Native 0.55.2\r\n\r\n### Reproduction link\r\n[https://github.com/zhaozhiming/antd-mobile-listitem-bug](https://github.com/zhaozhiming/antd-mobile-listitem-bug)\r\n\r\n### Steps to reproduce\r\n```sh\r\nyarn install \r\nyarn test\r\n```\r\nAnd there is the error：\r\n\r\n```sh\r\nyarn run v1.5.1\r\n$ jest\r\n FAIL  ./App.test.js\r\n  ✕ renders without crashing (250ms)\r\n\r\n  ● renders without crashing\r\n\r\n    Cannot find module '../style/images/arrow.png' from 'ListItem.native.js'\r\n\r\n      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:169:17)\r\n      at Item.render (node_modules/antd-mobile/lib/list/ListItem.native.js:223:92)\r\n      at finishClassComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:3940:33)\r\n      at updateClassComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:3908:12)\r\n      at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:4529:16)\r\n\r\n  console.error node_modules/react-test-renderer/cjs/react-test-renderer.development.js:5190\r\n    The above error occurred in the <Item> component:\r\n        in Item (created by App)\r\n        in View (created by Component)\r\n        in Component (created by List)\r\n        in View (created by Component)\r\n        in Component (created by List)\r\n        in List (created by App)\r\n        in View (created by Component)\r\n        in Component (created by App)\r\n        in App\r\n\r\n    Consider adding an error boundary to your tree to customize error handling behavior.\r\n    Visit https://fb.me/react-error-boundaries to learn more about error boundaries.\r\n\r\nTest Suites: 1 failed, 1 total\r\nTests:       1 failed, 1 total\r\nSnapshots:   0 total\r\nTime:        1.193s, estimated 3s\r\nRan all test suites.\r\nerror An unexpected error occurred: \"Command failed.\r\n```\r\n\r\n### What is expected?\r\nrun test successful\r\n\r\n### What is actually happening?\r\nrun test failed\r\n\r\n---\r\nI found `antd-mobile/lib/list/ListItem.native.js` require('../style/images/arrow.png'), but files in `../style/images` are `arrow@2x.png`  and `arrow@2x.png` but not `arrow.png`.\r\n\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"}}
{"actor":{"display_login":"silentcloud"}}