Giter Site home page Giter Site logo

Comments (4)

jeremybarbet avatar jeremybarbet commented on August 22, 2024
  • How do you update the content?
  • The modal has different height between your two screenshots, so it looks like the height is changing somehow. Don't you have a hidden element or another style?
  • If you could add your code on https://snack.expo.io I could look at it, it's hard to tell like this

from react-native-modalize.

pranavpandey1998official avatar pranavpandey1998official commented on August 22, 2024

https://github.com/pranavpandey1998official/Rocket.Chat.ReactNative/blob/02674d6c7a585f600d8cd6dd0fab4c3d8fa93795/app/views/ActionSheet.js#L1

It is an independent component that gets mounted once so can just take a look at this file it will be straightforward, I am emitting an event and passing options from which it is making the inner content..

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on August 22, 2024

This issue is related to this one #53. The adjustToContentHeight props are fully initialized when the modal is mounted for the first time, but when you change children, the functions are not totally run again.

I don't have time now to look at it now, but it's a good improvement feature to make.

However, you might be able to make it work by removing this props and using modalHeight based on your content height that you would measure by yourself each time you switch. Let me know if it does the trick :)

from react-native-modalize.

jeremybarbet avatar jeremybarbet commented on August 22, 2024

Hi !

I will close this issue. It has been fixed in one of the latest version. The content is now adjusting to content’s height.

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.