Description
I tried using the letterSpacing prop from Text component and observed the following:
- When I give a
number to it, it doesn't apply the correct spacing (on iOS only, works on web not tested on android)
- When I give a
string to it, it does apply to the correct spacing
Here is the example I used:
with letterSpacing={-9} |
with letterSpacing={'-9'} |
 |
 |
Steps to reproduce
Create an Svg with a Text inside it and pass it the letterSpacing prop with a number
Snack or a link to a repository
https://github.com/thomascoumau/rnsvg-text-letterspacing
SVG version
15.3.0
React Native version
0.73
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
iPhone 16 Pro on iOS 18.1 Simulator
Acknowledgements
Yes
Description
I tried using the letterSpacing prop from
Textcomponent and observed the following:numberto it, it doesn't apply the correct spacing (on iOS only, works on web not tested on android)stringto it, it does apply to the correct spacingHere is the example I used:
letterSpacing={-9}letterSpacing={'-9'}Steps to reproduce
Create an
Svgwith aTextinside it and pass it theletterSpacingprop with anumberSnack or a link to a repository
https://github.com/thomascoumau/rnsvg-text-letterspacing
SVG version
15.3.0
React Native version
0.73
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
iPhone 16 Pro on iOS 18.1 Simulator
Acknowledgements
Yes