{"action":"closed","issue":{"url":"https://api.github.com/repos/ProjectSeptemberInc/gl-react-native/issues/66","repository_url":"https://api.github.com/repos/ProjectSeptemberInc/gl-react-native","labels_url":"https://api.github.com/repos/ProjectSeptemberInc/gl-react-native/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/ProjectSeptemberInc/gl-react-native/issues/66/comments","events_url":"https://api.github.com/repos/ProjectSeptemberInc/gl-react-native/issues/66/events","html_url":"https://github.com/ProjectSeptemberInc/gl-react-native/issues/66","id":136465776,"number":66,"title":"[Android] Loading local images – add support for require()","user":{"login":"AlexDM0","id":5363277,"avatar_url":"https://avatars.githubusercontent.com/u/5363277?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDM0","html_url":"https://github.com/AlexDM0","followers_url":"https://api.github.com/users/AlexDM0/followers","following_url":"https://api.github.com/users/AlexDM0/following{/other_user}","gists_url":"https://api.github.com/users/AlexDM0/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDM0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDM0/subscriptions","organizations_url":"https://api.github.com/users/AlexDM0/orgs","repos_url":"https://api.github.com/users/AlexDM0/repos","events_url":"https://api.github.com/users/AlexDM0/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDM0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ProjectSeptemberInc/gl-react-native/labels/feature","name":"feature","color":"eb6420"},{"url":"https://api.github.com/repos/ProjectSeptemberInc/gl-react-native/labels/priority:high","name":"priority:high","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-02-25T18:09:37Z","updated_at":"2016-06-21T09:08:01Z","closed_at":"2016-06-21T09:08:01Z","body":"Hi,\r\n\r\nIn the app I want to make I want the user to take a picture and save it locally, after this it should be processed by gl-react-native when I want to display it.\r\n\r\nI tried to do it like this (straight from the image example):\r\n```\r\n<Saturation factor={0.5} image={{ uri: \"../images/room.jpg\" }} />\r\n```\r\nbut this does not work, I get a black space where the image should be. If I use an URL like (from the example:\r\n```\r\nhttp://i.imgur.com/iPKTONG.jpg\r\n```\r\nit does work.\r\n\r\nI also tried the way React Native does it:\r\n```\r\n<Saturation factor={0.5} image={require(\"../images/room.jpg\" )} />\r\n```\r\nBut this crashed the simulator (Android).\r\n\r\nI can't find where in the code the images are actually being loaded so I'm guessing this is in the native parts. The documentation is only using online URLs so no help there.\r\n\r\nAny ideas? \r\n\r\nRegards"}}
{"actor":{"display_login":"gre"}}