Closed timnlupo closed 10 months ago
Yes. I want that too.
A position
prop would be a nice convenient way. This though is currently supported by setting startDelta
and endDelta
to the window height (useWindowDimensions().height
).
I just tried this, you actually need to set
startDelta={useWindowDimensions().height}
endDelta={useWindowDimensions().height - height} // height is the height of the alert
Since height
is saved in the DropdownAlert's state, I think it makes sense to add a position
prop to be able to easily toggle it. Otherwise, a user has to add an onLayout to a view surrounding the DropdownAlert (which gets messy).
Going to work on this (should be pretty straightforward) and will update here.
Are there any updates to this?
I have simplified to a single animation flow from the top in latest release. That being said, I am open to support the inverse. I will take a look at the feasibility soon.
Update: implemented in PR #302
Completed in v5.1.0
Hi all! I'm thinking about adding support for a
position
prop with optionstop
orbottom
. This would allow users to specify whether they want the notification to drop down from the top or pop up from the bottom. Similar to the functionality in this repo.Please lmk what you think before I invest the time in building it out. Thanks.