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

Wrong path for Circle on Android #2627

Open
Sjoertjuh opened this issue Jan 30, 2025 · 0 comments
Open

Wrong path for Circle on Android #2627

Sjoertjuh opened this issue Jan 30, 2025 · 0 comments

Comments

@Sjoertjuh
Copy link

Sjoertjuh commented Jan 30, 2025

Description

The path of a Circle component seems to be wrong on Android. This can be visualized by using a TextPath. As you can see below, the text on Android gets bunched up in some places where it shouldn't. Also when the text is anchored to the end, it totally disappears.

iOS (left) vs android (right)

Links

Snack: https://snack.expo.dev/@sjoertjuhowow/react-native-svg-circle-path-bug?platform=android
Repo: https://github.com/Sjoertjuh/react-native-svg-circle-path-bug

Steps to reproduce

  1. Create an Svg
  2. Add a Circle (with an id, size, and radius)
  3. Add a Text with child TextPath that has an href of the circle's id and a textOffset of 100%
  4. See the text bunching up instead of being hidden

Snack or a link to a repository

https://github.com/Sjoertjuh/react-native-svg-circle-path-bug

SVG version

15.8.0

React Native version

0.76.6

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

Expo Go

Architecture

None

Build type

None

Device

Real device

Device model

No response

Acknowledgements

Yes

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

No branches or pull requests

1 participant