react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Inaccurate colors displaying on Android.

Open herbievine opened this issue 4 years ago • 2 comments

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

I have a simple text component which doesn't display certain colors. Black rendered as white, blue as light purple. Green and red work fine though.

<Text style={{ color: '#111111' }}>Black text not working</Text>

React Native version:

System:
    OS: OS X Yosemite 10.10.5
    CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
    Memory: 282.84 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.17.0 - /var/folders/wj/j9ys71617dl6z_d88qqbgq1h0000gn/T/yarn--1625471333251-0.33904908366693487/node
    Yarn: 1.22.10 - /var/folders/wj/j9ys71617dl6z_d88qqbgq1h0000gn/T/yarn--1625471333251-0.33904908366693487/yarn
    npm: 6.14.13 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: Not Found
  SDKs:
    iOS SDK: Not Found
    Android SDK:
      API Levels: 29, 30
      Build Tools: 29.0.2
      System Images: android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.2 AI-202.7660.26.42.7351085
    Xcode: /undefined - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.1 => 0.64.1 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
✨  Done in 3.40s.

Steps To Reproduce

git clone -b color-issue https://github.com/herbievine/semeru yarn yarn android

Expected Results

The Text component's style (located at ./src/pages/chats.tsx) should be updated with the theme

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

https://github.com/herbievine/semeru https://stackoverflow.com/questions/68247588/react-native-stylesheet-not-updating-on-value-change ezgif-4-f912f20ddb52

herbievine avatar Jul 05 '21 07:07 herbievine

Could this be related to dark/light mode on Android? See the suggestion here https://github.com/facebook/react-native/issues/27876#issuecomment-759110877

jacquesdev avatar Jul 19 '21 10:07 jacquesdev

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 22 '24 05:02 github-actions[bot]

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

github-actions[bot] avatar Mar 01 '24 05:03 github-actions[bot]