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: make svgView getter public #2583

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

latekvo
Copy link
Contributor

@latekvo latekvo commented Dec 18, 2024

Summary

This PR revert #2555, as RenderableView.hitTest() can be replaced by SvgView.reactTagForTouch(), which is already public.

This PR also changes the package-private getSvgView() method of VirtualView to public.
This change has been made to handle hit detection of transformed VirtualViews, as RenderableView's hitTest() doesn't take transformations into account, while SvgView's reactTagForTouch() does.

Making getSvgView() public is necessary for integrating RNSVG support into RNGH. More details here.

Test Plan

Run the example from the RNGH - RNSVG integration PR.

What's required for testing (prerequisites)?

What are the steps to reproduce (after prerequisites)?

Compatibility

OS Implemented
iOS
MacOS
Android
Web

Checklist

  • I have tested this on a device and a simulator
  • I added documentation in README.md
  • I updated the typed files (typescript)
  • I added a test for the API in the __tests__ folder

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.

1 participant