Skip to content

Commit 87a6fe8

Browse files
authored
Unify component names (#44)
1 parent fc44b4e commit 87a6fe8

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

android/src/main/java/com/expensify/wallet/WalletPackage.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.expensify.wallet
22

3-
import com.expensify.wallet.components.AddToWalletButtonViewManager
3+
import com.expensify.wallet.components.RNAddToWalletButtonManager
44
import com.facebook.react.BaseReactPackage
55
import com.facebook.react.bridge.ReactApplicationContext
66
import com.facebook.react.bridge.NativeModule
@@ -44,5 +44,5 @@ class WalletPackage : BaseReactPackage() {
4444
}
4545

4646
override fun createViewManagers(reactContext: com.facebook.react.bridge.ReactApplicationContext)
47-
: List<ViewManager<*, *>> = listOf(AddToWalletButtonViewManager())
47+
: List<ViewManager<*, *>> = listOf(RNAddToWalletButtonManager())
4848
}

android/src/main/java/com/expensify/wallet/components/RNAddToWalletButtonViewManager.kt renamed to android/src/main/java/com/expensify/wallet/components/RNAddToWalletButtonManager.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import com.facebook.react.uimanager.SimpleViewManager
44
import com.facebook.react.uimanager.ThemedReactContext
55
import com.facebook.react.uimanager.annotations.ReactProp
66

7-
class AddToWalletButtonViewManager : SimpleViewManager<AddToWalletButtonView>() {
7+
class RNAddToWalletButtonManager : SimpleViewManager<RNAddToWalletButtonView>() {
88

99
override fun getName(): String = "RNAddToWalletButton"
1010

11-
override fun createViewInstance(reactContext: ThemedReactContext): AddToWalletButtonView {
12-
return AddToWalletButtonView(reactContext)
11+
override fun createViewInstance(reactContext: ThemedReactContext): RNAddToWalletButtonView {
12+
return RNAddToWalletButtonView(reactContext)
1313
}
1414

1515
@ReactProp(name = "buttonType")
16-
fun setButtonType(view: AddToWalletButtonView, type: String) {
16+
fun setButtonType(view: RNAddToWalletButtonView, type: String) {
1717
view.setButtonType(type)
1818
}
1919
}

android/src/main/java/com/expensify/wallet/components/RNAddToWalletButtonView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.expensify.wallet.R
66
import android.view.LayoutInflater
77
import android.view.View
88

9-
class AddToWalletButtonView(context: Context) : FrameLayout(context) {
9+
class RNAddToWalletButtonView(context: Context) : FrameLayout(context) {
1010

1111
private var buttonView: View? = null
1212
private var buttonType: String = "basic"

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ PODS:
18061806
- ReactCommon/turbomodule/core
18071807
- SocketRocket
18081808
- Yoga
1809-
- react-native-wallet (0.1.8):
1809+
- react-native-wallet (0.1.9):
18101810
- boost
18111811
- DoubleConversion
18121812
- fast_float
@@ -2613,7 +2613,7 @@ SPEC CHECKSUMS:
26132613
React-Mapbuffer: e402e7a0535b2213c50727553621480fe8cd8ade
26142614
React-microtasksnativemodule: a63ce5595016996a9bac1f10c70a7a7fe6506649
26152615
react-native-safe-area-context: c6e2edd1c1da07bdce287fa9d9e60c5f7b514616
2616-
react-native-wallet: 48e8d0417dbe38917c585c1d3665cb09cebd6871
2616+
react-native-wallet: e929bf18d6f4ac35ee263ff4319e9ef107ae2cd9
26172617
React-NativeModulesApple: b3766e1f87b08064ebc459b9e1538da2447ca874
26182618
React-oscompat: 34f3d3c06cadcbc470bc4509c717fb9b919eaa8b
26192619
React-perflogger: a1edb025fd5d44f61bf09307e248f7608d7b2dcf

ios/components/RNAddToWalletButtonManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React
44
@objc(RNAddToWalletButtonManager)
55
class RNAddToWalletButtonManager: RCTViewManager {
66
override func view() -> UIView! {
7-
return AddToWalletButtonView()
7+
return RNAddToWalletButtonView()
88
}
99

1010
override static func requiresMainQueueSetup() -> Bool {

ios/components/RNAddToWalletButtonView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import Foundation
22
import PassKit
33
import UIKit
44

5-
@objc(AddToWalletButtonView)
6-
class AddToWalletButtonView: UIView {
5+
@objc(RNAddToWalletButtonView)
6+
class RNAddToWalletButtonView: UIView {
77
private var addPassButton = PKAddPassButton(addPassButtonStyle: .blackOutline)
88
private let defaultWidth: CGFloat = 120
99
private let defaultHeight: CGFloat = 40

0 commit comments

Comments
 (0)