{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/18933","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/18933/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/18933/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/18933/events","html_url":"https://github.com/facebook/react-native/issues/18933","id":315706121,"number":18933,"title":"Provide soft keyboard controlled flag - showSoftKeyBoardOn={[\"focused\", \"tapped\"]}","user":{"login":"quytangvn","id":34653239,"avatar_url":"https://avatars3.githubusercontent.com/u/34653239?v=4","gravatar_id":"","url":"https://api.github.com/users/quytangvn","html_url":"https://github.com/quytangvn","followers_url":"https://api.github.com/users/quytangvn/followers","following_url":"https://api.github.com/users/quytangvn/following{/other_user}","gists_url":"https://api.github.com/users/quytangvn/gists{/gist_id}","starred_url":"https://api.github.com/users/quytangvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quytangvn/subscriptions","organizations_url":"https://api.github.com/users/quytangvn/orgs","repos_url":"https://api.github.com/users/quytangvn/repos","events_url":"https://api.github.com/users/quytangvn/events{/privacy}","received_events_url":"https://api.github.com/users/quytangvn/received_events","type":"User","site_admin":false},"labels":[{"id":846765400,"url":"https://api.github.com/repos/facebook/react-native/labels/:rewind:Old%20Version","name":":rewind:Old Version","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-19T02:32:09Z","updated_at":"2018-04-19T03:54:43Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  We use GitHub Issues exclusively for tracking bugs in React Native.\r\n  Questions? Visit http://facebook.github.io/react-native/help.html\r\n  If this issue is about documentation or the website, please file it at:\r\n  https://github.com/facebook/react-native-website/issues/new\r\n-->\r\n\r\n- [x] I have reviewed the [documentation](https://facebook.github.io/react-native)\r\n- [x] I have searched [existing issues](https://github.com/facebook/react-native/issues)\r\n- [x] I am using the [latest React Native version](https://github.com/facebook/react-native/releases)\r\n\r\nI am using a bluetooth barcode scanner for scanning code on my app. It is used as a keyboard device.\r\n\r\nTo keep scanning effectively:\r\n- Hide the soft keyboard to save space on mobile device to show important information\r\n- The TextInput should continue being focused after `onEnEditing` because scanner using `tab key` to end the input. Therefore I call inputRef.focus() to regain focused.\r\n\r\nP.S. I have already used `Keyboard.dismiss()` but it doesn't keep the input being focused\r\n\r\n## Environment\r\n```\r\nEnvironment:\r\n  OS: macOS High Sierra 10.13.4\r\n  Node: 8.8.1\r\n  Yarn: 0.27.5\r\n  npm: 5.6.0\r\n  Watchman: 4.9.0\r\n  Xcode: Xcode 9.2 Build version 9C40b\r\n  Android Studio: 3.1 AI-173.4697961\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.2.0 => 16.2.0\r\n  react-native: ^0.55.3 => 0.55.3\r\n```\r\n## Steps to Reproduce\r\n- `Tap on` TextInput element, call `inputRef.focus()` or `autoFocus={true}`\r\n\r\n## Expected Behavior\r\n- Hide the soft keyboard when bluetooth keyboard is connected.\r\n\r\n## Actual Behavior\r\n- Soft keyboard always shown after focused\r\n\r\nI think it's better to have the flag like `showSoftKeyOn={[\"focused\", \"tapped\"]}`\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/382602373","html_url":"https://github.com/facebook/react-native/issues/18933#issuecomment-382602373","issue_url":"https://api.github.com/repos/facebook/react-native/issues/18933","id":382602373,"user":{"login":"quytangvn","id":34653239,"avatar_url":"https://avatars3.githubusercontent.com/u/34653239?v=4","gravatar_id":"","url":"https://api.github.com/users/quytangvn","html_url":"https://github.com/quytangvn","followers_url":"https://api.github.com/users/quytangvn/followers","following_url":"https://api.github.com/users/quytangvn/following{/other_user}","gists_url":"https://api.github.com/users/quytangvn/gists{/gist_id}","starred_url":"https://api.github.com/users/quytangvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quytangvn/subscriptions","organizations_url":"https://api.github.com/users/quytangvn/orgs","repos_url":"https://api.github.com/users/quytangvn/repos","events_url":"https://api.github.com/users/quytangvn/events{/privacy}","received_events_url":"https://api.github.com/users/quytangvn/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T03:54:43Z","updated_at":"2018-04-19T03:54:43Z","author_association":"NONE","body":"Hi @javache,\r\nI found you in the contribution list.\r\nSorry for disturbing you but I don't know how to get rid of the `Old Version` \u001Dlabel. I updated the description but the bot didn't remove it automatically?\r\n"}}
{"actor":{"display_login":"quytangvn"}}