We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae3ff8 commit 3c72e64Copy full SHA for 3c72e64
2 files changed
.changeset/sweet-cases-pick.md
@@ -0,0 +1,5 @@
1
+---
2
+"@kingstinct/react-native-activity-kit": patch
3
4
+
5
+fix color conversion
packages/react-native-activity-kit/ios/AlarmKitModule.swift
@@ -5,16 +5,16 @@ import NitroModules
func createColor(_ color: RGBColor) -> Color {
6
if let alpha = color.alpha {
7
return Color.init(
8
- red: color.red * 255,
9
- green: color.green * 255,
10
- blue: color.blue * 255,
+ red: color.red / 255,
+ green: color.green / 255,
+ blue: color.blue / 255,
11
opacity: alpha
12
)
13
}
14
15
16
17
- blue: color.blue * 255
+ blue: color.blue / 255
18
19
20
0 commit comments