Git Product home page Git Product logo

react-stateful-bottom-sheet's People

Contributors

helgastogova avatar

Watchers

 avatar

Forkers

costyn

react-stateful-bottom-sheet's Issues

setOpen(true) doesn't seem to work

Hello!
First of all, very nice library, thanks for sharing.

I'm trying to also include a button on the drawer which will open the drawer which will have search filters on it. Doing a setOpen(true) doesn't seem to work, unfortunately (while setOpen(false) does).

<BottomSheet>
  {({ isOpen, setOpen }) => (
	  <div>
		  <FilterTagGroup onChange={onChangeSelect} urlSearchParams={urlSearchParams} />
		  <ButtonSecondary
			  variant={'on-light'}
			  onClick={() => setOpen(!isOpen)}>
			  {isOpen ? 'Close Filters' : 'Open Filters'}
		  </ButtonSecondary>
	  </div>
  )}
</BottomSheet>

Am I doing something wrong?

Thanks

Export BottomSheetChildProps

ESLint and my IDE are unhappy about the any, any typing on isOpen, setOpen props. It would be great if the type was exported so it could be made explicit:

{({ isOpen, setOpen }: BottomSheetChildProps) => (

Cannot read properties of null (reading 'useRef')

Hello again!

When updating from 1.0.7 to 1.0.8, I now get a "index.js:481 React Router caught the following error during render TypeError: Cannot read properties of null (reading 'useRef')" which is referring to the useRef in index.tsx line 36.

Rolling back to 1.0.7 makes this error go away, I've been trying to troubleshoot, but am not experienced enough in React/TypeScript to spot the issue.

Also 'fullHeight' is missing from the useEffect deps on line 43.

Cheers

Pulling up closed Bottom Sheet shows items behind

Hello again,

If you pull up enough on the Bottom Sheet while it is closed, it then reveals the text underneath. This screenshot shows what I mean:

image

I'm not too bothered by it, but might be nice to fix it. I guess make the panel longer somehow?

Feature request: specify transition kind

Totally no rush in this, but it would be nice to be able to specify your own transition in the motion.div, easeInOut for example.

Additionally, dragging currently uses the transition, but opening and closing by setOpen does not.

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.