Skip to content

iOS: Xcode xib vs js color discrepancy #394

@jenskuhrjorgensen

Description

@jenskuhrjorgensen

It was having problems with the iOS xib splash screen color being slightly different from my js background color (of course my PO instantly caught this). Turns out the default color scheme used in xib files (generic RGB) is different from what React Native uses (sRGB).

I used some time on debugging this, so thought I would share it with anybody else not being very familiar with Xcode.

In the xib file color picker press the little cog next to e.g. "RGB Sliders" and the the profile to sRGB:
Screenshot 2019-05-21 at 09 57 07

Tags: Difference, different, wrong, color, splash screen, ios, xcode, xib, rgb, srgb,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions