Commit 19bc65a
committed
fix(expo): reject 3-digit hex in theme validation and fix Android 8-digit hex ordering
- Remove 3-digit hex (#RGB) from the prebuild validation regex. Both native
parsers only handle 6- or 8-digit hex, so 3-digit values would pass validation
but be silently ignored at runtime.
- Convert RRGGBBAA to AARRGGBB on Android before passing to parseColor. iOS
already parses 8-digit hex as RRGGBBAA, so without this conversion the same
color token could render differently on each platform.1 parent b5af733 commit 19bc65a
2 files changed
Lines changed: 7 additions & 2 deletions
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
442 | 447 | | |
443 | 448 | | |
444 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| |||
0 commit comments