Skip to content

Commit 7220b43

Browse files
authored
🔄 synced file(s) with circlefin/programmable-wallet-sdk-rn (#21)
synced local file(s) with [circlefin/programmable-wallet-sdk-rn](https://github.com/circlefin/programmable-wallet-sdk-rn). <details> <summary>Changed files</summary> <ul> <li>synced local directory <code>android/</code> with remote directory <code>android/</code></li><li>synced local directory <code>ios/</code> with remote directory <code>ios/</code></li><li>synced local <code>package.json</code> with remote <code>package.json</code></li> </ul> </details> --- This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#16321382634](https://github.com/circlefin/programmable-wallet-sdk-rn/actions/runs/16321382634)
2 parents f261586 + 56646b7 commit 7220b43

File tree

3 files changed

+35
-27
lines changed

3 files changed

+35
-27
lines changed

android/src/main/java/com/circlefin/programmablewalletrnsdk/BridgeHelper.kt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -377,15 +377,17 @@ object BridgeHelper {
377377
val array = arrayOfNulls<SecurityQuestion>(rnArray.size())
378378
for (i in 0 until rnArray.size()) {
379379
val readableMap = rnArray.getMap(i)
380-
val inputType = safeGetString(readableMap, "inputType")
381-
val title = safeGetString(readableMap, "title") ?: ""
382-
if (SecurityQuestion.InputType.datePicker.name != inputType) {
383-
array[i] = SecurityQuestion(title)
384-
} else {
385-
array[i] = SecurityQuestion(
386-
title,
387-
SecurityQuestion.InputType.datePicker
388-
)
380+
if (readableMap != null) {
381+
val inputType = safeGetString(readableMap, "inputType")
382+
val title = safeGetString(readableMap, "title") ?: ""
383+
if (SecurityQuestion.InputType.datePicker.name != inputType) {
384+
array[i] = SecurityQuestion(title)
385+
} else {
386+
array[i] = SecurityQuestion(
387+
title,
388+
SecurityQuestion.InputType.datePicker
389+
)
390+
}
389391
}
390392
}
391393
if (BuildConfig.DEBUG) {

ios/BridgeHelper.swift

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,21 @@ class BridgeHelper: NSObject {
4242

4343
static func getImageKey(rnKey: String) -> ImageStore.Img? {
4444
switch rnKey {
45-
case "back": return .naviBack
4645
case "close": return .naviClose
47-
case "securityIntroMain": return .securityIntroMain
48-
case "selectCheckMark": return .selectCheckMark
46+
case "back": return .naviBack
4947
case "dropdownArrow": return .dropdownArrow
48+
case "selectCheckMark": return .selectCheckMark
5049
case "errorInfo": return .errorInfo
50+
case "securityIntroMain": return .securityIntroMain
5151
case "securityConfirmMain": return .securityConfirmMain
52+
case "biometricsAllowMain": return .biometricsAllowMain
5253
case "showPin": return .showPin
5354
case "hidePin": return .hidePin
55+
case "transactionTokenIcon": return .transactionTokenIcon
56+
case "networkFeeTipIcon": return .networkFeeTipIcon
57+
case "showLessDetailArrow": return .showLessDetailArrow
58+
case "showMoreDetailArrow": return .showMoreDetailArrow
59+
case "requestIcon": return .requestIcon
5460
default: return nil
5561
}
5662
}

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@circle-fin/w3s-pw-react-native-sdk",
3-
"version": "1.1.2",
3+
"version": "1.1.5",
44
"description": "React Native SDK for Circle Programmable Wallet",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
@@ -60,32 +60,32 @@
6060
"devDependencies": {
6161
"@commitlint/config-conventional": "^17.0.2",
6262
"@evilmartians/lefthook": "^1.5.0",
63-
"@react-native/eslint-config": "^0.72.2",
63+
"@react-native-community/cli": "^18.0.0",
64+
"@react-native/eslint-config": "0.79.3",
6465
"@release-it/conventional-changelog": "^8.0.1",
65-
"@types/jest": "^28.1.2",
66-
"@types/react": "~17.0.21",
67-
"@types/react-native": "0.70.0",
68-
"@typescript-eslint/eslint-plugin": "latest",
69-
"@typescript-eslint/parser": "latest",
66+
"@types/jest": "^29.5.13",
67+
"@types/react": "^19.0.0",
68+
"@typescript-eslint/eslint-plugin": "^5.30.5",
69+
"@typescript-eslint/parser": "^5.30.5",
7070
"commitlint": "^17.0.2",
7171
"del-cli": "^5.0.0",
72-
"eslint": "^8.4.1",
72+
"eslint": "^8.19.0",
7373
"eslint-config-prettier": "^8.5.0",
7474
"eslint-plugin-prettier": "^4.0.0",
75-
"eslint-plugin-react": "latest",
76-
"jest": "^28.1.1",
75+
"eslint-plugin-react": "^7.30.1",
76+
"jest": "^29.6.3",
7777
"pod-install": "^0.1.0",
78-
"prettier": "^2.0.5",
79-
"react": "18.2.0",
80-
"react-native": "0.72.7",
78+
"prettier": "2.8.8",
79+
"react": "19.0.0",
80+
"react-native": "0.79.3",
8181
"react-native-builder-bob": "^0.20.0",
8282
"release-it": "^17.1.1",
8383
"turbo": "^1.10.7",
8484
"typedoc": "^0.25.4",
85-
"typescript": "^5.0.2"
85+
"typescript": "^5.0.4"
8686
},
8787
"resolutions": {
88-
"@types/react": "17.0.21"
88+
"@types/react": "^18.2.0"
8989
},
9090
"peerDependencies": {
9191
"react": "*",

0 commit comments

Comments
 (0)