expo-live-activity 0.2.0-alpha1 → 0.2.0-alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@ The module comes with a built-in config plugin that creates a target in iOS with
30
30
  }
31
31
  ```
32
32
  2. **Assets configuration:**
33
- Place images intended for live activities in the `assets/live-activity` folder. The plugin manages these assets automatically.
33
+ Place images intended for live activities in the `assets/liveActivity` folder. The plugin manages these assets automatically.
34
34
 
35
35
  ### Step 3: Usage in Your React Native App
36
36
  Import the functionalities provided by the `expo-live-activity` module in your JavaScript or TypeScript files:
@@ -21,15 +21,15 @@ extension Color {
21
21
  .sRGB,
22
22
  red: Double((rgbValue >> 24) & 0xff) / 255,
23
23
  green: Double((rgbValue >> 16) & 0xff) / 255,
24
- blue: Double((rgbValue >> 08) & 0xff) / 255,
25
- opacity: Double((rgbValue >> 00) & 0xff) / 255,
24
+ blue: Double((rgbValue >> 8) & 0xff) / 255,
25
+ opacity: Double((rgbValue >> 0) & 0xff) / 255
26
26
  )
27
27
  } else {
28
28
  self.init(
29
29
  .sRGB,
30
30
  red: Double((rgbValue >> 16) & 0xff) / 255,
31
- green: Double((rgbValue >> 08) & 0xff) / 255,
32
- blue: Double((rgbValue >> 00) & 0xff) / 255,
31
+ green: Double((rgbValue >> 8) & 0xff) / 255,
32
+ blue: Double((rgbValue >> 0) & 0xff) / 255,
33
33
  opacity: 1
34
34
  )
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-live-activity",
3
- "version": "0.2.0-alpha1",
3
+ "version": "0.2.0-alpha2",
4
4
  "description": "A module for adding Live Activity to a React Native app for iOS.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -46,7 +46,7 @@ function getWidgetFiles(targetPath) {
46
46
  console.log("Building for example app");
47
47
  }
48
48
  const liveActivityFilesPath = path.join(packagePath ? packagePath : "..", "/ios-files");
49
- const imageAssetsPath = "./assets/live_activity";
49
+ const imageAssetsPath = "./assets/liveActivity";
50
50
  const widgetFiles = {
51
51
  swiftFiles: [],
52
52
  entitlementFiles: [],
@@ -20,7 +20,7 @@ export function getWidgetFiles(
20
20
  console.log("Building for example app")
21
21
  }
22
22
  const liveActivityFilesPath = path.join(packagePath ? packagePath : "..", "/ios-files");
23
- const imageAssetsPath = "./assets/live_activity";
23
+ const imageAssetsPath = "./assets/liveActivity";
24
24
 
25
25
  const widgetFiles: WidgetFiles = {
26
26
  swiftFiles: [],