Code Monkey home page Code Monkey logo

Comments (8)

syedirfan33 avatar syedirfan33 commented on May 28, 2024 1

Omg it's working, thanks a lot!!

from react-native-modalfy.

CharlesMangwa avatar CharlesMangwa commented on May 28, 2024

Hey @syedirfan33! May I ask which version of the library are you using?

from react-native-modalfy.

syedirfan33 avatar syedirfan33 commented on May 28, 2024

Hey @CharlesMangwa , I am using "react-native-modalfy": "^1.0.0-beta.0",

from react-native-modalfy.

CharlesMangwa avatar CharlesMangwa commented on May 28, 2024

OK got it. Just to understand your issue a bit better I'd have a few questions:

  1. Are the "previously opened modal" and 'NewOrderPost' using the same component?
  2. How many modals do you have in your stack?
    2.1 If more than 2, was the "previously opened modal" the latest one opened right before you opened 'NewOrderPost'?

from react-native-modalfy.

syedirfan33 avatar syedirfan33 commented on May 28, 2024
  1. Yes, I had opened 'NewOrderPre ' before and would need to open 'NewOrderPost' upon clicking 'confirm' button of 'NewOrderPre'

  2. I have only these two 2 modals in stack.
    const modalConfig = {
    NewOrderPre,
    NewOrderPost,
    };

from react-native-modalfy.

CharlesMangwa avatar CharlesMangwa commented on May 28, 2024

Gotcha! So NewOrderPre and NewOrderPost are using 2 different components under the hood? (could you provide a small reproducible example on Snack plz? Would make it easier to help you as best as I can).

from react-native-modalfy.

syedirfan33 avatar syedirfan33 commented on May 28, 2024

Hi @CharlesMangwa , sure. I Will do. NewOrderPost and NewOrderPre are two differet compoents.

meanwhile Could you please let me know how can I close current modal upon performing some actions?

from react-native-modalfy.

CharlesMangwa avatar CharlesMangwa commented on May 28, 2024

Oh my bad @syedirfan33! After reading your initial message again I think I've found where your issue might come from: you wrote closeModal; instead of actually calling the function via closeModal();, that's why nothing is happening.

from react-native-modalfy.

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.