payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/maxkordiyak/react-native-dropdown-autocomplete/issues/23","repository_url":"https://api.github.com/repos/maxkordiyak/react-native-dropdown-autocomplete","labels_url":"https://api.github.com/repos/maxkordiyak/react-native-dropdown-autocomplete/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/maxkordiyak/react-native-dropdown-autocomplete/issues/23/comments","events_url":"https://api.github.com/repos/maxkordiyak/react-native-dropdown-autocomplete/issues/23/events","html_url":"https://github.com/maxkordiyak/react-native-dropdown-autocomplete/issues/23","id":483600131,"node_id":"MDU6SXNzdWU0ODM2MDAxMzE=","number":23,"title":"Use  two api within the same autocomplete","user":{"login":"pixsolution","id":47191848,"node_id":"MDQ6VXNlcjQ3MTkxODQ4","avatar_url":"https://avatars3.githubusercontent.com/u/47191848?v=4","gravatar_id":"","url":"https://api.github.com/users/pixsolution","html_url":"https://github.com/pixsolution","followers_url":"https://api.github.com/users/pixsolution/followers","following_url":"https://api.github.com/users/pixsolution/following{/other_user}","gists_url":"https://api.github.com/users/pixsolution/gists{/gist_id}","starred_url":"https://api.github.com/users/pixsolution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixsolution/subscriptions","organizations_url":"https://api.github.com/users/pixsolution/orgs","repos_url":"https://api.github.com/users/pixsolution/repos","events_url":"https://api.github.com/users/pixsolution/events{/privacy}","received_events_url":"https://api.github.com/users/pixsolution/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-08-21T19:05:39Z","updated_at":"2019-08-21T19:10:20Z","closed_at":"2019-08-21T19:10:20Z","author_association":"NONE","body":"Hi there! with your package, can I use two api within the same autocomplete? \r\n\r\napi for search by name: `https://www.mydomain.com/api/searchuserL?name=${searchTerm}`\r\napi for search by email: `https://www.mydomain.com/api/searchuserL?email=${searchTerm}`\r\n\r\nas I apply it in the following code: \r\n\r\n```Javascript\r\nmetodochecked() {\r\n    if (this.state.cheked = true)\r\n      return fetchData\r\n    else \r\n      return fetchData2     \r\n  }\r\n  \r\n    <Autocomplete\r\n                  key={shortid.generate()}\r\n                  style={baseStyles.input}\r\n                    scrollToInput={ev=> { }}\r\n                    handleSelectItem={(item, index) => {}}  \r\n                    onDropdownClose={() => { }}\r\n                    onDropdownShow={() => { }}\r\n                    minimumCharactersCount={0}\r\n                    highlightText\r\n                    valueExtractor={item => item.email}\r\n                    rightContent\r\n                    rightTextExtractor={item => item.properties}\r\n                    fetchData={async (searchTerm) => {\r\n                    const response = await fetch(``https://www.mydomain.com/api/searchuserL?name=${searchTerm}`);\r\n                    return await response.json();\r\n                    }}\r\n                    fetchData2={async (searchTerm) => {\r\n                    const response = await fetch(``https://www.mydomain.com/api/searchuserL?email=${searchTerm}`);\r\n                    return await response.json();\r\n                    }}\r\n                  />\r\n```\r\n\r\nand can I call inside the autocomplete that \"metodochecked\" that you see there? What I want to do is something like you see in the following image that I change the field if I press the checkbox\r\n![Captura de Pantalla 2019-08-21 a la(s) 1 53 06 p  m](https://user-images.githubusercontent.com/47191848/63459991-f0a32a00-c455-11e9-938f-6c038886e36f.png)"}}
other: {"actor":{"display_login":"PaitoAnderson"}}