necolas / react-native-web

Cross-platform React UI packages
https://necolas.github.io/react-native-web
MIT License
21.68k stars 1.79k forks source link

#2715 Override text-transform: capitalize behavior in Text component … #2716

Closed Mak-3 closed 1 month ago

Mak-3 commented 2 months ago

To align the behavior of text-transform: capitalize in react-native-web with React Native, we should implement a custom transformation that:

  1. Converts the entire string to lowercase.
  2. Capitalizes the first letter of each word.

This change will provide a consistent experience across both platforms.

codesandbox-ci[bot] commented 2 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e7b4d3748e0b548994fad472deccc8ba424886cd:

Sandbox Source
react-native-web-examples Configuration
necolas commented 1 month ago

See #2715