{"action":"created","issue":{"url":"https://api.github.com/repos/baijunjie/react-native-input-scroll-view/issues/43","repository_url":"https://api.github.com/repos/baijunjie/react-native-input-scroll-view","labels_url":"https://api.github.com/repos/baijunjie/react-native-input-scroll-view/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/baijunjie/react-native-input-scroll-view/issues/43/comments","events_url":"https://api.github.com/repos/baijunjie/react-native-input-scroll-view/issues/43/events","html_url":"https://github.com/baijunjie/react-native-input-scroll-view/issues/43","id":379830720,"node_id":"MDU6SXNzdWUzNzk4MzA3MjA=","number":43,"title":"iOS scroll issue","user":{"login":"wamphlett","id":7222609,"node_id":"MDQ6VXNlcjcyMjI2MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/7222609?v=4","gravatar_id":"","url":"https://api.github.com/users/wamphlett","html_url":"https://github.com/wamphlett","followers_url":"https://api.github.com/users/wamphlett/followers","following_url":"https://api.github.com/users/wamphlett/following{/other_user}","gists_url":"https://api.github.com/users/wamphlett/gists{/gist_id}","starred_url":"https://api.github.com/users/wamphlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wamphlett/subscriptions","organizations_url":"https://api.github.com/users/wamphlett/orgs","repos_url":"https://api.github.com/users/wamphlett/repos","events_url":"https://api.github.com/users/wamphlett/events{/privacy}","received_events_url":"https://api.github.com/users/wamphlett/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-12T15:35:45Z","updated_at":"2018-12-31T05:30:48Z","closed_at":"2018-12-31T05:30:48Z","author_association":"NONE","body":"I am experiencing a strange scroll is on iOS. When focusing an input or the content size changes, the screen scrolls up out of view. \r\n\r\n<img src=\"http://g.recordit.co/a0CnHgcRgo.gif\">\r\n\r\nI've debugged this somewhat and I can see the issue is coming from the `_onRef` function. Specifically, `y` in `measureInWindow` returns about 700 meaning that the scroll calculation is always out. If I add a delay to the `setTimeout`, e.g. \r\n\r\n```\r\nsetTimeout(() => {\r\n            this._root._innerViewRef &&\r\n            this._root._innerViewRef.measureInWindow((x, y) => {\r\n                this._topOffset = y;\r\n            });\r\n        }, 1000);\r\n```\r\n\r\nthen `y` becomes 25 and the scrolling works exactly as expected. Im not sure what the purpose of this `_onRef` function is and Im not confident that my solution is the best - feels hacky without knowing what this function is supposed to be doing. \r\n\r\nPerhaps I am doing something wrong somewhere else but I feel like I have exhausted all attempts to resolve this now. Are you able to help? "},"comment":{"url":"https://api.github.com/repos/baijunjie/react-native-input-scroll-view/issues/comments/450609848","html_url":"https://github.com/baijunjie/react-native-input-scroll-view/issues/43#issuecomment-450609848","issue_url":"https://api.github.com/repos/baijunjie/react-native-input-scroll-view/issues/43","id":450609848,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDYwOTg0OA==","user":{"login":"baijunjie","id":7956480,"node_id":"MDQ6VXNlcjc5NTY0ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/7956480?v=4","gravatar_id":"","url":"https://api.github.com/users/baijunjie","html_url":"https://github.com/baijunjie","followers_url":"https://api.github.com/users/baijunjie/followers","following_url":"https://api.github.com/users/baijunjie/following{/other_user}","gists_url":"https://api.github.com/users/baijunjie/gists{/gist_id}","starred_url":"https://api.github.com/users/baijunjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baijunjie/subscriptions","organizations_url":"https://api.github.com/users/baijunjie/orgs","repos_url":"https://api.github.com/users/baijunjie/repos","events_url":"https://api.github.com/users/baijunjie/events{/privacy}","received_events_url":"https://api.github.com/users/baijunjie/received_events","type":"User","site_admin":false},"created_at":"2018-12-31T05:30:48Z","updated_at":"2018-12-31T05:30:48Z","author_association":"OWNER","body":"If there is any new feedback, please open it again"}}
{"actor":{"display_login":"baijunjie"}}