Git Product home page Git Product logo

Comments (6)

kmagiera avatar kmagiera commented on May 23, 2024

It appears that the way this is normally handled on iOS is by using willMoveToWindow and/or didMoveToWindow

When using UINavController, willMoveToWindow triggers with nil window when the animation starts. What happens under the hood is that UINavController then immediately remounts the view and only unmounts it when the animation is over.

I went ahead and attempted to implement that behavior in ScreenContainer (apparently we can't use UINavController directly for reasons). If you have some time please try it from my branch here: https://github.com/kmagiera/react-native-screens/tree/move_window_events

The patch is here -> master...move_window_events

from react-native-screens.

tychota avatar tychota commented on May 23, 2024

I made a minimal working example here: https://github.com/tychota/BugInputAcessoryView

from react-native-screens.

tychota avatar tychota commented on May 23, 2024

I went ahead and attempted to implement that behavior in ScreenContainer (apparently we can't use UINavController directly for reasons). If you have some time please try it from my branch here: https://github.com/kmagiera/react-native-screens/tree/move_window_events

Can you detail a bit the reason ? Too much teasing for my curiosity :)

from react-native-screens.

kmagiera avatar kmagiera commented on May 23, 2024

Closing this as of #47 – the updated version will be published soon. Please try it out and reopen if the problem persist

from react-native-screens.

tychota avatar tychota commented on May 23, 2024

I will definitivly try. Thank you sir.

from react-native-screens.

ZakSingh avatar ZakSingh commented on May 23, 2024

Was a fix for this released? I'm having a bit of trouble following the convo here (I don't know anything about native dev). We're experiencing the exact same problem with the InputAccessoryView rendering a second or so after the screen transition ends. It works ok in regular react-navigation v5, so that's a fallback for now, but it would be great if we could use react-native-screens instead!

from react-native-screens.

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.