Giter Site home page Giter Site logo

Comments (6)

jeremybarbet avatar jeremybarbet commented on August 22, 2024

Hey!

Do you want to change the action itself, or you want to add another one? for now it's only calling an internal function to close the modal, but it would be easy to pass a props there that you can use.

https://github.com/jeremybarbet/react-native-modalize/blob/master/src/Modalize.tsx#L395-L399

from react-native-modalize.

P21Marcelo avatar P21Marcelo commented on August 22, 2024

thanks for your answer, on my case i want to set a custom action that will overlay the actual behavior.
to be more specific i want it to handle a navigation action of a stackNavigator inside of Modalize;
a good exemple of props would be : onBackButtonPress={() => NavigationService.goBack()};
thanks in advanced

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on August 22, 2024

Alright, sounds good to me. I'll add a props for that so you can pass any function you want

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on August 22, 2024

The props landed here: a7491c8 I'll release a new version soon

from react-native-modalize.

P21Marcelo avatar P21Marcelo commented on August 22, 2024

ty. good job.

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on August 22, 2024

1.0.0-alpha.23 released

from react-native-modalize.

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.