{"action":"closed","issue":{"url":"https://api.github.com/repos/evblurbs/react-native-md-textinput/issues/14","repository_url":"https://api.github.com/repos/evblurbs/react-native-md-textinput","labels_url":"https://api.github.com/repos/evblurbs/react-native-md-textinput/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/evblurbs/react-native-md-textinput/issues/14/comments","events_url":"https://api.github.com/repos/evblurbs/react-native-md-textinput/issues/14/events","html_url":"https://github.com/evblurbs/react-native-md-textinput/issues/14","id":157183793,"number":14,"title":"onChangeText doesn't update the TextInput value.","user":{"login":"jojonarte","id":11880365,"avatar_url":"https://avatars.githubusercontent.com/u/11880365?v=3","gravatar_id":"","url":"https://api.github.com/users/jojonarte","html_url":"https://github.com/jojonarte","followers_url":"https://api.github.com/users/jojonarte/followers","following_url":"https://api.github.com/users/jojonarte/following{/other_user}","gists_url":"https://api.github.com/users/jojonarte/gists{/gist_id}","starred_url":"https://api.github.com/users/jojonarte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojonarte/subscriptions","organizations_url":"https://api.github.com/users/jojonarte/orgs","repos_url":"https://api.github.com/users/jojonarte/repos","events_url":"https://api.github.com/users/jojonarte/events{/privacy}","received_events_url":"https://api.github.com/users/jojonarte/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-27T11:10:00Z","updated_at":"2016-05-31T07:09:13Z","closed_at":"2016-05-31T07:09:13Z","body":"Here's a snippet .\r\nI'm having this issue:\r\nI have this code that modifies the text and also validates if it is a valid phone number and formats it with \"-\" concat. The state successfully stores the new value through setState inside the function but even if the state is updated the UI display on the component doesn't change. :(\r\n\r\n\r\n`\r\n```\r\nrenderPhoneNumber(){\r\n      var phone_number = this.state.phone_number;\r\n        return(\r\n            <View style={styles.inputLine}>\r\n                <TextField\r\n                    maxLength={10}\r\n                    ref=\"phone_number\"\r\n                    style={styles.inputTextField}\r\n                    label={'Phone'}\r\n                    highlightColor={'#8CC641'}\r\n                    dense={true}\r\n                    borderColor=\"#E0E0E0\"\r\n                    duration= {500}\r\n                    autoCorrect={false}\r\n                    autoFocus={true}\r\n                    keyboardType='numbers-and-punctuation'\r\n                    value={phone_number}\r\n                    onChangeText={(phone_number) => this._validatePhone(phone_number)}\r\n                    onSubmitEditing={() => {\r\n                                        this._getCustomerByPhonenumber()\r\n                                      }}\r\n                    returnKeyType='next'\r\n                    />\r\n            </View>\r\n        )\r\n    }\r\n```\r\n`\r\n\r\n\r\n"}}
{"actor":{"display_login":"jojonarte"}}