Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android TextInput auto Dismiss Keyboard #16563

Closed
Sean-Snow opened this issue Oct 27, 2017 · 6 comments
Closed

Android TextInput auto Dismiss Keyboard #16563

Sean-Snow opened this issue Oct 27, 2017 · 6 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Sean-Snow
Copy link

Sean-Snow commented Oct 27, 2017

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

OS:  macOS Sierra 10.12.6
Node:  9.2.0
Yarn:  1.3.2
npm:  5.5.1
Watchman:  4.7.0

Packages: (all installed)

   "accounting": "^0.4.1",
    "babel-polyfill": "^6.26.0",
    "fs": "0.0.2",
    "jcore-react-native": "^1.2.3",
    "jpush-react-native": "^2.1.7",
    "lokijs": "^1.5.1",
    "md5": "^2.2.1",
    "moment": "^2.20.1",
    "object-path": "^0.11.4",
    "prop-types": "^15.6.0",
    "react": "16.2.0",
    "react-native": "0.52.1",
    "react-native-animatable": "^1.2.4",
    "react-native-code-push": "^5.2.1",
    "react-native-svg": "6.0.1-rc.3",
    "react-navigation": "^1.0.0-beta.27",
    "react-redux": "^5.0.6",
    "reactnativecomponents": "^0.0.3-alpha.35",
    "redux": "^3.7.2",
    "redux-observable": "^0.17.0",
    "rxjs": "^5.5.6",

Steps to Reproduce

  1. TextInput get Focus

Expected Behavior

I hope the keyboard is always there

Actual Behavior

The keyboard dismiss automatically after a few seconds

Reproducible Demo

<View>
<TextInput/>
</View>
@jackple
Copy link

jackple commented Oct 27, 2017

Is there some other way you try to dismiss keyboard?

@Sean-Snow
Copy link
Author

no

@syq7970
Copy link

syq7970 commented Nov 26, 2017

@Sean-Snow I have the same issule, how did you resolve this?

@Sean-Snow
Copy link
Author

@syq7970 There is no solution

@kamal
Copy link

kamal commented Nov 29, 2017

@syq7970 @Sean-Snow my workaround on 0.49.3 is to focus and then blur immediately on Android.

componentDidMount () {
  if (Platform.OS === 'android') {
    this.nameField.focus()
    this.nameField.blur()
  }
}

This seems to be fixed in 0.50.4. In fact, the workaround crashes Android due to this issue #16821

@Sean-Snow Sean-Snow reopened this Jan 23, 2018
@burakggs
Copy link

burakggs commented Nov 5, 2018

Hi @Sean-Snow,
How did you resolve this problem ?

@facebook facebook locked as resolved and limited conversation to collaborators Jan 23, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants