{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-zss-rich-text-editor/issues/120","repository_url":"https://api.github.com/repos/wix/react-native-zss-rich-text-editor","labels_url":"https://api.github.com/repos/wix/react-native-zss-rich-text-editor/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-zss-rich-text-editor/issues/120/comments","events_url":"https://api.github.com/repos/wix/react-native-zss-rich-text-editor/issues/120/events","html_url":"https://github.com/wix/react-native-zss-rich-text-editor/issues/120","id":332471635,"node_id":"MDU6SXNzdWUzMzI0NzE2MzU=","number":120,"title":"image showing as blank","user":{"login":"rasselll","id":20840060,"node_id":"MDQ6VXNlcjIwODQwMDYw","avatar_url":"https://avatars2.githubusercontent.com/u/20840060?v=4","gravatar_id":"","url":"https://api.github.com/users/rasselll","html_url":"https://github.com/rasselll","followers_url":"https://api.github.com/users/rasselll/followers","following_url":"https://api.github.com/users/rasselll/following{/other_user}","gists_url":"https://api.github.com/users/rasselll/gists{/gist_id}","starred_url":"https://api.github.com/users/rasselll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasselll/subscriptions","organizations_url":"https://api.github.com/users/rasselll/orgs","repos_url":"https://api.github.com/users/rasselll/repos","events_url":"https://api.github.com/users/rasselll/events{/privacy}","received_events_url":"https://api.github.com/users/rasselll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-14T16:15:31Z","updated_at":"2018-10-26T08:07:31Z","closed_at":"2018-06-16T11:49:23Z","author_association":"NONE","body":"Hi im trying to insert an image but its just showing up as blank, i know i am getting the corret uri, so not sue why this is the case.\r\n\r\n```\r\nimport ImagePicker from 'react-native-image-picker';\r\n\r\n          <RichTextToolbar\r\n            getEditor={() => this.richtext}\r\n\r\n            onPressAddImage={()=>{\r\n        ImagePicker.showImagePicker({title: 'Pick an Image'}, res => {\r\n            if (res.didCancel) {\r\n                console.log('Cancled');\r\n            }else if(res.error) {\r\n                console.log('Error', res.error);\r\n            }else {\r\n                this.setState({\r\n                    pickedImage: {\r\n                        uri: res.uri,\r\n\r\n                    }\r\n                });\r\n                alert(res.uri),\r\n                this.richtext.insertImage({ uri: res.uri, width:200, height:200 });\r\n            }\r\n        });\r\n          }}\r\n          />\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wix/react-native-zss-rich-text-editor/issues/comments/433324335","html_url":"https://github.com/wix/react-native-zss-rich-text-editor/issues/120#issuecomment-433324335","issue_url":"https://api.github.com/repos/wix/react-native-zss-rich-text-editor/issues/120","id":433324335,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzMyNDMzNQ==","user":{"login":"luongs3","id":12150725,"node_id":"MDQ6VXNlcjEyMTUwNzI1","avatar_url":"https://avatars2.githubusercontent.com/u/12150725?v=4","gravatar_id":"","url":"https://api.github.com/users/luongs3","html_url":"https://github.com/luongs3","followers_url":"https://api.github.com/users/luongs3/followers","following_url":"https://api.github.com/users/luongs3/following{/other_user}","gists_url":"https://api.github.com/users/luongs3/gists{/gist_id}","starred_url":"https://api.github.com/users/luongs3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luongs3/subscriptions","organizations_url":"https://api.github.com/users/luongs3/orgs","repos_url":"https://api.github.com/users/luongs3/repos","events_url":"https://api.github.com/users/luongs3/events{/privacy}","received_events_url":"https://api.github.com/users/luongs3/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T08:07:31Z","updated_at":"2018-10-26T08:07:31Z","author_association":"NONE","body":"```\r\n<RichTextEditor\r\n          ref={(r) => this.richtext = r}\r\n          initialContentHTML={'Hello <b>World</b> <p>this is a new paragraph</p> <p>this is another new paragraph</p>'}\r\n          editorInitializedCallback={() => this.onEditorInitialized()}\r\n        />\r\n        <RichTextToolbar\r\n          getEditor={() => this.richtext}\r\n          onPressAddImage={() => {\r\n            ImagePicker.showImagePicker(options, (response) => {\r\n              console.log('Response = ', response);\r\n\r\n              if (response.didCancel) {\r\n                console.log('User cancelled image picker');\r\n              } else if (response.error) {\r\n                console.log('ImagePicker Error: ', response.error);\r\n              } else if (response.customButton) {\r\n                console.log('User tapped custom button: ', response.customButton);\r\n              } else {\r\n                this.richtext.insertImage({ src: response.uri, width: Dimensions.get('window').width - 30, height: 200 });\r\n              }\r\n            })\r\n          }}\r\n        />\r\n```\r\nstill not work, my real device just shows image as blank"}}
{"actor":{"display_login":"luongs3"}}