You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue with the verticalAlign prop on the Text component. When utilized, it does not function correctly on different platforms. Specifically, on the web, the prop appears to have no effect, while on iOS and Android, it causes the app to crash. In the codebase, specifically in apple/ViewManagers/RNSVGTextManager.mm, there is a statement: RCT_EXPORT_VIEW_PROPERTY(verticalAlign, NSString) // unused on iOS
This suggests that the verticalAlign prop is currently unused on iOS, which might explain the app crashes on this platform. However, on Android, it seems that this prop is implemented, making the crashing behavior unexpected.
Steps to reproduce
Open the provided code in Expo Snack or in a local development environment.
Description
I have encountered an issue with the verticalAlign prop on the Text component. When utilized, it does not function correctly on different platforms. Specifically, on the web, the prop appears to have no effect, while on iOS and Android, it causes the app to crash. In the codebase, specifically in apple/ViewManagers/RNSVGTextManager.mm, there is a statement:
RCT_EXPORT_VIEW_PROPERTY(verticalAlign, NSString) // unused on iOS
This suggests that the verticalAlign prop is currently unused on iOS, which might explain the app crashes on this platform. However, on Android, it seems that this prop is implemented, making the crashing behavior unexpected.
Steps to reproduce
Snack or a link to a repository
https://snack.expo.dev/bsrXXGF6kJssj58CgpQbm
SVG version
15.3.0
React Native version
0.73.1
Platforms
Android, iOS, Web
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: