Giter Site home page Giter Site logo

Comments (7)

jeremybarbet avatar jeremybarbet commented on August 22, 2024 1

Hi @vforvasile, thank you for using Modalize.

No, I don't have any ETA. I'm trying to work on it when I have a bit of time, but I'm quite busy. If you have any idea how to fix this, I would be happy to review your PR!

You can use position absolute on the Header/Footer components so they will be on top of the scrollview, and will stay fixed. You have an example here: https://github.com/jeremybarbet/react-native-modalize/blob/master/examples/expo/src/components/modals/AbsoluteHeader.js#L9-L24

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on August 22, 2024 1

Now able to toggle the prop and re-calculate the height https://b.ueno.is/p9uK9P5d Fixed in rc-17.

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on August 22, 2024

Hi!

This is not an issue. The adjustToContentHeight is initialized when the component is mounted for the first time. Which mean even when you change the props, the calculation is not run again.

We would need to introduce a listener on the component to run the functions needed, feel free to open a PR to add this

from react-native-modalize.

vforvasile avatar vforvasile commented on August 22, 2024

Hey @jeremybarbet!

Amazing job with the library, found out about it on reddit and switched from react-native-reanimated-bottom-sheet right away.

Any ETA on dynamic height feature?

On a separate issue, is there any method of overlaying something on the Modalize with an absolute position that won't move on scroll? Header/footer components don't really do the job for me, they're scroll dependant.

from react-native-modalize.

vforvasile avatar vforvasile commented on August 22, 2024

@jeremybarbet , I tried this approach, it works well if you open Modalize at full height, if you have a snap point then the FlatList will move with the absolute element.

I tested with a new prop childOverlay in renderModalize(), by setting zIndex over 100 and absolute styling (bottom:0) to childOverlay I'm passing

Screen Shot 2020-03-27 at 19 53 07

Now it works even if I scroll up/down, move from snap point to full mode

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on August 22, 2024

Would you mind creating a PR to introduce this new props?

from react-native-modalize.

vforvasile avatar vforvasile commented on August 22, 2024

on it!

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.