{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/17338","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/17338/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/17338/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/17338/events","html_url":"https://github.com/facebook/react-native/issues/17338","id":284350378,"number":17338,"title":"Android: screen not resizing when shifting focus to next empty TextInput","user":{"login":"Agontuk","id":5656440,"avatar_url":"https://avatars3.githubusercontent.com/u/5656440?v=4","gravatar_id":"","url":"https://api.github.com/users/Agontuk","html_url":"https://github.com/Agontuk","followers_url":"https://api.github.com/users/Agontuk/followers","following_url":"https://api.github.com/users/Agontuk/following{/other_user}","gists_url":"https://api.github.com/users/Agontuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Agontuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agontuk/subscriptions","organizations_url":"https://api.github.com/users/Agontuk/orgs","repos_url":"https://api.github.com/users/Agontuk/repos","events_url":"https://api.github.com/users/Agontuk/events{/privacy}","received_events_url":"https://api.github.com/users/Agontuk/received_events","type":"User","site_admin":false},"labels":[{"id":870851515,"url":"https://api.github.com/repos/facebook/react-native/labels/:large_blue_diamond:Android","name":":large_blue_diamond:Android","color":"bfd4f2","default":false},{"id":869668024,"url":"https://api.github.com/repos/facebook/react-native/labels/:large_orange_diamond:TextInput","name":":large_orange_diamond:TextInput","color":"fef2c0","default":false},{"id":337217254,"url":"https://api.github.com/repos/facebook/react-native/labels/Ran%20Commands","name":"Ran Commands","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-24T08:26:42Z","updated_at":"2018-04-01T14:51:55Z","closed_at":null,"author_association":"NONE","body":"### Is this a bug report?\r\nYES\r\n\r\n### Have you read the [Contributing Guidelines](https://facebook.github.io/react-native/docs/contributing.html)?\r\nYES\r\n\r\n### Environment\r\nEnvironment:\r\n  OS: macOS High Sierra 10.13.2\r\n  Node: 8.9.1\r\n  Yarn: 1.3.2\r\n  npm: 5.5.1\r\n  Watchman: 4.9.0\r\n  Xcode: Xcode 9.2 Build version 9C40b\r\n  Android Studio: 3.0 AI-171.4443003\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.0.0 => 16.0.0\r\n  react-native: 0.51.0 => 0.51.0\r\n\r\nTarget Platform: Android\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a blank react-native app and add a scrollview with 7-8 TextInput inside it. (just making sure some of the input will be under keyboard when it shows up)\r\n2. For the bottom inputs, add `blurOnSubmit={false}` and `onSubmitEditing` to focus to the next input when submitting. Example: (Notice the last input value is empty.)\r\n```js\r\n<TextInput\r\n  ref={(r) => { this.pqr = r; }}\r\n  blurOnSubmit={false}\r\n  onSubmitEditing={() => { this.stu.focus(); }}\r\n  value='pqr'\r\n  onChangeText={() => null}\r\n  returnKeyType='next'\r\n/>\r\n<TextInput\r\n  ref={(r) => { this.stu = r; }}\r\n  blurOnSubmit={false}\r\n  onSubmitEditing={() => { this.vwx.focus(); }}\r\n  value='stu'\r\n  onChangeText={() => null}\r\n  returnKeyType='next'\r\n/>\r\n<TextInput\r\n  ref={(r) => { this.vwx = r; }}\r\n  value=''\r\n  onChangeText={() => null}\r\n  returnKeyType='go'\r\n/>\r\n```\r\n3. Now focus the input which has a value `pqr` and press 'Next' from keyboard. Screen will push up the next input which has a value set to `stu`. Now press 'Next' again, in this case screen doesn't push up the next input because it's value is empty.\r\n\r\n### Expected Behavior\r\nNext input should be pushed up by screen\r\n\r\n### Actual Behavior\r\nNext input (ref `vwx`) is not getting pushed up above the keyboard cause it's initial value is empty.\r\n\r\n### Demo\r\n![input_bug](https://user-images.githubusercontent.com/5656440/34325222-0c9885de-e8b6-11e7-9ebb-cca967f1425f.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/377792088","html_url":"https://github.com/facebook/react-native/issues/17338#issuecomment-377792088","issue_url":"https://api.github.com/repos/facebook/react-native/issues/17338","id":377792088,"user":{"login":"danilobuerger","id":996231,"avatar_url":"https://avatars2.githubusercontent.com/u/996231?v=4","gravatar_id":"","url":"https://api.github.com/users/danilobuerger","html_url":"https://github.com/danilobuerger","followers_url":"https://api.github.com/users/danilobuerger/followers","following_url":"https://api.github.com/users/danilobuerger/following{/other_user}","gists_url":"https://api.github.com/users/danilobuerger/gists{/gist_id}","starred_url":"https://api.github.com/users/danilobuerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danilobuerger/subscriptions","organizations_url":"https://api.github.com/users/danilobuerger/orgs","repos_url":"https://api.github.com/users/danilobuerger/repos","events_url":"https://api.github.com/users/danilobuerger/events{/privacy}","received_events_url":"https://api.github.com/users/danilobuerger/received_events","type":"User","site_admin":false},"created_at":"2018-04-01T14:51:55Z","updated_at":"2018-04-01T14:51:55Z","author_association":"NONE","body":"Reproducible on react 16.3 / react-native 0.53.3"}}
{"actor":{"display_login":"danilobuerger"}}