Open mazenchami opened 1 year ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
: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.72.7. 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. |
Description
React-Native on iOS and Android don't have P3 Color Space compatibility.
NOTE: This was tested with new & old arch.
React Native Version
0.72.6
Output of
npx react-native info
Steps to reproduce
Steps to Reproduce
Verify Device
Before we build the repro app, let's verify that your device is wide-gamut capable.
iOS:
Android:
Run Baseline App W/O Wide Gamut
Clone repo:
Install deps:
Start metro server:
Connect your physical iOS device and build the app (you may need to setup code-signing).
Connect your physical Android device and build the app
On Android, launch an alternative activity (DemoActivity) which loads in the wide-gamut image directly in the xml by-passing react-native.
Quick on-device observations:
Run App W/ Method Swizzling (iOS) and Wide Gamut Color Mode (Android)
Clone/checkout the
wide-gamut
branch:Start metro server:
Repeat steps from previous section.
Quick on-device observations:
Compare Screenshots
Transfer the screenshots to your computer.
Download and use the Pika app to compare the colors from the screenshots (baseline screenshots vs wide-gamut screenshots). Note: you will need a P3 capable display to perform this action.
Snack, screenshot, or link to a repository
Repo: https://github.com/yulolimum/tmp-p3-color-space-repro Issue within repo: https://github.com/yulolimum/tmp-p3-color-space-repro/issues/1