React-native: Colors are inaccurately rendered.

Created on 10 Nov 2016  路  8Comments  路  Source: facebook/react-native

Description

Colors are inaccurately rendered on both iOS simulator and devices. Haven't checked on Android.

img_8662

Hex codes from code:
Blue: #157efb
Black Text: #262626
Border: #b2b2b2
Background: #fafaff

Hex codes from screenshot:
Blue: #2181f7
Black Text: #191919
Border: #b2b2b2
Background: #fafaff

Reproduction

Simply use colors.

Additional Information

  • React Native version: 0.35
  • Platform: iOS, Not sure on Android
  • Operating System: MacOS
Locked

Most helpful comment

For those who run into the same problem as me, change your color profile to sRGB on Mac.

All 8 comments

Does this happen on a particular component, or across the board?

@hramos Across the board. It's not limited to text or buttons.

Maybe f.lux / nightshift?

Perhaps this is your display's colour correction. If you are using OSX try using chromes inspector to set this page's background to #157efb, using the OSX colour picker you'll get a different colour depending on the display profile in your OSX settings, I get #0A60FE

I tested with MacOS Sierra and the colors are correct.

Sounds like a non-issue. Ping me if you think this should be re-opened.

@JakeCoxon Wow. You are right. I don't know why my display is rendering wrong colors.

For those who run into the same problem as me, change your color profile to sRGB on Mac.

Was this page helpful?
0 / 5 - 0 ratings