software-mansion / react-native-svg

SVG library for React Native, React Native Web, and plain React web projects.
MIT License
7.52k stars 1.14k forks source link

inlineSize prop not working for Text component #2476

Open DanyKrk opened 1 month ago

DanyKrk commented 1 month ago

Description

The inlineSize property is not functioning as expected when applied to the Text component in react-native-svg. While it works correctly for the TSpan component, the property seems to have no effect on the Text component. Also, it turns out that the inlineSize prop doesn't work at all on the web.

Steps to reproduce

  1. Open the provided code in Expo Snack or in a local development environment.
  2. Run the application on an Android device
  3. Run the application on an iOS device

Snack or a link to a repository

https://snack.expo.dev/Y0qUMUj6OO7wp4ZfPBOLT

SVG version

15.3.0

React Native version

0.73.1

Platforms

Android, iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes