Giter Site home page Giter Site logo

Comments (4)

niftylettuce avatar niftylettuce commented on August 16, 2024

Thanks for your feedback. I'm not sure what's going on here - I haven't the time to test and I don't even know if my XCode simulator is still installed. I'll gladly accept a PR and another maintainer here! My time with RN is super limited for the next bit of time 😦

from react-native-loading-spinner-overlay.

b8ne avatar b8ne commented on August 16, 2024

hey @jjzazuet how did you go with this? I just had a quick look, react native does provide a onBack listener, however it will depend on your implementation. ie. if you have multiple listeners or nested scenes/navigation the experience may vary. It would also need to bind to your containers state, and not this package. Because of this I wouldnt recommend implementing a method specific to this package, but rather to your project.
I found https://github.com/fractaltech/react-native-onback to be pretty simply but powerful.

from react-native-loading-spinner-overlay.

jjzazuet avatar jjzazuet commented on August 16, 2024

Hey @b8ne, so what I ended up doing was wrapping Spinner under my app specific component (which is connected to the Redux state), and then just intercepting the Android back event with the BackAndroid api offered by Facebook. So yeah I think it makes sense to close this issue report. Thanks for your help!

from react-native-loading-spinner-overlay.

urska19 avatar urska19 commented on August 16, 2024

Hi.

I know this issue is closed for a while now, but maybe following comment will still help someone. When back button on Android is pressed, Spinner disappears, because of the Modal's prop onRequestClose, which is set to close the Modal. Using onRequestClose={() => {}} instead, will prevent from closing the Modal and Spinner will be visible until the visibility is changed.

Best.

from react-native-loading-spinner-overlay.

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.