{"action":"opened","issue":{"url":"https://api.github.com/repos/benhurott/react-native-masked-text/issues/79","repository_url":"https://api.github.com/repos/benhurott/react-native-masked-text","labels_url":"https://api.github.com/repos/benhurott/react-native-masked-text/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/benhurott/react-native-masked-text/issues/79/comments","events_url":"https://api.github.com/repos/benhurott/react-native-masked-text/issues/79/events","html_url":"https://github.com/benhurott/react-native-masked-text/issues/79","id":332803339,"node_id":"MDU6SXNzdWUzMzI4MDMzMzk=","number":79,"title":"getElement() return undefined","user":{"login":"herlan-evocorp","id":38249257,"node_id":"MDQ6VXNlcjM4MjQ5MjU3","avatar_url":"https://avatars1.githubusercontent.com/u/38249257?v=4","gravatar_id":"","url":"https://api.github.com/users/herlan-evocorp","html_url":"https://github.com/herlan-evocorp","followers_url":"https://api.github.com/users/herlan-evocorp/followers","following_url":"https://api.github.com/users/herlan-evocorp/following{/other_user}","gists_url":"https://api.github.com/users/herlan-evocorp/gists{/gist_id}","starred_url":"https://api.github.com/users/herlan-evocorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herlan-evocorp/subscriptions","organizations_url":"https://api.github.com/users/herlan-evocorp/orgs","repos_url":"https://api.github.com/users/herlan-evocorp/repos","events_url":"https://api.github.com/users/herlan-evocorp/events{/privacy}","received_events_url":"https://api.github.com/users/herlan-evocorp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-15T14:44:37Z","updated_at":"2018-06-15T14:44:37Z","closed_at":null,"author_association":"NONE","body":"\r\nI need to navigate between TextInput and TextInputMask using focus (), but the call to the getElement () method returns undefined.\r\n\r\nMy Method:\r\n\r\n`\r\nfocusNextField(id) {\r\nif (this.refs[id].getElement) {\r\nthis.refs[id].getElement().focus();\r\n} else {\r\nthis.refs[id].focus();\r\n}\r\n};\r\n`\r\n\r\nMy Component:\r\n\r\n`<TextInputMask\r\nonChangeText={documento => this.setState({documento})}\r\nvalue={documento}\r\nautoCapitalize={'none'}\r\nautoCorrect={false}\r\nkeyboardType={'numeric'}\r\ntype={'cpf'}\r\nunderlineColorAndroid='transparent'\r\nref={'cpf'}\r\nonSubmitEditing={() => this.focusNextField('telefone')}\r\nreturnKeyType={'next'}\r\nblurOnSubmit={false}\r\n/>`"}}
{"actor":{"display_login":"herlan-evocorp"}}