Skip to content

Conversation

focux
Copy link
Contributor

@focux focux commented Aug 30, 2022

This PR closes #204. The problem was mostly due to a race condition when you opened an action sheet with the keyboard opened or a text input focused. Basically, the hideKeyboard callback was executing—because you have the keyboard opened before opening the sheet—and it was translating the sheet to the top of the screen before animating.

To fix this issue I added a check to only execute the hideKeyboard callback when initialValue is initialized, so, that means that the showKeyboard callback needs to be executed first before calling hideKeyboard.

@vercel
Copy link

vercel bot commented Aug 30, 2022

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

Name Status Preview Updated
rnas ✅ Ready (Inspect) Visit Preview Aug 30, 2022 at 11:32PM (UTC)

@ammarahm-ed
Copy link
Owner

Thanks 🚀🚀 looks good..

@ammarahm-ed ammarahm-ed merged commit a7a52fc into ammarahm-ed:master Aug 31, 2022
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.

Action Sheet drops down first, then resume normal
2 participants