-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Keyboard closes immediately once opened in TextInput inside a navigation stack screen (expo-android) #1342
Comments
have you found a solution for this? |
Downgrading to 3.11 solved the issue. I don't know what the root cause is but it is definitely something in the latest release. |
I also had the same issue, and downgrading helped. I think it's because of the new architecture that's included in the latest release. |
Downgrading worked for me. |
This issue is due to the latest version of react native screens and i was facing the same issue on Android and i tried to solve this issue using screen options but nothing worked so the only thing that can fix this issue is downgrading the |
Downgrading didn't help me. This randomly started happening to me on an older version of react-navigation/stack (5.14.5) Ended up switching to navigation package to react-navigation/native-stack (6.5.0) and that did the trick. Packages before (broken): Packages after (fixed): This was pretty non-intrusive as I test on a physical device anyways and did not require an upgrade on react or react-native packages |
TL;DR Hello everyone! 👋 Managed workflow comes with an Expo Go app that has to be compiled, build, and released to Google Play & App Store. In order for this to work, Expo SDK comes with a bunch of precompiled react-native libraries. Libraries that are JavaScript-only (eg. react-navigation) can be swapped on the fly but the native ones (eg. Making sure that your app uses correct versions of the dependencies is a lot of work and because of that Expo comes with a handy To learn more check workflow comparison and the limitations sections of the Expo's documentation. Cheers 🙌 |
Hi @kacperkapusciak I just wanted to confirm we are not on managed expo (we use bare expo) and we experience this on screens 3.13.3. We had to downgrade to screens 3.11.0 in order to workaround this bug. Should this ticket be reopened? |
I can confirm that this issue is happening in non-Expo builds as well. What solved for me was to downgrade to |
Hey @kacperkapusciak any chance you could reopen this? I just want to make sure it's still a known issue outside of expo managed and on versions > 3.11.0 |
Another confirmation of non-expo build experiencing this issue still. As per above, downgrading to 3.11.0 fixed the issue |
React native 0.68 changed This will result in keyboard disappearing in cases where text field would be left under the keyboard so be sure to check that it is set to |
@matthieunelmes What RN version are you running? 3.11.0 doesn't work to me with RN 0.64 |
working for me |
With version 3.4.0 result in this error:
|
@mtoninelli RN 0.65.1 and react-native-screens 3.11.0 |
Yes, I confirm that the issue has been solved updating react navigation.
|
Updating to the latest navigation stack (v6) & dependencies did not solve this issue for me.
To circumvent this issue I had to downgrade to [email protected] |
This happens on a detail screen for me on a stack navigation. Doesn't happen on the same class on the main screen. Downgrading isn't ideal. You're compromising a lot of other bug fixes for one issue and in the end, it might not even work - downgrading screens and upgrading navigation certainly didn't work for me. Solution is to update
Docs: https://developer.android.com/guide/topics/manifest/activity-element#wsoft |
I also had a problem with the keyboard suddenly closing on my Android phone one day, so I reinstalled the Currently part of my package.json "react": "17.0.1",
"react-native": "0.64.2",
"react-native-reanimated": "2.2.0",
"react-native-screens": "^3.4.0", // before ^3.3.0 |
anyone having this issue on iOS? @react-navigation/[email protected] |
Usei a versão |
I have these issues currently. |
Having this issue on android currently. Using expo and all dependencies are up to date. |
Same here. Using a pure react native project, not expo. Keyboard closes on first focus. Its exactly this issue |
I had the same issue. My problem was that I prewrote functions like Login, Reg and so on and called them in main App function. When I removed bodies of functions to main App function directly, prolblem solved. Try it and update me. |
Facing the same issue on expo. Tried downgrading react-native-screens to @3.11 and also @3.4 however this did not solve the problem. |
@kacperkapusciak Can we reopen? Seems like lots of people still have the issue on iOS. |
Hi @Pingou, I believe there's already an open issue that also mentions the bug reported here - #1447. We're aware of this problem and it still waits for investigation, but unfortunately it's not that easy to investigate the place where this error occurs. If you believe that you might have an idea how you can fix this, we're always open for the PRs with bug fixes ❤️ As this PR causes the discussion to be separated between both this issue and #1447 I'll lock the discussion here, so please discuss this issue further there. Thank you for your patience! ❤️ |
Description
When the input of a TextInput component is pressed, the keyboard pops up and immediately closes again. This happens inside a stack navigation screen. However, the issue doesn't seem to be of react-navigation (solutions in issue #8414 don't solve the problem). What solved the issue was downgrading from [email protected] to [email protected]
Screenshots
Steps To Reproduce
Expected behavior
When the TextInput component is pressed (focused), the keyboard opens and remains open.
Actual behavior
When the TextInput component is pressed (focused), the keyboard opens and immediately closes again.
Reproduction
Minimal code example
Platform
- [ x ] Android
Workflow
- [ x ] Managed workflow
Package versions
@babel/core is a development dependency.
The text was updated successfully, but these errors were encountered: