Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textTransform uppercase does not work on Android #38499

Closed
Arron-Gill opened this issue Jul 18, 2023 · 11 comments
Closed

textTransform uppercase does not work on Android #38499

Arron-Gill opened this issue Jul 18, 2023 · 11 comments
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Newer Patch Available Platform: Android Android applications.

Comments

@Arron-Gill
Copy link

Arron-Gill commented Jul 18, 2023

Description

When passing in a style to the Text component with TextStyle.textTransform set to "uppercase" it works on iOS but not Android. This is specific to when new architecture is enabled.

React Native Version

0.72.0

Output of npx react-native info

System:
OS: macOS 13.4.1
CPU: (10) arm64 Apple M1 Max
Memory: 345.33 MB / 64.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 16.14.2
path: ~/.nvm/versions/node/v16.13.0/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 8.1.0
path: ~/.nvm/versions/node/v16.13.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.12.1
path: /Users/arron.gill/.asdf/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK:
API Levels:
- "27"
- "28"
- "31"
- "32"
- "33"
Build Tools:
- 27.0.3
- 28.0.0
- 28.0.3
- 30.0.2
- 30.0.3
- 31.0.0
- 32.0.0
- 33.0.0
System Images:
- android-23 | Google APIs ARM 64 v8a
- android-28 | ARM 64 v8a
- android-28 | Intel x86 Atom_64
- android-28 | Google ARM64-V8a Play ARM 64 v8a
- android-29 | Google Play ARM 64 v8a
- android-30 | Google APIs ARM 64 v8a
- android-30 | Google Play ARM 64 v8a
- android-30 | Google APIs ATD ARM 64 v8a
- android-32 | Google APIs ARM 64 v8a
- android-32 | Google Play ARM 64 v8a
- android-33 | Google Play ARM 64 v8a
Android NDK: 22.1.7171670
IDEs:
Android Studio: Flamingo 2022.2.1 Patch 2 Flamingo 2022.2.1 Patch 2
Xcode:
version: 14.3.1/14E300c
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.16.1
path: /usr/bin/javac
Ruby:
version: 3.0.3
path: /Users/arron.gill/.asdf/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true

Steps to reproduce

Assign a style to the RN Text Component where you have property textTransform set to "uppercase". It will work on iOS Sim but not Android emulator.

Snack, code example, screenshot, or link to a repository

<Text style={{textTransform: 'uppercase'}}>{label}</Text>

@github-actions
Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.72.3. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@github-actions github-actions bot added the Platform: Android Android applications. label Jul 18, 2023
@Arron-Gill
Copy link
Author

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.72.3. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

Tried this suggestion but the issue still manifests.

@cortinico cortinico added the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label Jul 19, 2023
@github-actions
Copy link

⚠️ Missing Reproducible Example
ℹ️ It looks like your issue is missing a reproducible example. Please provide either:

@AhmadAlz7
Copy link

any updates on this usse, I face the same issue using this example:
<Text style={{ textTransform: 'uppercase' }}>any text</Text>

"react": "18.2.0",
"react-native": "0.72.1",

@retrixe
Copy link

retrixe commented Aug 16, 2023

I'm experiencing this issue as well, this affects my screen labels in @react-navigation/material-top-tabs in my application when testing it with the new architecture. This issue has been around since at least React Native 0.70 (if not earlier, 0.70 is when I first tested Fabric).

@github-actions
Copy link

This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 10, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 17, 2023
@retrixe
Copy link

retrixe commented Sep 17, 2023

This bug is still applicable and isn't missing a reproducible example? It's a super simple bug to reproduce and is really annoying since it even affects react-navigation tab labels, this issue should be reopened (not sure who to ping for this)

@cortinico
Copy link
Contributor

It's a super simple bug to reproduce and is really annoying since it even affects react-navigation tab labels, this issue should be reopened (not sure who to ping for this)

As it's super simple to reproduce, please open a new issue, provide a reproducer, and we'll properly triage it 👍

@retrixe
Copy link

retrixe commented Sep 18, 2023

#39524 alright, done here

@td-tomasz
Copy link

@cortinico Is the code for android platform even implemented? I see that one exists for iOS, not the other way around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Newer Patch Available Platform: Android Android applications.
Projects
None yet
Development

No branches or pull requests

5 participants