@readyio/react-native-wallet 0.1.24 → 0.1.26

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.
Files changed (26) hide show
  1. package/README.md +3 -1
  2. package/android/src/main/assets/ReadyWallet.bundle +1471 -1467
  3. package/android/src/main/res/drawable-mdpi/assets_icons_normal_arrow.png +0 -0
  4. package/android/src/main/res/drawable-mdpi/assets_icons_normal_circles_three_plus_fill.png +0 -0
  5. package/android/src/main/res/drawable-mdpi/assets_icons_normal_gear_six_fill.png +0 -0
  6. package/android/src/main/res/drawable-mdpi/assets_icons_normal_wallet_fill.png +0 -0
  7. package/android/src/main/res/drawable-mdpi/ready_splash_onus_logo.png +0 -0
  8. package/android/src/main/res/layout/ready_splash.xml +15 -9
  9. package/android/src/main/res/raw/ready_wallet_splash.json +3677 -16369
  10. package/ios/ReadySplash.swift +12 -10
  11. package/ios/ReadyWallet.swift +2 -3
  12. package/ios/sdk/ReadyWallet.bundle +0 -0
  13. package/ios/sdk/assets/assets/icons/normal/arrow.png +0 -0
  14. package/ios/sdk/assets/assets/icons/normal/circles_three_plus_fill.png +0 -0
  15. package/ios/sdk/assets/assets/icons/normal/gear_six_fill.png +0 -0
  16. package/ios/sdk/assets/assets/icons/normal/wallet_fill.png +0 -0
  17. package/ios/splash/ReadySplash.storyboard +18 -1
  18. package/ios/splash/ReadyWalletSplash.json +1 -16369
  19. package/ios/splash/ready_splash_onus_logo.png +0 -0
  20. package/lib/commonjs/ReadyWalletClass.js.map +1 -1
  21. package/lib/module/ReadyWalletClass.js.map +1 -1
  22. package/lib/typescript/src/ReadyWalletClass.d.ts +1 -1
  23. package/lib/typescript/src/ReadyWalletClass.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/src/ReadyWalletClass.ts +2 -1
  26. package/android/src/main/res/drawable/ready_splash_background_gradient.xml +0 -8
@@ -13,18 +13,20 @@ class ReadyWalletSplash: NSObject {
13
13
  let storyboard = UIStoryboard(name: "ReadySplash", bundle: nil)
14
14
  loadingView = (storyboard.instantiateInitialViewController()?.view)!
15
15
 
16
- // Add Backgroung color
17
- let newLayer = CAGradientLayer()
18
- newLayer.colors = [UIColor(red: 70/255.0, green: 213/255.0, blue: 205/255.0, alpha: 1).cgColor, UIColor(red: 17/255.0, green: 101/255.0, blue: 97/255.0, alpha: 1).cgColor ]
19
- newLayer.frame = loadingView!.bounds
20
- loadingView?.layer.addSublayer(newLayer)
21
-
22
16
  animationView = .init(name: "ReadyWalletSplash")
23
- // animationView?.frame = loadingView!.bounds
24
- animationView?.frame = CGRect(x: (loadingView!.bounds.size.width - 219) / 2 , y: (loadingView!.bounds.size.height - 329) / 2 - 50, width: 219, height: 329)
25
- animationView!.contentMode = .scaleToFill
17
+
18
+ animationView!.contentMode = .scaleAspectFit
19
+ // Calculate the scaled size
20
+ let scale = min(loadingView!.bounds.size.width / 720,
21
+ loadingView!.bounds.size.height / 1192)
22
+ let width = 720 * scale
23
+ let height = 1192 * scale
24
+ animationView?.frame = CGRect(x: (loadingView!.bounds.size.width - width) / 2,
25
+ y: loadingView!.bounds.size.height - height,
26
+ width: width,
27
+ height: height)
26
28
  animationView!.loopMode = .playOnce
27
- animationView!.animationSpeed = 1.2
29
+ animationView!.animationSpeed = 0.4
28
30
  loadingView?.addSubview(animationView!)
29
31
  }
30
32
  waiting = false
@@ -1,9 +1,7 @@
1
1
  import Foundation
2
2
  import React
3
3
 
4
-
5
4
  let PUSH_EVENT_NAME: String = "ReadyWallet_FOREGROUND_PUSH_EVENT"
6
-
7
5
  let AS_READY_WALLET: String = "@readyio_ready_wallet";
8
6
 
9
7
  @objc(ReadyWallet)
@@ -40,7 +38,8 @@ class ReadyWallet: RCTEventEmitter {
40
38
 
41
39
  @objc(getItem:withResolve:withRejecter:)
42
40
  func getItem(key: String, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) {
43
- resolve(UserDefaults.standard.string(forKey: key))
41
+ let data = UserDefaults.standard.string(forKey: key)
42
+ resolve(data)
44
43
  }
45
44
 
46
45
 
Binary file
@@ -14,8 +14,22 @@
14
14
  <view key="view" autoresizesSubviews="NO" contentMode="scaleToFill" id="Ze5-6b-2t3">
15
15
  <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
16
16
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17
+ <subviews>
18
+ <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ready_splash_onus_logo.png" translatesAutoresizingMaskIntoConstraints="NO" id="gbv-uJ-LoK">
19
+ <rect key="frame" x="144" y="66" width="87" height="24"/>
20
+ <constraints>
21
+ <constraint firstAttribute="width" constant="87" id="GX9-nG-VUd"/>
22
+ <constraint firstAttribute="height" constant="24" id="ors-iK-q8Q"/>
23
+ </constraints>
24
+ </imageView>
25
+ </subviews>
17
26
  <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
18
- <color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
27
+ <color key="backgroundColor" red="0.0" green="0.40784313725490196" blue="1" alpha="1" colorSpace="calibratedRGB"/>
28
+ <constraints>
29
+ <constraint firstItem="gbv-uJ-LoK" firstAttribute="top" secondItem="Bcu-3y-fUS" secondAttribute="top" constant="46" id="1oS-St-BTY"/>
30
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="trailing" secondItem="gbv-uJ-LoK" secondAttribute="trailing" constant="144" id="2uw-eJ-6eU"/>
31
+ <constraint firstItem="gbv-uJ-LoK" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="144" id="pYB-jQ-0JA"/>
32
+ </constraints>
19
33
  </view>
20
34
  </viewController>
21
35
  <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
@@ -23,4 +37,7 @@
23
37
  <point key="canvasLocation" x="-0.80000000000000004" y="-0.44977511244377816"/>
24
38
  </scene>
25
39
  </scenes>
40
+ <resources>
41
+ <image name="ready_splash_onus_logo.png" width="86.666664123535156" height="24"/>
42
+ </resources>
26
43
  </document>