{"action":"closed","issue":{"url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/216","repository_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob","labels_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/216/comments","events_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/216/events","html_url":"https://github.com/wkh237/react-native-fetch-blob/issues/216","id":196544905,"number":216,"title":"Cached images don't display in iOS","user":{"login":"klinkov","id":211417,"avatar_url":"https://avatars.githubusercontent.com/u/211417?v=3","gravatar_id":"","url":"https://api.github.com/users/klinkov","html_url":"https://github.com/klinkov","followers_url":"https://api.github.com/users/klinkov/followers","following_url":"https://api.github.com/users/klinkov/following{/other_user}","gists_url":"https://api.github.com/users/klinkov/gists{/gist_id}","starred_url":"https://api.github.com/users/klinkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klinkov/subscriptions","organizations_url":"https://api.github.com/users/klinkov/orgs","repos_url":"https://api.github.com/users/klinkov/repos","events_url":"https://api.github.com/users/klinkov/events{/privacy}","received_events_url":"https://api.github.com/users/klinkov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-19T23:13:06Z","updated_at":"2016-12-20T09:50:49Z","closed_at":"2016-12-20T09:50:49Z","body":"```\r\n    \"react\": \"15.4.1\",\r\n    \"react-native\": \"0.38.0\",\r\n    \"react-native-fetch-blob\": \"0.10.0-beta.4\",\r\n```\r\n\r\nthis is my cache class \r\nhttps://gist.github.com/klinkov/31ec7a84de141ae1f1cc7a360daa99a3\r\n\r\nthis is my render code\r\n```\r\n<CachedImage\r\n   key={'img_' + item.id}\r\n   style={{width: 50, height: 50, resizeMode: 'contain'}}\r\n   defaultSource={placeholder}\r\n   source={item.previewImages.length ?\r\n    {uri: 'https://i.imgur.com/vKRaKDX.png'} :\r\n   false}\r\n/>\r\n```\r\ncache path code\r\n`let target = (Platform.OS === 'ios' ? RNFetchBlob.fs.dirs.CacheDir : RNFetchBlob.fs.dirs.CacheDir) + '/' + md5.hex_md5(request_options.uri);`\r\n\r\nOn Android i see images from Cache\r\nhttp://take.ms/MFD9i\r\n\r\nbut on IOS i see default image, but cached image exist\r\nhttp://take.ms/7vkJv\r\n\r\nPS\r\nThis is console log\r\n```\r\nthis.props { style: { width: 50, height: 50, resizeMode: 'contain' },\r\n  defaultSource: 1,\r\n  source: { uri: 'https://i.imgur.com/vKRaKDX.png' } }\r\nsource { uri: '/Users/shade/Library/Developer/CoreSimulator/Devices/8AF7DE65-D6F1-42E5-BBF3-C54A850B47B3/data/Containers/Data/Application/78141712-5FC0-4E03-9258-4E0F4542B529/Library/Caches/38e7ca9375809b4ef096d278707e45aa' }\r\n```\r\n\r\n"}}
{"actor":{"display_login":"klinkov"}}