Coder Social home page Coder Social logo

Attempting to swipe back but not actually swiping back causes undesirable blank view while text input is focused about react-native-keyboard-manager HOT 10 CLOSED

itsramiel avatar itsramiel commented on August 16, 2024
Attempting to swipe back but not actually swiping back causes undesirable blank view while text input is focused

from react-native-keyboard-manager.

Comments (10)

douglasjunior avatar douglasjunior commented on August 16, 2024

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.

itsramiel avatar itsramiel commented on August 16, 2024

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.

itsramiel avatar itsramiel commented on August 16, 2024

Same results with the following minimal repo:

ex2.mp4
ex1.mp4

from react-native-keyboard-manager.

douglasjunior avatar douglasjunior commented on August 16, 2024

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.

douglasjunior avatar douglasjunior commented on August 16, 2024

I created a native iOS Xcode project, with Storyboards and Navigation Controllers, and problem don't happen.

keyboard manager

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.

itsramiel avatar itsramiel commented on August 16, 2024

yes confirmed that the bug is not there when using stack instead of native stack. thank you!!

from react-native-keyboard-manager.

hirbod avatar hirbod commented on August 16, 2024

@ramiel1999 maybe worth an issue report at react-native-screens.

from react-native-keyboard-manager.

landabaso avatar landabaso commented on August 16, 2024

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.

itsramiel avatar itsramiel commented on August 16, 2024

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.

landabaso avatar landabaso commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.