Giter Site home page Giter Site logo

Comments (6)

Trashpants avatar Trashpants commented on July 21, 2024

Bump to this im also having the same error using react-navigation.

Ive spent a while looking at the react-navigation example however I absolutely cannot understand how react navigation is applied at app in the project?

The only way around this I can think of right now is to apply the modalize window at root level with AppContainer and then attempt to inject and alter it however this seems ridiculously messy

from react-native-modalize.

hirbod avatar hirbod commented on July 21, 2024

adding prop withReactModal is what you need, but it breaks the swipe gestures on android unfortunately, but works great on iOS

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on July 21, 2024

Hi!

Yes, you can use withReactModal but as @hirbod it breaks the gestures on android, which is a known issue from react-native and react-native-gesture-handler.

Another solution, is to create a Modal provider with Modalize on it and add it to the root of your app. Then on the screen you need have the modal you call your context to toggle it.

from react-native-modalize.

ardyfeb avatar ardyfeb commented on July 21, 2024

@daniakbar you probably need https://www.npmjs.com/package/react-native-portal to render modalize on root component

from react-native-modalize.

minayaleon avatar minayaleon commented on July 21, 2024

For Android, you can use this
shadowRadius: 8, borderRadius: 8, ...Platform.select({ android: { elevation: 0, }, }),

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on July 21, 2024

I will close that due to inactivity. A provider to open Modalize from a root parent would be the best approach. If nobody opens a PR, I will try to do it when I find free time!

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.