Git Product home page Git Product logo

Comments (7)

mmazzarolo avatar mmazzarolo commented on August 24, 2024

Hello!
What version of React-Native are you using? Are you using Expo?

What component are you unmounting?

Also, in my opinion, you should not unmount any component that interacts with the DateTimePicker while it is still visible (just put it in an outer component).

from react-native-modal-datetime-picker.

rodrigooler avatar rodrigooler commented on August 24, 2024

cc @sibelius

from react-native-modal-datetime-picker.

rodrigooler avatar rodrigooler commented on August 24, 2024

@mmazzarolo hello!

react-native version: react-native": "0.44.0"
I'm not using expo.

I'm taking apart the code of the component above it would be TaskCardPending;

I tested it too and the error runs. Occurs inside the disassembled component or inside a container component.

from react-native-modal-datetime-picker.

mmazzarolo avatar mmazzarolo commented on August 24, 2024

I'm sorry but I still can't understand when the issue happens.
Could you share a repo/snippet for reproducing it?

The snippet you posted above is not clear enough to me.

Thanks!

from react-native-modal-datetime-picker.

rodrigooler avatar rodrigooler commented on August 24, 2024

@mmazzarolo I'll make an example with the error occurring and post here to help identify the error.

from react-native-modal-datetime-picker.

mmazzarolo avatar mmazzarolo commented on August 24, 2024

Closing for inactivity, feel free to open another issue if needed.

from react-native-modal-datetime-picker.

ChrisHughes avatar ChrisHughes commented on August 24, 2024

I believe I'm having the same issue. When the component unmounts or setState is called while the date picker is visible on screen, it dissociates events from it and is stuck overtop of react native. I.e. the date picker sits on top of react native unresponsive to clicks on either confirm or cancel while the rest of react native is operable beneath it. No amount of full on refreshes will help resolve this, app has to be fully closed and reopened.

from react-native-modal-datetime-picker.

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.