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

fix: PanGestureHandlerGestureEvent is a type and should be exported as such #10814

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

renchap
Copy link
Contributor

@renchap renchap commented Sep 4, 2022

Motivation

PanGestureHandlerGestureEvent is exported as a value, but is a type. This makes it included in the transpiled published code, which is incorrect and makes esbuild error it tries to consume the code (for example with https://microsoft.github.io/rnx-kit/docs/tools/metro-serializer-esbuild).

Test plan

There should not be any special test plans here, and the issue only happens when a non-standard RN/Metro setup is used. I tried the fix on my app using the ESBuild serializer mentioned above and it fixed the issue.

@github-actions
Copy link

github-actions bot commented Sep 4, 2022

Hey renchap! Thanks for opening your first pull request in this repo. If you haven't already, make sure to read our contribution guidelines.

@netlify
Copy link

netlify bot commented Sep 4, 2022

Deploy Preview for react-navigation-example ready!

Name Link
🔨 Latest commit 017bff0
🔍 Latest deploy log https://app.netlify.com/sites/react-navigation-example/deploys/6314f9b304cb930008ea34c9
😎 Deploy Preview https://deploy-preview-10814--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.

@codecov-commenter
Copy link

Codecov Report

Merging #10814 (017bff0) into main (b28bb2b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main   #10814   +/-   ##
=======================================
  Coverage   74.91%   74.91%           
=======================================
  Files         167      167           
  Lines        5130     5130           
  Branches     1986     1986           
=======================================
  Hits         3843     3843           
  Misses       1248     1248           
  Partials       39       39           
Impacted Files Coverage Δ
packages/drawer/src/views/GestureHandlerNative.tsx 100.00% <ø> (ø)
packages/stack/src/views/GestureHandlerNative.tsx 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
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.

Thank you

@satya164 satya164 merged commit f3d06ba into react-navigation:main Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants