{"action":"closed","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/1886","repository_url":"https://api.github.com/repos/aksonov/react-native-router-flux","labels_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/1886/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/1886/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/1886/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/1886","id":230206222,"number":1886,"title":"undefined is not a function (evaluating 'fetch('apiurl')')","user":{"login":"tareq0065","id":25137925,"avatar_url":"https://avatars0.githubusercontent.com/u/25137925?v=3","gravatar_id":"","url":"https://api.github.com/users/tareq0065","html_url":"https://github.com/tareq0065","followers_url":"https://api.github.com/users/tareq0065/followers","following_url":"https://api.github.com/users/tareq0065/following{/other_user}","gists_url":"https://api.github.com/users/tareq0065/gists{/gist_id}","starred_url":"https://api.github.com/users/tareq0065/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tareq0065/subscriptions","organizations_url":"https://api.github.com/users/tareq0065/orgs","repos_url":"https://api.github.com/users/tareq0065/repos","events_url":"https://api.github.com/users/tareq0065/events{/privacy}","received_events_url":"https://api.github.com/users/tareq0065/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-21T08:38:16Z","updated_at":"2017-07-08T05:00:24Z","closed_at":"2017-07-08T05:00:24Z","body":"### Version\r\nTell us which versions you are using: \r\n\r\n- react-native-router-flux ^3.39.1\r\n- react-native 0.44.0\r\n\r\n### Expected behaviour\r\nI expecting that will call api which i am using with \"fetch\"\r\nHave used `componentDidMount` but its showing another error \r\n\r\n> undefined is not an object (evaluating 'this._component.getScrollableNode')\r\n\r\n\r\n### Actual behaviour\r\n![without componentdidmount](https://cloud.githubusercontent.com/assets/25137925/26282394/994e256c-3e32-11e7-93bf-230bc7ca14fc.png)\r\n\r\n![with componentdidmount](https://cloud.githubusercontent.com/assets/25137925/26282398/a486b610-3e32-11e7-87f6-f77e979bdf49.png)\r\n\r\n\r\n### Steps to reproduce\r\n\r\n1. Create three scene using router flux (In my case App, Login, Home)\r\n2. Use ScrollView for creating the Login.js\r\n3. Create a button using TouchableHighlight after that call the fetch with a function using onPress like `onPress={ () => this.fetchData() }`\r\n\r\n\r\n"}}
{"actor":{"display_login":"aksonov"}}