@expensify/react-native-wallet 0.1.9 → 0.1.10

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.
@@ -1,6 +1,6 @@
1
1
  package com.expensify.wallet
2
2
 
3
- import com.expensify.wallet.components.AddToWalletButtonViewManager
3
+ import com.expensify.wallet.components.RNAddToWalletButtonManager
4
4
  import com.facebook.react.BaseReactPackage
5
5
  import com.facebook.react.bridge.ReactApplicationContext
6
6
  import com.facebook.react.bridge.NativeModule
@@ -44,5 +44,5 @@ class WalletPackage : BaseReactPackage() {
44
44
  }
45
45
 
46
46
  override fun createViewManagers(reactContext: com.facebook.react.bridge.ReactApplicationContext)
47
- : List<ViewManager<*, *>> = listOf(AddToWalletButtonViewManager())
47
+ : List<ViewManager<*, *>> = listOf(RNAddToWalletButtonManager())
48
48
  }
@@ -4,16 +4,16 @@ import com.facebook.react.uimanager.SimpleViewManager
4
4
  import com.facebook.react.uimanager.ThemedReactContext
5
5
  import com.facebook.react.uimanager.annotations.ReactProp
6
6
 
7
- class AddToWalletButtonViewManager : SimpleViewManager<AddToWalletButtonView>() {
7
+ class RNAddToWalletButtonManager : SimpleViewManager<RNAddToWalletButtonView>() {
8
8
 
9
9
  override fun getName(): String = "RNAddToWalletButton"
10
10
 
11
- override fun createViewInstance(reactContext: ThemedReactContext): AddToWalletButtonView {
12
- return AddToWalletButtonView(reactContext)
11
+ override fun createViewInstance(reactContext: ThemedReactContext): RNAddToWalletButtonView {
12
+ return RNAddToWalletButtonView(reactContext)
13
13
  }
14
14
 
15
15
  @ReactProp(name = "buttonType")
16
- fun setButtonType(view: AddToWalletButtonView, type: String) {
16
+ fun setButtonType(view: RNAddToWalletButtonView, type: String) {
17
17
  view.setButtonType(type)
18
18
  }
19
19
  }
@@ -6,7 +6,7 @@ import com.expensify.wallet.R
6
6
  import android.view.LayoutInflater
7
7
  import android.view.View
8
8
 
9
- class AddToWalletButtonView(context: Context) : FrameLayout(context) {
9
+ class RNAddToWalletButtonView(context: Context) : FrameLayout(context) {
10
10
 
11
11
  private var buttonView: View? = null
12
12
  private var buttonType: String = "basic"
@@ -4,7 +4,7 @@ import React
4
4
  @objc(RNAddToWalletButtonManager)
5
5
  class RNAddToWalletButtonManager: RCTViewManager {
6
6
  override func view() -> UIView! {
7
- return AddToWalletButtonView()
7
+ return RNAddToWalletButtonView()
8
8
  }
9
9
 
10
10
  override static func requiresMainQueueSetup() -> Bool {
@@ -2,8 +2,8 @@ import Foundation
2
2
  import PassKit
3
3
  import UIKit
4
4
 
5
- @objc(AddToWalletButtonView)
6
- class AddToWalletButtonView: UIView {
5
+ @objc(RNAddToWalletButtonView)
6
+ class RNAddToWalletButtonView: UIView {
7
7
  private var addPassButton = PKAddPassButton(addPassButtonStyle: .blackOutline)
8
8
  private let defaultWidth: CGFloat = 120
9
9
  private let defaultHeight: CGFloat = 40
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-wallet",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "A React Native module designed for seamless integration of Card Push Provisioning into Apple Wallet and Google Wallet, enabling easy and secure addition of payment cards directly from your application.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "lib/commonjs/index",