{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/1767","labels_url":"https://api.github.com/repos/facebook/react-native/issues/1767/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1767/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/1767/events","html_url":"https://github.com/facebook/react-native/issues/1767","id":91434616,"number":1767,"title":"weird requiring issue","user":{"login":"hyusetiawan","id":1062920,"avatar_url":"https://avatars.githubusercontent.com/u/1062920?v=3","gravatar_id":"","url":"https://api.github.com/users/hyusetiawan","html_url":"https://github.com/hyusetiawan","followers_url":"https://api.github.com/users/hyusetiawan/followers","following_url":"https://api.github.com/users/hyusetiawan/following{/other_user}","gists_url":"https://api.github.com/users/hyusetiawan/gists{/gist_id}","starred_url":"https://api.github.com/users/hyusetiawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyusetiawan/subscriptions","organizations_url":"https://api.github.com/users/hyusetiawan/orgs","repos_url":"https://api.github.com/users/hyusetiawan/repos","events_url":"https://api.github.com/users/hyusetiawan/events{/privacy}","received_events_url":"https://api.github.com/users/hyusetiawan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-27T08:51:30Z","updated_at":"2015-06-27T08:57:37Z","closed_at":"2015-06-27T08:57:37Z","body":"for some reason, requiring this way works:\r\n```\r\nvar Klass = require('./module')\r\n```\r\nhowever, this doesn't\r\n```\r\nvar Klass = require('./' + 'module')\r\n```\r\nit throws, the red screen, require unknown module.\r\nAm I missing something basic? What I am trying to do is to dynamically require several modules from an array eg: ['module1', 'module2', 'module3']"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/115988765","html_url":"https://github.com/facebook/react-native/issues/1767#issuecomment-115988765","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1767","id":115988765,"user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T08:57:37Z","updated_at":"2015-06-27T08:57:37Z","body":"The packager only works with statically analyzable requires. Treat require like a keyword (as you would with ES6 import)."}}