Skip to content

(feature) Better style support for text on native  #278

@nandorojo

Description

@nandorojo

Since <span /> maps to <Text />, it has extremely limited styling capabilities. This issue might belong in core rather than react-strict-dom, but I noticed that, among many others, these styles don't work properly on <span /> (and thus <Text />):

  • borderRadius
  • padding
  • height: 100%
  • width: 100%
  • flexGrow
  • flexBasis
  • justifyContent
  • alignItems

The list goes on. I wonder if this is a fundamental limitation of NativeTextComponent or if it could be fixed upstream. Given the goal to bring web → native styling, I thought it was appropriate to post here.

I'd be happy to create an umbrella issue and/or assist with PRs if there is some guidance on the best approach to take.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: react-nativeA bug that originates in React Native

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions