facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.31k stars 24.35k forks source link

TextInput placeholder in ANDROID 14 not respect fontFamily custom #45853

Open YuriLima23 opened 3 months ago

YuriLima23 commented 3 months ago

Description

When installing custom font like Robot in device and configuration, the placeholder not applying the font the other components working but specific placeholder of TextInputs not working

Steps to reproduce

React Native Version

0.73.0

Affected Platforms

Runtime - Android

Output of npx react-native info

System:
  OS: Linux 5.4 Linux Mint 20.3 (Una)
  CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
  Memory: 8.01 GB / 23.29 GB
  Shell:
    version: 5.0.17
    path: /bin/bash
Binaries:
  Node:
    version: 20.10.0
    path: /opt/node-v20.10.0-linux-x64/bin/node
  Yarn:
    version: 1.22.18
    path: /usr/local/bin/yarn
  npm:
    version: 10.2.3
    path: /opt/node-v20.10.0-linux-x64/bin/npm
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "23"
      - "28"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "34"
    Build Tools:
      - 28.0.3
      - 29.0.2
      - 29.0.3
      - 30.0.0
      - 30.0.1
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-16 | Intel x86 Atom
      - android-21 | Google APIs Intel x86 Atom
      - android-24 | Google Play Intel x86 Atom
      - android-28 | Google APIs Intel x86 Atom
      - android-28 | Google APIs Intel x86 Atom_64
      - android-30 | Android TV Intel x86 Atom
      - android-30 | China version of Wear OS 3 Intel x86 Atom
      - android-30 | Wear OS 3 ARM 64 v8a
      - android-30 | Wear OS 3 Intel x86 Atom
      - android-30 | ARM 64 v8a
      - android-30 | Intel x86_64 Atom
      - android-30 | Google TV Intel x86 Atom
      - android-30 | Google APIs ARM 64 v8a
      - android-30 | Google APIs Intel x86 Atom
      - android-30 | Google APIs Intel x86_64 Atom
      - android-30 | Google Play ARM 64 v8a
      - android-30 | Google Play Intel x86 Atom
      - android-30 | Google Play Intel x86 Atom_64
      - android-32 | Google Play Intel x86_64 Atom
      - android-33 | Google APIs Intel x86_64 Atom
      - android-33 | Google Play Intel x86_64 Atom
      - android-34 | Google Play Intel x86_64 Atom
    Android NDK: Not Found
IDEs:
  Android Studio: Not Found
Languages:
  Java:
    version: 17.0.10
    path: /usr/lib/jvm/jdk-17-oracle-x64/bin/javac
  Ruby:
    version: 2.7.0
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.6
    wanted: 0.73.6
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

No Stacktrace

Reproducer

https://github.com/YuriLima23/IssuePlaceholder

Screenshots and Videos

image

react-native-bot commented 3 months ago
:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available - 0.73.9. 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.
react-native-bot commented 3 months ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
react-native-bot commented 3 months ago
:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available - undefined. 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.
react-native-bot commented 3 months ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
cortinico commented 3 months ago

Please provide a valid reproducer

YuriLima23 commented 3 months ago

Please provide a valid reproducer

Sorry, https://github.com/YuriLima23/IssuePlaceholder this repo is plublic and contain simple configuration to execute, i testing in android 13 is working but in android 14 the fontFamily crash

meetdhanani17 commented 3 months ago

It is working fine for me in API 34 and API 35

Screenshot 2024-08-03 at 9 38 36 PM

without fontstyle

Screenshot 2024-08-03 at 9 42 37 PM
YuriLima23 commented 3 months ago

It is working fine for me in API 34 and API 35 Screenshot 2024-08-03 at 9 38 36 PM

without fontstyle Screenshot 2024-08-03 at 9 42 37 PM

Try change font of device like different in Sansung i used Rosemay font