Skip to content

fix: only call onGestureStart when criteria met in drawer#10929

Merged
satya164 merged 2 commits intoreact-navigation:mainfrom
hannojg:fix/onStart-issue-10927
Nov 18, 2022
Merged

fix: only call onGestureStart when criteria met in drawer#10929
satya164 merged 2 commits intoreact-navigation:mainfrom
hannojg:fix/onStart-issue-10927

Conversation

@hannojg
Copy link
Copy Markdown
Contributor

@hannojg hannojg commented Oct 14, 2022

Please provide enough information so that others can review your pull request.

Motivation

Fixes #10927.

NOTE: I already put up a PR for the issue #10928. This PR is just in case you don't like the proposal I made there.

Test plan

See other PR for test plan

@netlify
Copy link
Copy Markdown

netlify bot commented Oct 14, 2022

Deploy Preview for react-navigation-example ready!

Name Link
🔨 Latest commit 8301202
🔍 Latest deploy log https://app.netlify.com/sites/react-navigation-example/deploys/63777e6d79265f00090207d6
😎 Deploy Preview https://deploy-preview-10929--react-navigation-example.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Copy Markdown
Member

@satya164 satya164 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Can you make the same change in legacy implementation as well?

@hannojg
Copy link
Copy Markdown
Contributor Author

hannojg commented Oct 17, 2022

@satya164 thx for reviewing this. I noticed that in the legacy implementation it already works correctly.
Keyboard.dismiss and toggleStatusBar are only called when the activation criteria is met:

legacy_impl_working.mov

@hannojg hannojg requested a review from satya164 October 17, 2022 06:51
@kacperkapusciak kacperkapusciak changed the title [Drawer] fix onGestureStart called although criteria not met (#10927) fix: only call onGestureStart when criteria met in drawer Nov 4, 2022
@satya164 satya164 merged commit 9041069 into react-navigation:main Nov 18, 2022
kacperkapusciak pushed a commit to josemak25/react-navigation that referenced this pull request Dec 15, 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.

[Drawer] High swipeEdgeWidth value causes keyboard to gets constantly closed

3 participants