{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/8560","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/8560/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/8560/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/8560/events","html_url":"https://github.com/facebook/react-native/issues/8560","id":163680517,"number":8560,"title":"[Android] [0.28.0] [BUG] First Picker.Item initiate reload cycle with onValueChange","user":{"login":"cablegunmaster","id":8159246,"avatar_url":"https://avatars.githubusercontent.com/u/8159246?v=3","gravatar_id":"","url":"https://api.github.com/users/cablegunmaster","html_url":"https://github.com/cablegunmaster","followers_url":"https://api.github.com/users/cablegunmaster/followers","following_url":"https://api.github.com/users/cablegunmaster/following{/other_user}","gists_url":"https://api.github.com/users/cablegunmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/cablegunmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cablegunmaster/subscriptions","organizations_url":"https://api.github.com/users/cablegunmaster/orgs","repos_url":"https://api.github.com/users/cablegunmaster/repos","events_url":"https://api.github.com/users/cablegunmaster/events{/privacy}","received_events_url":"https://api.github.com/users/cablegunmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-04T13:47:28Z","updated_at":"2016-07-04T13:47:28Z","closed_at":null,"body":"I am using the picker from the 0.28.0 Library and this version keeps reloading the first pickerItem is picked. Now I have to 'protect' my 'getdata' from initiating until something else is picked. (workaround)\r\n\r\nFirst value will be set everytime I reload this component. If picked it will keep ´reloading' . \r\n\r\nrequestingData(resol){\r\n        this.setState({resolution: resol});\r\n        this.getData(); //do some retrieval of data.\r\n    }\r\n\r\n<Picker\r\n                        style={styles.Picker}\r\n                        selectedValue={this.state.resolution}\r\n                        onValueChange={(resol) => this.requestingData(resol) } >\r\n                        <Picker.Item label=\"-\" value=\"-\" />\r\n                        <Picker.Item label=\"Maand\" value=\"month\" />\r\n                        <Picker.Item label=\"Jaar\" value=\"year\" />\r\n                        <Picker.Item label=\"week\" value=\"week\" />\r\n                    </Picker>\r\n\r\nTL DR; The first  Picker.item is causing reload loops xD. "}}
{"actor":{"display_login":"cablegunmaster"}}