Skip to content

Text prop letterspacing not working #2806

@thomascoumau

Description

@thomascoumau

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'}
Image Image

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions