{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/8794","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/8794/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/8794/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/8794/events","html_url":"https://github.com/facebook/react-native/issues/8794","id":165671408,"number":8794,"title":"JS file with 1000+ image map gives fs operation timeout","user":{"login":"nak1b","id":2307104,"avatar_url":"https://avatars.githubusercontent.com/u/2307104?v=3","gravatar_id":"","url":"https://api.github.com/users/nak1b","html_url":"https://github.com/nak1b","followers_url":"https://api.github.com/users/nak1b/followers","following_url":"https://api.github.com/users/nak1b/following{/other_user}","gists_url":"https://api.github.com/users/nak1b/gists{/gist_id}","starred_url":"https://api.github.com/users/nak1b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nak1b/subscriptions","organizations_url":"https://api.github.com/users/nak1b/orgs","repos_url":"https://api.github.com/users/nak1b/repos","events_url":"https://api.github.com/users/nak1b/events{/privacy}","received_events_url":"https://api.github.com/users/nak1b/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-14T22:17:46Z","updated_at":"2016-07-14T22:25:31Z","closed_at":null,"body":"I have javascript file that looks like below. It has lots of object (1000+). As we cannot use dynamic name for images in react-native this is my work around.\r\n```\r\n\"grinning\": {\r\n        \"image\": require('./images/1f600.png'),\r\n        \"shortname\": \":grinning:\",\r\n    }\r\n```\r\nI am requiring this file in some other react native function and looping to display all the images. But getting internal error on requiring too many images in javascript file.\r\n\r\n`{\"type\":\"InternalError\",\"message\":\"react-packager has encountered an internal error, please check your terminal error output for details\"}`\r\nIn terminal it says\r\n\r\n`fs operation timeout`\r\n\r\nThis works if i remove few entries from the file.\r\n\r\nAny suggestion or better approach"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/232810511","html_url":"https://github.com/facebook/react-native/issues/8794#issuecomment-232810511","issue_url":"https://api.github.com/repos/facebook/react-native/issues/8794","id":232810511,"user":{"login":"satya164","id":1174278,"avatar_url":"https://avatars.githubusercontent.com/u/1174278?v=3","gravatar_id":"","url":"https://api.github.com/users/satya164","html_url":"https://github.com/satya164","followers_url":"https://api.github.com/users/satya164/followers","following_url":"https://api.github.com/users/satya164/following{/other_user}","gists_url":"https://api.github.com/users/satya164/gists{/gist_id}","starred_url":"https://api.github.com/users/satya164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satya164/subscriptions","organizations_url":"https://api.github.com/users/satya164/orgs","repos_url":"https://api.github.com/users/satya164/repos","events_url":"https://api.github.com/users/satya164/events{/privacy}","received_events_url":"https://api.github.com/users/satya164/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T22:25:31Z","updated_at":"2016-07-14T22:25:31Z","body":"At least on Android you can package the assets manually and use `{ uri: 'file://path/to/file' }` as the source."}}
{"actor":{"display_login":"satya164"}}