Skip to content

Commit 69d7c63

Browse files
Fix Android COlor issue
1 parent bf12e30 commit 69d7c63

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/react-native/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/HostPlatformColor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace facebook::react {
1515
using Color = int32_t;
1616

1717
namespace HostPlatformColor {
18-
constexpr facebook::react::Color UndefinedColor = 0;
18+
constexpr facebook::react::Color UndefinedColor = 0x00FFFFFF; // White with 0 opacity (transparent)
1919
}
2020

2121
inline Color

packages/react-native/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/HostPlatformColor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace facebook::react {
1616
using Color = int32_t;
1717

1818
namespace HostPlatformColor {
19-
constexpr facebook::react::Color UndefinedColor = 0;
19+
constexpr facebook::react::Color UndefinedColor = 0x00FFFFFF; // White with 0 opacity (transparent)
2020
}
2121

2222
inline Color

private/react-native-fantom/src/__tests__/Fantom-itest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ describe('Fantom', () => {
548548
},
549549
],
550550
props: {
551-
foregroundColor: 'rgba(0, 0, 0, 0)',
551+
foregroundColor: 'rgba(255, 255, 255, 0)',
552552
},
553553
type: 'Paragraph',
554554
});

0 commit comments

Comments
 (0)