Code Monkey home page Code Monkey logo

Comments (8)

YeeWan0217 avatar YeeWan0217 commented on May 24, 2024

have same problem too

from react-native-actions-sheet.

justinmwarner avatar justinmwarner commented on May 24, 2024

Not sure if you tried, but passing in snapPoints={[80]} sets the height to 80%. This works on my end at least.

from react-native-actions-sheet.

YeeWan0217 avatar YeeWan0217 commented on May 24, 2024

@justinmwarner Thank you for the solution, my solution is set the style of ScrollView in ActionSheet with maxHeight: Platform.OS == 'ios' ? Dimensions.get('window').height * 0.3 : Dimensions.get('window').height * 0.4,. But I do like your solution.

from react-native-actions-sheet.

eisodev avatar eisodev commented on May 24, 2024

https://rnas.vercel.app/guides/safearea

Isn't the drawUnderStatusbar={false} supposed to solve this problem? That prop does nothing for me it seems.

Version 0.8.21

from react-native-actions-sheet.

ammarahm-ed avatar ammarahm-ed commented on May 24, 2024

This will be fixed in #330

You can set the maxHeight on containerStyle prop btw for now.

from react-native-actions-sheet.

z1haze avatar z1haze commented on May 24, 2024

Not sure if you tried, but passing in snapPoints={[80]} sets the height to 80%. This works on my end at least.

Read the op issue. It mentions using snap points and it does not fix the issue. Your test case I imagine does not have enough content in it to see the actual issue...

from react-native-actions-sheet.

ammarahm-ed avatar ammarahm-ed commented on May 24, 2024

Not sure if you tried, but passing in snapPoints={[80]} sets the height to 80%. This works on my end at least.

Read the op issue. It mentions using snap points and it does not fix the issue. Your test case I imagine does not have enough content in it to see the actual issue...

You can't limit max height with snap points, you can however using maxHeight on containerStyle to do it. Snap points are used to snap to a certain section of sheet, the sheet will always open to 100% of its actual height based on the content.

from react-native-actions-sheet.

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.