Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add initialIndex & onMount props #30

Merged
merged 18 commits into from
Jun 10, 2024
Merged

Conversation

lodev09
Copy link
Owner

@lodev09 lodev09 commented Jun 2, 2024

  • Add initialIndex prop to present the sheet after loading.
  • Add onMount event prop to allow presenting sheet after loading.

Fixes #28

Copy link

vercel bot commented Jun 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-true-sheet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2024 4:25pm

@lodev09 lodev09 changed the title feat: add initialIndex & onLoad props feat: add initialIndex & onReady props Jun 3, 2024
@lodev09 lodev09 changed the title feat: add initialIndex & onReady props feat: add initialIndex & onMount props Jun 5, 2024
@lodev09 lodev09 marked this pull request as ready for review June 8, 2024 21:22
Copy link

codeclimate bot commented Jun 8, 2024

Code Climate has analyzed commit 6fa2bd0 and detected 0 issues on this pull request.

View more on Code Climate.

@lodev09 lodev09 requested a review from hirbod June 8, 2024 23:33
Copy link
Contributor

@hirbod hirbod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @lodev09, I tested it thoroughly. It definitely feels snappier and faster now. Hopefully, we can get a faster easing function in a future release, but this works great for now. The auto height calculation also seems more accurate.

LGTM

Tested with and without animation, and also multiple stacks. I'll just need to adjust my paddings now, but thats fine, because its much more accurate and predictable now!

testindex.mp4

@lodev09 lodev09 merged commit 28d2c18 into main Jun 10, 2024
7 checks passed
@lodev09 lodev09 deleted the feat/add-initial-index branch June 10, 2024 16:27
@lodev09
Copy link
Owner Author

lodev09 commented Jun 10, 2024

🚀 This pull request is included in v0.12.0. See Release 0.12.0 for release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to open sheet on mount
3 participants