react-native-okaycam 1.1.25 → 1.1.28

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.
@@ -46,7 +46,7 @@ repositories {
46
46
 
47
47
  dependencies {
48
48
  implementation 'com.facebook.react:react-native:+'
49
- implementation('com.innov8tif.okaycam:OkayCam:1.1.10@aar') {
49
+ implementation('com.innov8tif.okaycam:OkayCam:1.1.12@aar') {
50
50
  transitive = true
51
51
  }
52
52
  implementation 'com.googlecode.json-simple:json-simple:1.1.1'
@@ -80,7 +80,7 @@ class RNOkayCam: NSObject {
80
80
  okayCamConfig.showOverlay = showOverlay
81
81
 
82
82
  // timer
83
- okayCamConfig.timer.backgroundColor = self.hexStringToUIColor(hex: timer.object(forKey: "backgroundColor") as! String)
83
+ okayCamConfig.timer.backgroundColor = self.hexStringToUIColor(hex: timer.object(forKey: "backgroundColor") as! String,alpha:0.5)
84
84
  okayCamConfig.timer.textColor = self.hexStringToUIColor(hex: timer.object(forKey: "textColor") as! String)
85
85
 
86
86
  // capture button color
@@ -348,7 +348,7 @@ class RNOkayCam: NSObject {
348
348
  return result
349
349
  }
350
350
 
351
- func hexStringToUIColor (hex:String) -> UIColor {
351
+ func hexStringToUIColor (hex:String,alpha : Float = 1.0) -> UIColor {
352
352
  var cString:String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased()
353
353
 
354
354
  if (cString.hasPrefix("#")) {
@@ -366,7 +366,7 @@ class RNOkayCam: NSObject {
366
366
  red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0,
367
367
  green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0,
368
368
  blue: CGFloat(rgbValue & 0x0000FF) / 255.0,
369
- alpha: CGFloat(1.0)
369
+ alpha: CGFloat(alpha)
370
370
  )
371
371
  }
372
372
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-okaycam",
3
3
  "title": "React Native OkayCam",
4
- "version": "1.1.25",
4
+ "version": "1.1.28",
5
5
  "description": "React-Native version of OkayCam",
6
6
  "main": "index.ts",
7
7
  "files": [
@@ -22,7 +22,7 @@ Pod::Spec.new do |s|
22
22
  s.requires_arc = true
23
23
  s.static_framework = true
24
24
  s.dependency "React"
25
- s.dependency "OkayCam", "1.1.9"
25
+ s.dependency "OkayCam", "1.1.10"
26
26
  end
27
27
 
28
28