{"action":"created","issue":{"url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/550","repository_url":"https://api.github.com/repos/react-community/react-native-image-picker","labels_url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/550/comments","events_url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/550/events","html_url":"https://github.com/react-community/react-native-image-picker/issues/550","id":220869523,"node_id":"MDU6SXNzdWUyMjA4Njk1MjM=","number":550,"title":"Error while updating property 'src' of a view managed by: RCTImageView  (Android)","user":{"login":"AlMel3000","id":19572431,"node_id":"MDQ6VXNlcjE5NTcyNDMx","avatar_url":"https://avatars3.githubusercontent.com/u/19572431?v=4","gravatar_id":"","url":"https://api.github.com/users/AlMel3000","html_url":"https://github.com/AlMel3000","followers_url":"https://api.github.com/users/AlMel3000/followers","following_url":"https://api.github.com/users/AlMel3000/following{/other_user}","gists_url":"https://api.github.com/users/AlMel3000/gists{/gist_id}","starred_url":"https://api.github.com/users/AlMel3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlMel3000/subscriptions","organizations_url":"https://api.github.com/users/AlMel3000/orgs","repos_url":"https://api.github.com/users/AlMel3000/repos","events_url":"https://api.github.com/users/AlMel3000/events{/privacy}","received_events_url":"https://api.github.com/users/AlMel3000/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-11T08:01:24Z","updated_at":"2018-09-20T12:07:54Z","closed_at":"2017-04-12T06:54:33Z","author_association":"NONE","body":"Hello!\r\nI receive an error:\r\n```\r\nError while updating property 'src' of a view managed by: RCTImageView\r\nupdateViewProp\r\n    ViewManagersPropertyCache.java:90\r\nsetProperty\r\n    ViewManagerPropertyUpdater.java:123\r\nupdateProps\r\n    ViewManagerPropertyUpdater.java:42\r\nupdateProperties\r\n    ViewManager.java:36\r\ncreateView\r\n    NativeViewHierarchyManager.java:227\r\nexecute\r\n    UIViewOperationQueue.java:149\r\ndispatchPendingNonBatchedOperations\r\n    UIViewOperationQueue.java:892\r\ndoFrameGuarded\r\n    UIViewOperationQueue.java:865\r\ndoFrame\r\n    GuardedChoreographerFrameCallback.java:32\r\ndoFrame\r\n    ReactChoreographer.java:131\r\nrun\r\n    Choreographer.java:869\r\ndoCallbacks\r\n    Choreographer.java:683\r\ndoFrame\r\n    Choreographer.java:616\r\nrun\r\n    Choreographer.java:857\r\nhandleCallback\r\n    Handler.java:751\r\ndispatchMessage\r\n    Handler.java:95\r\nloop\r\n    Looper.java:154\r\nmain\r\n    ActivityThread.java:6077\r\ninvoke\r\n    Method.java:-2\r\nrun\r\n    ZygoteInit.java:865\r\nmain\r\n    ZygoteInit.java:755\r\n\r\n```\r\n\r\nAnd here is part of my code:\r\n\r\n```\r\nimport React, { Component } from 'react';\r\n\r\nimport {\r\n    StyleSheet,\r\n    Text,\r\n    View,\r\n    TouchableOpacity,\r\n    Platform,\r\n    ScrollView,\r\n    Image,\r\n} from 'react-native';\r\n\r\nlet ImagePicker = require('react-native-image-picker');\r\n\r\nlet options = {\r\n    title: 'Добавьте фото',\r\n    storageOptions: {\r\n        skipBackup: true,\r\n        path: 'images'\r\n    },\r\n    cancelButtonTitle: 'Отмена',\r\n    takePhotoButtonTitle: 'Сфотографировать',\r\n    chooseFromLibraryButtonTitle: 'Выбрать из галереи',\r\n\r\n};\r\n\r\nexport default class PassportDataSimple extends Component {\r\n\r\n    static navigationOptions = {\r\n        header: { visible: false },\r\n    };\r\n\r\n\r\n    constructor(props){\r\n        super(props);\r\n        this.state = {\r\n            passportPhoto: null\r\n        }\r\n    }\r\n    _pickPhoto(){\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            }\r\n            else if (response.error) {\r\n                console.log('ImagePicker Error: ', response.error);\r\n            }\r\n            else if (response.customButton) {\r\n                console.log('User tapped custom button: ', response.customButton);\r\n            }\r\n            else {\r\n                // You can also display the image using data:\r\n                // let source = { uri: 'data:image/jpeg;base64,' + response.data };\r\n                this.setState({\r\n                    passportPhoto: { uri: response }\r\n                });\r\n            }\r\n        });\r\n    }\r\n\r\n    render() {\r\n        return (\r\n            <View style={styles.container}>             \r\n                <ScrollView style={{ flex:1}} showsVerticalScrollIndicator={false}>\r\n                    <View style={{justifyContent: 'flex-start',alignItems: 'flex-start',}}>\r\n                      <View style={{flex:0,alignSelf: 'stretch', justifyContent: 'flex-start', alignItems: 'flex-start', \r\n                                 backgroundColor: 'white', marginHorizontal: 16}}>\r\n                            \r\n                                        <Image  source={this.state.passportPhoto}\r\n                                    style={{flex:1,alignSelf: 'stretch', justifyContent: 'center', alignItems: 'flex-start', \r\n                                          marginHorizontal:16}}\r\n                                />\r\n\r\n                            <TouchableOpacity\r\n                                onPress={(e) => this._pickPhoto()}\r\n                                style={{flex:0,alignSelf: 'stretch', justifyContent: 'center', alignItems: 'flex-start', backgroundColor: 'white', marginVertical:16}}>\r\n                                <Text style={{color: '#c98d41', fontSize: 14}}>ДОБАВИТЬ ФОТО</Text>\r\n                            </TouchableOpacity>\r\n                           \r\n                        </View>\r\n                    </View>\r\n                </ScrollView>\r\n            </View>\r\n        );\r\n    }\r\n}\r\n\r\nconst styles = StyleSheet.create({\r\n    container: {\r\n        flex:1,\r\n        backgroundColor: 'white'\r\n    }\r\n});\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/comments/423159029","html_url":"https://github.com/react-community/react-native-image-picker/issues/550#issuecomment-423159029","issue_url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/550","id":423159029,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzE1OTAyOQ==","user":{"login":"akhileshsinha","id":8536728,"node_id":"MDQ6VXNlcjg1MzY3Mjg=","avatar_url":"https://avatars0.githubusercontent.com/u/8536728?v=4","gravatar_id":"","url":"https://api.github.com/users/akhileshsinha","html_url":"https://github.com/akhileshsinha","followers_url":"https://api.github.com/users/akhileshsinha/followers","following_url":"https://api.github.com/users/akhileshsinha/following{/other_user}","gists_url":"https://api.github.com/users/akhileshsinha/gists{/gist_id}","starred_url":"https://api.github.com/users/akhileshsinha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhileshsinha/subscriptions","organizations_url":"https://api.github.com/users/akhileshsinha/orgs","repos_url":"https://api.github.com/users/akhileshsinha/repos","events_url":"https://api.github.com/users/akhileshsinha/events{/privacy}","received_events_url":"https://api.github.com/users/akhileshsinha/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T12:07:54Z","updated_at":"2018-09-20T12:07:54Z","author_association":"NONE","body":"Try  this.setState({\r\n                    passportPhoto: { uri: response.uri }\r\n                });"}}
{"actor":{"display_login":"akhileshsinha"}}