Comments (10)
I've never encountered this problem in the projects I've worked on.
This seems to be a conflict related to the navigation library. Are you using React Navigation? react-native-screens? Because in React Navigation we have just one native screen, and then the internal screens are simulated with "Views" and animation.
Can you share a reproducible example with these libraries together?
from react-native-keyboard-manager.
sure. I will work one a reproducable demo compiled using eas build and share the result and the repo link. And yes I am using react navigation and react-native-screens
from react-native-keyboard-manager.
Same results with the following minimal repo:
ex2.mp4
ex1.mp4
from react-native-keyboard-manager.
Bingo, the problem is related to "@react-navigation/native-stack". Replacing to "@react-navigation/stack" the problem dont happens.
I will report to IQKeyboardManager and make myself available to help if necessary.
Let's follow the thread hackiftekhar/IQKeyboardManager#1361 and hackiftekhar/IQKeyboardManager#1422
from react-native-keyboard-manager.
I created a native iOS Xcode project, with Storyboards and Navigation Controllers, and problem don't happen.
This make me think that the "react-native-screens" uses some strategy to do a "native navigation" that's breaking the IQKeyboardManager.
Possible related issues: https://github.com/software-mansion/react-native-screens/issues?q=is%3Aissue+blank+ios
from react-native-keyboard-manager.
yes confirmed that the bug is not there when using stack instead of native stack. thank you!!
from react-native-keyboard-manager.
@ramiel1999 maybe worth an issue report at react-native-screens.
from react-native-keyboard-manager.
For the moment, I think it's better to disable gestures when using the native-stack.
<NativeStack.Navigator
screenOptions={{
//Disable goBack with gesture to prevent this issue:
//https://github.com/douglasjunior/react-native-keyboard-manager/issues/89
...(Platform.OS === 'ios' ? { gestureEnabled: false } : {}),
}}
>
from react-native-keyboard-manager.
For the moment, I think it's better to disable gestures when using the native-stack.
<NativeStack.Navigator screenOptions={{ //Disable goBack with gesture to prevent this issue: //https://github.com/douglasjunior/react-native-keyboard-manager/issues/89 ...(Platform.OS === 'ios' ? { gestureEnabled: false } : {}), }} >
That's a behavior almost all ios user rely on. Definitely not a good solution. A solution I found was to use scrollviews instead of views for the parent component of the screen if possible because then it doesnt happen
from react-native-keyboard-manager.
That's a behavior almost all ios user rely on. Definitely not a good solution. A solution I found was to use scrollviews instead of views for the parent component of the screen if possible because then it doesn't happen
It's a bad solution. However, when the bug occurs then the App gets broken in my case, which is even worse. I am already using <ScrollView>
as the parent component of all the Screens. The bug shows up after the TextInput is blurred in my case.
from react-native-keyboard-manager.
Related Issues (20)
- Cannot read property "setEnable(true)" of null HOT 11
- Showing Recent Issues error node_modules/react-native-keyboard-manager/index.js: Cannot find module 'babel-preset-react-native' HOT 6
- Pod install failed on m1 machine HOT 6
- large text input HOT 1
- Scrollview height gets larger and larger every time this library invokes itself HOT 1
- Autoscroll moves the input out of the screen
- Apple privacy manifest HOT 5
- Track of IQKeyboardManager v7 upgrade HOT 1
- Incompatibility with RN 0.74.1 HOT 4
- PrivacyInfo.xcprivacy build issue with Expo 51 HOT 16
- Toolbar hides once I start Typing (both on simulator and physical device) HOT 2
- Add support for goNext HOT 1
- (Partially) Incompatible with `react-hook-form`? HOT 2
- Works incorrectly with two ScrollViews HOT 1
- IQKeyboardManagerSwift/IQKeyboardManagerSwift.modulemap' not found HOT 9
- Is this package working with Expo SDK46? HOT 1
- Signing for "IQKeyboardManagerSwift-IQKeyboardManagerSwift" requires a development team. Select a development team in the Signing & Capabilities editor. HOT 2
- Is it working with Expo? HOT 2
- TS Error `PreviousNextView has no export member` HOT 1
- Cannot read property 'then' of undefined. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-keyboard-manager.