@reown/appkit-react-native 0.0.0-feat-multi-social-20250714211631 → 0.0.0-feat-coinbase-20250722173213

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 (186) hide show
  1. package/lib/commonjs/AppKit.js +45 -14
  2. package/lib/commonjs/AppKit.js.map +1 -1
  3. package/lib/commonjs/modal/w3m-account-button/index.js +4 -1
  4. package/lib/commonjs/modal/w3m-account-button/index.js.map +1 -1
  5. package/lib/commonjs/modal/w3m-button/index.js +1 -1
  6. package/lib/commonjs/modal/w3m-button/index.js.map +1 -1
  7. package/lib/commonjs/modal/w3m-modal/index.js +2 -1
  8. package/lib/commonjs/modal/w3m-modal/index.js.map +1 -1
  9. package/lib/commonjs/modal/w3m-network-button/index.js +11 -5
  10. package/lib/commonjs/modal/w3m-network-button/index.js.map +1 -1
  11. package/lib/commonjs/partials/w3m-account-activity/index.js +13 -4
  12. package/lib/commonjs/partials/w3m-account-activity/index.js.map +1 -1
  13. package/lib/commonjs/partials/w3m-account-tokens/index.js +4 -1
  14. package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
  15. package/lib/commonjs/partials/w3m-account-wallet-features/index.js +4 -2
  16. package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
  17. package/lib/commonjs/partials/w3m-header/index.js +3 -1
  18. package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
  19. package/lib/commonjs/partials/w3m-selector-modal/index.js +4 -1
  20. package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
  21. package/lib/commonjs/partials/w3m-send-input-token/index.js +10 -7
  22. package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
  23. package/lib/commonjs/partials/w3m-send-input-token/styles.js +3 -0
  24. package/lib/commonjs/partials/w3m-send-input-token/styles.js.map +1 -1
  25. package/lib/commonjs/utils/NetworkUtil.js +6 -8
  26. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  27. package/lib/commonjs/views/w3m-account-default-view/index.js +42 -15
  28. package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
  29. package/lib/commonjs/views/w3m-account-view/index.js +6 -2
  30. package/lib/commonjs/views/w3m-account-view/index.js.map +1 -1
  31. package/lib/commonjs/views/w3m-connect-view/components/custom-wallet-list.js +3 -1
  32. package/lib/commonjs/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
  33. package/lib/commonjs/views/w3m-connecting-external-view/index.js +4 -3
  34. package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
  35. package/lib/commonjs/views/w3m-connecting-view/index.js +3 -1
  36. package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
  37. package/lib/commonjs/views/w3m-network-switch-view/index.js +5 -1
  38. package/lib/commonjs/views/w3m-network-switch-view/index.js.map +1 -1
  39. package/lib/commonjs/views/w3m-networks-view/index.js +20 -12
  40. package/lib/commonjs/views/w3m-networks-view/index.js.map +1 -1
  41. package/lib/commonjs/views/w3m-onramp-checkout-view/index.js +4 -1
  42. package/lib/commonjs/views/w3m-onramp-checkout-view/index.js.map +1 -1
  43. package/lib/commonjs/views/w3m-onramp-view/index.js +4 -1
  44. package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
  45. package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js +4 -1
  46. package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
  47. package/lib/commonjs/views/w3m-unsupported-chain-view/index.js +4 -1
  48. package/lib/commonjs/views/w3m-unsupported-chain-view/index.js.map +1 -1
  49. package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js +4 -1
  50. package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
  51. package/lib/commonjs/views/w3m-wallet-receive-view/index.js +5 -2
  52. package/lib/commonjs/views/w3m-wallet-receive-view/index.js.map +1 -1
  53. package/lib/commonjs/views/w3m-wallet-send-preview-view/components/preview-send-details.js +5 -12
  54. package/lib/commonjs/views/w3m-wallet-send-preview-view/components/preview-send-details.js.map +1 -1
  55. package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js +0 -2
  56. package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js.map +1 -1
  57. package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js +4 -5
  58. package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
  59. package/lib/commonjs/views/w3m-wallet-send-view/index.js +12 -21
  60. package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
  61. package/lib/module/AppKit.js +46 -15
  62. package/lib/module/AppKit.js.map +1 -1
  63. package/lib/module/modal/w3m-account-button/index.js +5 -2
  64. package/lib/module/modal/w3m-account-button/index.js.map +1 -1
  65. package/lib/module/modal/w3m-button/index.js +2 -2
  66. package/lib/module/modal/w3m-button/index.js.map +1 -1
  67. package/lib/module/modal/w3m-modal/index.js +2 -1
  68. package/lib/module/modal/w3m-modal/index.js.map +1 -1
  69. package/lib/module/modal/w3m-network-button/index.js +12 -6
  70. package/lib/module/modal/w3m-network-button/index.js.map +1 -1
  71. package/lib/module/partials/w3m-account-activity/index.js +14 -5
  72. package/lib/module/partials/w3m-account-activity/index.js.map +1 -1
  73. package/lib/module/partials/w3m-account-tokens/index.js +5 -2
  74. package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
  75. package/lib/module/partials/w3m-account-wallet-features/index.js +4 -2
  76. package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
  77. package/lib/module/partials/w3m-header/index.js +3 -1
  78. package/lib/module/partials/w3m-header/index.js.map +1 -1
  79. package/lib/module/partials/w3m-selector-modal/index.js +5 -2
  80. package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
  81. package/lib/module/partials/w3m-send-input-token/index.js +12 -9
  82. package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
  83. package/lib/module/partials/w3m-send-input-token/styles.js +3 -0
  84. package/lib/module/partials/w3m-send-input-token/styles.js.map +1 -1
  85. package/lib/module/utils/NetworkUtil.js +6 -8
  86. package/lib/module/utils/NetworkUtil.js.map +1 -1
  87. package/lib/module/views/w3m-account-default-view/index.js +42 -16
  88. package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
  89. package/lib/module/views/w3m-account-view/index.js +7 -3
  90. package/lib/module/views/w3m-account-view/index.js.map +1 -1
  91. package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js +4 -2
  92. package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
  93. package/lib/module/views/w3m-connecting-external-view/index.js +4 -3
  94. package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
  95. package/lib/module/views/w3m-connecting-view/index.js +3 -1
  96. package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
  97. package/lib/module/views/w3m-network-switch-view/index.js +6 -2
  98. package/lib/module/views/w3m-network-switch-view/index.js.map +1 -1
  99. package/lib/module/views/w3m-networks-view/index.js +21 -13
  100. package/lib/module/views/w3m-networks-view/index.js.map +1 -1
  101. package/lib/module/views/w3m-onramp-checkout-view/index.js +5 -2
  102. package/lib/module/views/w3m-onramp-checkout-view/index.js.map +1 -1
  103. package/lib/module/views/w3m-onramp-view/index.js +5 -2
  104. package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
  105. package/lib/module/views/w3m-swap-view/components/select-token-view/index.js +5 -2
  106. package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
  107. package/lib/module/views/w3m-unsupported-chain-view/index.js +5 -2
  108. package/lib/module/views/w3m-unsupported-chain-view/index.js.map +1 -1
  109. package/lib/module/views/w3m-wallet-compatible-networks-view/index.js +5 -2
  110. package/lib/module/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
  111. package/lib/module/views/w3m-wallet-receive-view/index.js +6 -3
  112. package/lib/module/views/w3m-wallet-receive-view/index.js.map +1 -1
  113. package/lib/module/views/w3m-wallet-send-preview-view/components/preview-send-details.js +6 -13
  114. package/lib/module/views/w3m-wallet-send-preview-view/components/preview-send-details.js.map +1 -1
  115. package/lib/module/views/w3m-wallet-send-preview-view/index.js +0 -2
  116. package/lib/module/views/w3m-wallet-send-preview-view/index.js.map +1 -1
  117. package/lib/module/views/w3m-wallet-send-select-token-view/index.js +5 -6
  118. package/lib/module/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
  119. package/lib/module/views/w3m-wallet-send-view/index.js +14 -23
  120. package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
  121. package/lib/typescript/AppKit.d.ts +3 -3
  122. package/lib/typescript/AppKit.d.ts.map +1 -1
  123. package/lib/typescript/AppKitContext.d.ts +1 -1
  124. package/lib/typescript/modal/w3m-account-button/index.d.ts.map +1 -1
  125. package/lib/typescript/modal/w3m-modal/index.d.ts.map +1 -1
  126. package/lib/typescript/modal/w3m-network-button/index.d.ts.map +1 -1
  127. package/lib/typescript/partials/w3m-account-activity/index.d.ts.map +1 -1
  128. package/lib/typescript/partials/w3m-account-tokens/index.d.ts.map +1 -1
  129. package/lib/typescript/partials/w3m-account-wallet-features/index.d.ts.map +1 -1
  130. package/lib/typescript/partials/w3m-header/index.d.ts.map +1 -1
  131. package/lib/typescript/partials/w3m-selector-modal/index.d.ts.map +1 -1
  132. package/lib/typescript/partials/w3m-send-input-token/index.d.ts +2 -2
  133. package/lib/typescript/partials/w3m-send-input-token/index.d.ts.map +1 -1
  134. package/lib/typescript/partials/w3m-send-input-token/styles.d.ts +3 -0
  135. package/lib/typescript/partials/w3m-send-input-token/styles.d.ts.map +1 -1
  136. package/lib/typescript/utils/NetworkUtil.d.ts +2 -1
  137. package/lib/typescript/utils/NetworkUtil.d.ts.map +1 -1
  138. package/lib/typescript/views/w3m-account-default-view/index.d.ts.map +1 -1
  139. package/lib/typescript/views/w3m-account-view/index.d.ts.map +1 -1
  140. package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts.map +1 -1
  141. package/lib/typescript/views/w3m-connecting-external-view/index.d.ts.map +1 -1
  142. package/lib/typescript/views/w3m-connecting-view/index.d.ts.map +1 -1
  143. package/lib/typescript/views/w3m-network-switch-view/index.d.ts.map +1 -1
  144. package/lib/typescript/views/w3m-networks-view/index.d.ts.map +1 -1
  145. package/lib/typescript/views/w3m-onramp-checkout-view/index.d.ts.map +1 -1
  146. package/lib/typescript/views/w3m-onramp-view/index.d.ts.map +1 -1
  147. package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +1 -1
  148. package/lib/typescript/views/w3m-unsupported-chain-view/index.d.ts.map +1 -1
  149. package/lib/typescript/views/w3m-wallet-compatible-networks-view/index.d.ts.map +1 -1
  150. package/lib/typescript/views/w3m-wallet-receive-view/index.d.ts.map +1 -1
  151. package/lib/typescript/views/w3m-wallet-send-preview-view/components/preview-send-details.d.ts +1 -1
  152. package/lib/typescript/views/w3m-wallet-send-preview-view/components/preview-send-details.d.ts.map +1 -1
  153. package/lib/typescript/views/w3m-wallet-send-preview-view/index.d.ts.map +1 -1
  154. package/lib/typescript/views/w3m-wallet-send-select-token-view/index.d.ts.map +1 -1
  155. package/lib/typescript/views/w3m-wallet-send-view/index.d.ts.map +1 -1
  156. package/package.json +6 -6
  157. package/src/AppKit.ts +72 -24
  158. package/src/modal/w3m-account-button/index.tsx +4 -3
  159. package/src/modal/w3m-button/index.tsx +2 -2
  160. package/src/modal/w3m-modal/index.tsx +2 -0
  161. package/src/modal/w3m-network-button/index.tsx +10 -6
  162. package/src/partials/w3m-account-activity/index.tsx +16 -5
  163. package/src/partials/w3m-account-tokens/index.tsx +3 -2
  164. package/src/partials/w3m-account-wallet-features/index.tsx +15 -11
  165. package/src/partials/w3m-header/index.tsx +3 -1
  166. package/src/partials/w3m-selector-modal/index.tsx +3 -2
  167. package/src/partials/w3m-send-input-token/index.tsx +17 -19
  168. package/src/partials/w3m-send-input-token/styles.ts +3 -0
  169. package/src/utils/NetworkUtil.ts +13 -10
  170. package/src/views/w3m-account-default-view/index.tsx +44 -17
  171. package/src/views/w3m-account-view/index.tsx +5 -3
  172. package/src/views/w3m-connect-view/components/custom-wallet-list.tsx +5 -2
  173. package/src/views/w3m-connecting-external-view/index.tsx +4 -3
  174. package/src/views/w3m-connecting-view/index.tsx +3 -1
  175. package/src/views/w3m-network-switch-view/index.tsx +4 -2
  176. package/src/views/w3m-networks-view/index.tsx +23 -12
  177. package/src/views/w3m-onramp-checkout-view/index.tsx +3 -2
  178. package/src/views/w3m-onramp-view/index.tsx +4 -3
  179. package/src/views/w3m-swap-view/components/select-token-view/index.tsx +3 -2
  180. package/src/views/w3m-unsupported-chain-view/index.tsx +7 -2
  181. package/src/views/w3m-wallet-compatible-networks-view/index.tsx +7 -2
  182. package/src/views/w3m-wallet-receive-view/index.tsx +4 -3
  183. package/src/views/w3m-wallet-send-preview-view/components/preview-send-details.tsx +4 -11
  184. package/src/views/w3m-wallet-send-preview-view/index.tsx +2 -9
  185. package/src/views/w3m-wallet-send-select-token-view/index.tsx +3 -4
  186. package/src/views/w3m-wallet-send-view/index.tsx +19 -22
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-activity/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAuBhG,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,2CA+J/C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-activity/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAuBhG,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,2CA0K/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-tokens/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAiBtB,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,2CAmExD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-tokens/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAiBtB,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,2CAoExD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-wallet-features/index.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,2CA4HrF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-wallet-features/index.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,2CAgIrF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,mDA6GrB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,mDA+GrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-selector-modal/index.tsx"],"names":[],"mappings":";AAiBA,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE,KAAK,KAAK,CAAC,YAAY,CAAC;IAC5D,YAAY,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,OAAO,EACP,KAAK,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,WAAW,EACZ,EAAE,kBAAkB,2CA8EpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-selector-modal/index.tsx"],"names":[],"mappings":";AAiBA,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE,KAAK,KAAK,CAAC,YAAY,CAAC;IAC5D,YAAY,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,OAAO,EACP,KAAK,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,WAAW,EACZ,EAAE,kBAAkB,2CA+EpB"}
@@ -3,9 +3,9 @@ import { type Balance } from '@reown/appkit-common-react-native';
3
3
  export interface SendInputTokenProps {
4
4
  token?: Balance;
5
5
  sendTokenAmount?: number;
6
- gasPrice?: number;
7
6
  style?: StyleProp<ViewStyle>;
8
7
  onTokenPress?: () => void;
8
+ loading?: boolean;
9
9
  }
10
- export declare function SendInputToken({ token, sendTokenAmount, gasPrice, style, onTokenPress }: SendInputTokenProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function SendInputToken({ token, sendTokenAmount, style, onTokenPress, loading }: SendInputTokenProps): import("react/jsx-runtime").JSX.Element;
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-send-input-token/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAM7E,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,eAAe,EACf,QAAQ,EACR,KAAK,EACL,YAAY,EACb,EAAE,mBAAmB,2CA+FrB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-send-input-token/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AASzE,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAM7E,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,eAAe,EACf,KAAK,EACL,YAAY,EACZ,OAAO,EACR,EAAE,mBAAmB,2CAsFrB"}
@@ -14,6 +14,9 @@ declare const _default: {
14
14
  flex: number;
15
15
  marginRight: number;
16
16
  };
17
+ inputLoading: {
18
+ marginBottom: number;
19
+ };
17
20
  };
18
21
  export default _default;
19
22
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-send-input-token/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,wBAgBG"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-send-input-token/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wBAmBG"}
@@ -1,8 +1,9 @@
1
1
  import type { AppKitNetwork, CaipNetworkId, Network } from '@reown/appkit-common-react-native';
2
+ import type { CaipNamespaces } from '@reown/appkit-core-react-native';
2
3
  export declare const NetworkUtil: {
3
4
  formatNetwork(network: Network, projectId: string): AppKitNetwork;
4
5
  formatNetworks(networks: Network[], projectId: string): AppKitNetwork[];
5
6
  getBlockchainApiRpcUrl(caipNetworkId: CaipNetworkId, projectId: string): string;
6
- getDefaultChainId(network?: AppKitNetwork): CaipNetworkId | undefined;
7
+ getDefaultChainId(namespaces: CaipNamespaces, defaultNetwork?: AppKitNetwork): CaipNetworkId | undefined;
7
8
  };
8
9
  //# sourceMappingURL=NetworkUtil.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/NetworkUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAE/F,eAAO,MAAM,WAAW;2BACC,OAAO,aAAa,MAAM,GAAG,aAAa;6BAqBxC,OAAO,EAAE,aAAa,MAAM,GAAG,aAAa,EAAE;0CAMjC,aAAa,aAAa,MAAM;gCAQ1C,aAAa,GAAG,aAAa,GAAG,SAAS;CAatE,CAAC"}
1
+ {"version":3,"file":"NetworkUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/NetworkUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,eAAO,MAAM,WAAW;2BACC,OAAO,aAAa,MAAM,GAAG,aAAa;6BAqBxC,OAAO,EAAE,aAAa,MAAM,GAAG,aAAa,EAAE;0CAMjC,aAAa,aAAa,MAAM;kCASxD,cAAc,mBACT,aAAa,GAC7B,aAAa,GAAG,SAAS;CAY7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"AAoCA,wBAAgB,kBAAkB,4CA4RjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"AAoCA,wBAAgB,kBAAkB,4CAuTjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,WAAW,4CAkE1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,WAAW,4CAoE1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"custom-wallet-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/custom-wallet-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,iCAAiC,CAAC;AAIzC,UAAU,KAAK;IACb,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,aAAa,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,sBAAsB,EAAE,EAAE,KAAK,oDAqB3F"}
1
+ {"version":3,"file":"custom-wallet-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/custom-wallet-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAEL,KAAK,YAAY,EAMlB,MAAM,iCAAiC,CAAC;AAIzC,UAAU,KAAK;IACb,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,aAAa,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,sBAAsB,EAAE,EAAE,KAAK,oDAuB3F"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-external-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,4CA4GrC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-external-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,4CA6GrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-view/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,cAAc,4CAgI7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-view/index.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,cAAc,4CAiI7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-network-switch-view/index.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,iBAAiB,4CA0GhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-network-switch-view/index.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,iBAAiB,4CA4GhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-networks-view/index.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,YAAY,4CAmF3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-networks-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,YAAY,4CA4F3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-checkout-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,kBAAkB,4CA0LjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-checkout-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,kBAAkB,4CA2LjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-view/index.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,UAAU,4CA+PzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-view/index.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,UAAU,4CAgQzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-view/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAKL,KAAK,eAAe,EAErB,MAAM,iCAAiC,CAAC;AAOzC,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,2CAkI3D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-view/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAKL,KAAK,eAAe,EAErB,MAAM,iCAAiC,CAAC;AAOzC,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,2CAmI3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-unsupported-chain-view/index.tsx"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,4CAiEnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-unsupported-chain-view/index.tsx"],"names":[],"mappings":"AAaA,wBAAgB,oBAAoB,4CAkEnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-compatible-networks-view/index.tsx"],"names":[],"mappings":"AAOA,wBAAgB,wBAAwB,4CAsCvC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-compatible-networks-view/index.tsx"],"names":[],"mappings":"AAWA,wBAAgB,wBAAwB,4CAuCvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-receive-view/index.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,iBAAiB,wDAmEhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-receive-view/index.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,iBAAiB,wDAoEhC"}
@@ -7,5 +7,5 @@ export interface PreviewSendDetailsProps {
7
7
  networkFee?: number;
8
8
  style?: StyleProp<ViewStyle>;
9
9
  }
10
- export declare function PreviewSendDetails({ address, name, activeNetwork, networkFee, style }: PreviewSendDetailsProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function PreviewSendDetails({ address, name, activeNetwork, style }: PreviewSendDetailsProps): import("react/jsx-runtime").JSX.Element;
11
11
  //# sourceMappingURL=preview-send-details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"preview-send-details.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-wallet-send-preview-view/components/preview-send-details.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAUvE,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,IAAI,EACJ,aAAa,EACb,UAAU,EACV,KAAK,EACN,EAAE,uBAAuB,2CAmDzB"}
1
+ {"version":3,"file":"preview-send-details.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-wallet-send-preview-view/components/preview-send-details.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAUvE,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1E,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,IAAI,EACJ,aAAa,EACb,KAAK,EACN,EAAE,uBAAuB,2CA4CzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-preview-view/index.tsx"],"names":[],"mappings":"AAcA,wBAAgB,qBAAqB,4CAuHpC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-preview-view/index.tsx"],"names":[],"mappings":"AAcA,wBAAgB,qBAAqB,4CAgHpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-select-token-view/index.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,yBAAyB,4CAgExC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-select-token-view/index.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,yBAAyB,4CA+DxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/index.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,cAAc,4CA+G7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/index.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,cAAc,4CA6G7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-react-native",
3
- "version": "0.0.0-feat-multi-social-20250714211631",
3
+ "version": "0.0.0-feat-coinbase-20250722173213",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "types": "lib/typescript/index.d.ts",
6
6
  "module": "lib/module/index.js",
@@ -37,11 +37,11 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@reown/appkit-common-react-native": "0.0.0-feat-multi-social-20250714211631",
41
- "@reown/appkit-core-react-native": "0.0.0-feat-multi-social-20250714211631",
42
- "@reown/appkit-siwe-react-native": "0.0.0-feat-multi-social-20250714211631",
43
- "@reown/appkit-ui-react-native": "0.0.0-feat-multi-social-20250714211631",
44
- "@walletconnect/universal-provider": "2.20.2",
40
+ "@reown/appkit-common-react-native": "0.0.0-feat-coinbase-20250722173213",
41
+ "@reown/appkit-core-react-native": "0.0.0-feat-coinbase-20250722173213",
42
+ "@reown/appkit-siwe-react-native": "0.0.0-feat-coinbase-20250722173213",
43
+ "@reown/appkit-ui-react-native": "0.0.0-feat-coinbase-20250722173213",
44
+ "@walletconnect/universal-provider": "2.21.5",
45
45
  "valtio": "^1.13.2"
46
46
  },
47
47
  "peerDependencies": {
package/src/AppKit.ts CHANGED
@@ -12,14 +12,16 @@ import {
12
12
  ThemeController,
13
13
  ConnectionController,
14
14
  SwapController,
15
- OnRampController
15
+ OnRampController,
16
+ CoreHelperUtil,
17
+ SendController
16
18
  } from '@reown/appkit-core-react-native';
17
19
 
18
20
  import {
19
21
  type WalletConnector,
20
22
  type BlockchainAdapter,
21
23
  type ProposalNamespaces,
22
- type New_ConnectorType,
24
+ type ConnectorType,
23
25
  type Namespaces,
24
26
  type Metadata,
25
27
  type CaipNetworkId,
@@ -71,7 +73,6 @@ export class AppKit {
71
73
  private projectId: string;
72
74
  private adapters: BlockchainAdapter[];
73
75
  private networks: AppKitNetwork[];
74
- private defaultNetwork?: AppKitNetwork;
75
76
  private namespaces: ProposalNamespaces;
76
77
  private config: AppKitConfig;
77
78
  private extraConnectors: WalletConnector[];
@@ -79,7 +80,7 @@ export class AppKit {
79
80
 
80
81
  constructor(config: AppKitConfig) {
81
82
  this.projectId = config.projectId;
82
- this.adapters = config.adapters;
83
+ this.adapters = config.adapters ?? [];
83
84
 
84
85
  // Validate adapters to ensure no duplicate chainNamespaces
85
86
  const namespaceMap = new Map<ChainNamespace, string>();
@@ -97,9 +98,6 @@ export class AppKit {
97
98
  }
98
99
 
99
100
  this.networks = NetworkUtil.formatNetworks(config.networks, this.projectId); //TODO: check this
100
- this.defaultNetwork = config.defaultNetwork
101
- ? NetworkUtil.formatNetwork(config.defaultNetwork, this.projectId)
102
- : undefined;
103
101
  this.namespaces = WcHelpersUtil.createNamespaces(this.networks) as ProposalNamespaces;
104
102
  this.config = config;
105
103
  this.extraConnectors = config.extraConnectors || [];
@@ -113,14 +111,18 @@ export class AppKit {
113
111
  * @param type - The type of connector to use.
114
112
  * @param options - Optional connection options.
115
113
  */
116
- async connect(type: New_ConnectorType, options?: AppKitConnectOptions): Promise<void> {
114
+ async connect(type: ConnectorType, options?: AppKitConnectOptions): Promise<void> {
117
115
  try {
118
116
  const { namespaces, defaultChain, universalLink } = options ?? {};
119
117
  const connector = await this.createConnector(type);
120
118
 
119
+ const chain =
120
+ defaultChain ??
121
+ NetworkUtil.getDefaultChainId(this.namespaces, OptionsController.state.defaultNetwork);
122
+
121
123
  const approvedNamespaces = await connector.connect({
122
124
  namespaces: namespaces ?? this.namespaces,
123
- defaultChain,
125
+ defaultChain: chain,
124
126
  universalLink,
125
127
  siweConfig: this.config?.siweConfig
126
128
  });
@@ -202,9 +204,16 @@ export class AppKit {
202
204
  RouterController.reset('Connect');
203
205
  TransactionsController.resetState();
204
206
  SwapController.resetState();
207
+ SendController.resetState();
205
208
  OnRampController.resetState();
206
209
  ConnectionController.disconnect();
207
210
 
211
+ if (ConnectionsController.state.activeNamespace === undefined) {
212
+ ConnectionsController.setActiveNamespace(
213
+ OptionsController.state.defaultNetwork?.chainNamespace
214
+ );
215
+ }
216
+
208
217
  if (OptionsController.state.isSiweEnabled) {
209
218
  await SIWEController.signOut();
210
219
  }
@@ -243,6 +252,14 @@ export class AppKit {
243
252
  }
244
253
 
245
254
  async switchNetwork(network: AppKitNetwork): Promise<void> {
255
+ const { isConnected } = ConnectionsController.state;
256
+
257
+ if (!isConnected) {
258
+ OptionsController.setDefaultNetwork(network);
259
+
260
+ return Promise.resolve();
261
+ }
262
+
246
263
  const adapter = this.getAdapterByNamespace(network.chainNamespace);
247
264
  if (!adapter) throw new Error('No active adapter');
248
265
 
@@ -256,10 +273,7 @@ export class AppKit {
256
273
  }
257
274
  });
258
275
 
259
- ConnectionsController.setActiveNetwork(
260
- adapter.getSupportedNamespace(),
261
- `${adapter.getSupportedNamespace()}:${network.id}` as CaipNetworkId
262
- );
276
+ ConnectionsController.setActiveNetwork(network.chainNamespace, network.caipNetworkId);
263
277
 
264
278
  if (ConnectionsController.state.activeNamespace !== network.chainNamespace) {
265
279
  ConnectionsController.setActiveNamespace(network.chainNamespace);
@@ -296,7 +310,7 @@ export class AppKit {
296
310
  });
297
311
  }
298
312
 
299
- private async createConnector(type: New_ConnectorType): Promise<WalletConnector> {
313
+ private async createConnector(type: ConnectorType): Promise<WalletConnector> {
300
314
  // Check if an extra connector was provided by the developer
301
315
  const CustomConnector = this.extraConnectors.find(
302
316
  connector => connector.type.toLowerCase() === type.toLowerCase()
@@ -365,6 +379,13 @@ export class AppKit {
365
379
  this.syncAccounts(initializedAdapters);
366
380
 
367
381
  AccountController.setIsConnected(true);
382
+
383
+ if (
384
+ OptionsController.state.isSiweEnabled &&
385
+ ConnectionsController.state.activeNamespace === 'eip155'
386
+ ) {
387
+ this.handleSiweChange();
388
+ }
368
389
  }
369
390
  } catch (error) {
370
391
  // Use console.warn for non-critical initialization failures
@@ -464,8 +485,8 @@ export class AppKit {
464
485
  });
465
486
  });
466
487
 
467
- const updateActiveNamespace = !Object.keys(approvedNamespaces).find(
468
- n => n === ConnectionsController.state.activeNamespace
488
+ const updateActiveNamespace = !Object.keys(approvedNamespaces).some(
489
+ namespace => namespace === ConnectionsController.state.activeNamespace
469
490
  );
470
491
 
471
492
  // If the active namespace is not in the approved namespaces or is undefined, set the first connected adapter's namespace as active
@@ -492,12 +513,15 @@ export class AppKit {
492
513
  const namespace = adapter.getSupportedNamespace();
493
514
  const chain = `${namespace}:${chainId}` as CaipNetworkId;
494
515
  ConnectionsController.setActiveNetwork(namespace, chain);
516
+ const connection = ConnectionsController.state.connections.get(namespace);
517
+ const isAuth = !!connection?.properties?.provider;
495
518
 
496
519
  const network = this.networks.find(n => n.id?.toString() === chainId);
497
520
  this.syncBalances(adapter, network);
521
+ SendController.resetState();
498
522
 
499
- if (OptionsController.state.features?.swaps) {
500
- SwapController.fetchTokens();
523
+ if (isAuth) {
524
+ ConnectionsController.fetchBalance();
501
525
  }
502
526
 
503
527
  if (namespace === 'eip155') {
@@ -526,20 +550,25 @@ export class AppKit {
526
550
  OptionsController.setMetadata(options.metadata);
527
551
  OptionsController.setIncludeWalletIds(options.includeWalletIds);
528
552
  this.setExcludedWallets(options);
553
+ this.setCustomWallets(options);
529
554
  OptionsController.setFeaturedWalletIds(options.featuredWalletIds);
530
555
  OptionsController.setTokens(options.tokens);
531
- OptionsController.setCustomWallets(options.customWallets);
532
556
  OptionsController.setEnableAnalytics(options.enableAnalytics);
533
557
  OptionsController.setDebug(options.debug);
534
558
  OptionsController.setFeatures(options.features);
535
559
  OptionsController.setStorage(options.storage);
536
560
 
561
+ if (options.defaultNetwork) {
562
+ const network = NetworkUtil.formatNetwork(options.defaultNetwork, this.projectId);
563
+ OptionsController.setDefaultNetwork(network);
564
+ }
565
+
537
566
  ThemeController.setThemeMode(options.themeMode);
538
567
  ThemeController.setThemeVariables(options.themeVariables);
539
568
 
540
- //TODO: function to get sdk version based on adapters
541
- // @ts-ignore
542
- OptionsController.setSdkVersion('appkit-react-native-multichain');
569
+ OptionsController.setSdkVersion(
570
+ CoreHelperUtil.generateSdkVersion(this.adapters, ConstantsUtil.VERSION)
571
+ );
543
572
 
544
573
  if (options.clipboardClient) {
545
574
  OptionsController.setClipboardClient(options.clipboardClient);
@@ -563,8 +592,10 @@ export class AppKit {
563
592
  const activeNamespace = await StorageUtil.getActiveNamespace();
564
593
  if (activeNamespace) {
565
594
  ConnectionsController.setActiveNamespace(activeNamespace);
566
- } else if (this.defaultNetwork) {
567
- ConnectionsController.setActiveNamespace(this.defaultNetwork?.chainNamespace);
595
+ } else if (OptionsController.state.defaultNetwork) {
596
+ ConnectionsController.setActiveNamespace(
597
+ OptionsController.state.defaultNetwork?.chainNamespace
598
+ );
568
599
  }
569
600
  }
570
601
 
@@ -605,6 +636,23 @@ export class AppKit {
605
636
  OptionsController.setExcludeWalletIds(excludedWallets);
606
637
  }
607
638
 
639
+ private setCustomWallets(options: AppKitConfig) {
640
+ const { customWallets, extraConnectors, adapters } = options;
641
+
642
+ const customList = [...(customWallets ?? [])];
643
+
644
+ const addPhantom =
645
+ adapters.some(adapter => adapter.getSupportedNamespace() === 'solana') &&
646
+ extraConnectors?.some(connector => connector.type.toLowerCase() === 'phantom') &&
647
+ !customList.some(wallet => wallet.id === ConstantsUtil.PHANTOM_CUSTOM_WALLET.id);
648
+
649
+ if (addPhantom) {
650
+ customList.push(ConstantsUtil.PHANTOM_CUSTOM_WALLET);
651
+ }
652
+
653
+ OptionsController.setCustomWallets(customList);
654
+ }
655
+
608
656
  private async initAsyncValues(options: AppKitConfig) {
609
657
  await this.initActiveNamespace();
610
658
  await this.initRecentWallets(options);
@@ -3,9 +3,9 @@ import {
3
3
  AccountController,
4
4
  CoreHelperUtil,
5
5
  ModalController,
6
- AssetUtil,
7
6
  ThemeController,
8
- ConnectionsController
7
+ ConnectionsController,
8
+ AssetController
9
9
  } from '@reown/appkit-core-react-native';
10
10
 
11
11
  import { AccountButton as AccountButtonUI, ThemeProvider } from '@reown/appkit-ui-react-native';
@@ -22,13 +22,14 @@ export interface AccountButtonProps {
22
22
  export function AccountButton({ balance, disabled, style, testID }: AccountButtonProps) {
23
23
  const { profileImage, profileName } = useSnapshot(AccountController.state);
24
24
  const { themeMode, themeVariables } = useSnapshot(ThemeController.state);
25
+ const { networkImages } = useSnapshot(AssetController.state);
25
26
  const {
26
27
  activeAddress: address,
27
28
  activeBalance,
28
29
  activeNetwork
29
30
  } = useSnapshot(ConnectionsController.state);
30
31
 
31
- const networkImage = AssetUtil.getNetworkImage(activeNetwork?.id);
32
+ const networkImage = activeNetwork ? networkImages[activeNetwork.id] : undefined;
32
33
  const showBalance = balance === 'show';
33
34
 
34
35
  return (
@@ -1,7 +1,7 @@
1
1
  import { useSnapshot } from 'valtio';
2
2
  import { AccountButton, type AccountButtonProps } from '../w3m-account-button';
3
3
  import { ConnectButton, type ConnectButtonProps } from '../w3m-connect-button';
4
- import { AccountController, ModalController } from '@reown/appkit-core-react-native';
4
+ import { ConnectionsController, ModalController } from '@reown/appkit-core-react-native';
5
5
 
6
6
  export interface AppKitButtonProps {
7
7
  balance?: AccountButtonProps['balance'];
@@ -22,7 +22,7 @@ export function AppKitButton({
22
22
  accountStyle,
23
23
  connectStyle
24
24
  }: AppKitButtonProps) {
25
- const { isConnected } = useSnapshot(AccountController.state);
25
+ const { isConnected } = useSnapshot(ConnectionsController.state);
26
26
  const { loading } = useSnapshot(ModalController.state);
27
27
 
28
28
  return !loading && isConnected ? (
@@ -46,7 +46,9 @@ export function AppKit() {
46
46
 
47
47
  const handleClose = async () => {
48
48
  if (OptionsController.state.isSiweEnabled) {
49
+ const session = await SIWEController.getSession();
49
50
  if (
51
+ !session &&
50
52
  SIWEController.state.status !== 'success' &&
51
53
  ConnectionsController.state.activeNamespace === 'eip155' &&
52
54
  !!ConnectionsController.state.activeAddress
@@ -1,12 +1,12 @@
1
1
  import { useSnapshot } from 'valtio';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
  import {
4
- AccountController,
5
4
  ApiController,
6
- AssetUtil,
5
+ AssetController,
7
6
  ConnectionsController,
8
7
  EventsController,
9
8
  ModalController,
9
+ OptionsController,
10
10
  ThemeController
11
11
  } from '@reown/appkit-core-react-native';
12
12
  import { NetworkButton as NetworkButtonUI, ThemeProvider } from '@reown/appkit-ui-react-native';
@@ -17,11 +17,15 @@ export interface NetworkButtonProps {
17
17
  }
18
18
 
19
19
  export function NetworkButton({ disabled, style }: NetworkButtonProps) {
20
- const { isConnected } = useSnapshot(AccountController.state);
21
- const { activeNetwork } = useSnapshot(ConnectionsController.state);
20
+ const { activeNetwork, isConnected } = useSnapshot(ConnectionsController.state);
21
+ const { networkImages } = useSnapshot(AssetController.state);
22
+ const { defaultNetwork } = useSnapshot(OptionsController.state);
22
23
  const { loading } = useSnapshot(ModalController.state);
23
24
  const { themeMode, themeVariables } = useSnapshot(ThemeController.state);
24
25
 
26
+ const network = isConnected ? activeNetwork : defaultNetwork;
27
+ const networkImage = network ? networkImages[network.id] : undefined;
28
+
25
29
  const onNetworkPress = () => {
26
30
  ModalController.open({ view: 'Networks' });
27
31
  EventsController.sendEvent({
@@ -33,7 +37,7 @@ export function NetworkButton({ disabled, style }: NetworkButtonProps) {
33
37
  return (
34
38
  <ThemeProvider themeMode={themeMode} themeVariables={themeVariables}>
35
39
  <NetworkButtonUI
36
- imageSrc={AssetUtil.getNetworkImage(activeNetwork?.id)}
40
+ imageSrc={networkImage}
37
41
  imageHeaders={ApiController._getApiHeaders()}
38
42
  disabled={disabled || loading}
39
43
  style={style}
@@ -41,7 +45,7 @@ export function NetworkButton({ disabled, style }: NetworkButtonProps) {
41
45
  loading={loading}
42
46
  testID="network-button"
43
47
  >
44
- {activeNetwork?.name ?? (isConnected ? 'Unknown Network' : 'Select Network')}
48
+ {network?.name ?? (isConnected ? 'Unknown Network' : 'Select Network')}
45
49
  </NetworkButtonUI>
46
50
  </ThemeProvider>
47
51
  );
@@ -12,7 +12,7 @@ import {
12
12
  } from '@reown/appkit-ui-react-native';
13
13
  import { type Transaction, type TransactionImage } from '@reown/appkit-common-react-native';
14
14
  import {
15
- AssetUtil,
15
+ AssetController,
16
16
  ConnectionsController,
17
17
  ConstantsUtil,
18
18
  EventsController,
@@ -33,13 +33,19 @@ export function AccountActivity({ style }: Props) {
33
33
  const [initialLoad, setInitialLoad] = useState(true);
34
34
  const { loading, transactions, next } = useSnapshot(TransactionsController.state);
35
35
  const { activeNetwork } = useSnapshot(ConnectionsController.state);
36
- const networkImage = AssetUtil.getNetworkImage(activeNetwork?.id);
36
+ const { networkImages } = useSnapshot(AssetController.state);
37
+ const networkImage = activeNetwork ? networkImages[activeNetwork.id] : undefined;
37
38
  const isSupported =
38
39
  activeNetwork?.caipNetworkId &&
39
40
  ConstantsUtil.ACTIVITY_SUPPORTED_CHAINS.includes(activeNetwork.caipNetworkId);
40
41
 
41
42
  const handleLoadMore = () => {
42
43
  const address = ConnectionsController.state.activeAddress;
44
+
45
+ if (!address) {
46
+ return;
47
+ }
48
+
43
49
  TransactionsController.fetchTransactions(address);
44
50
  EventsController.sendEvent({
45
51
  type: 'track',
@@ -54,8 +60,13 @@ export function AccountActivity({ style }: Props) {
54
60
  };
55
61
 
56
62
  const onRefresh = useCallback(async () => {
57
- setRefreshing(true);
58
63
  const address = ConnectionsController.state.activeAddress;
64
+
65
+ if (!address) {
66
+ return;
67
+ }
68
+
69
+ setRefreshing(true);
59
70
  await TransactionsController.fetchTransactions(address, true);
60
71
  setRefreshing(false);
61
72
  }, []);
@@ -65,8 +76,8 @@ export function AccountActivity({ style }: Props) {
65
76
  }, [transactions]);
66
77
 
67
78
  useEffect(() => {
68
- if (!TransactionsController.state.transactions.length) {
69
- const address = ConnectionsController.state.activeAddress;
79
+ const address = ConnectionsController.state.activeAddress;
80
+ if (!TransactionsController.state.transactions.length && address) {
70
81
  TransactionsController.fetchTransactions(address, true);
71
82
  }
72
83
  // Set initial load to false after first fetch
@@ -8,7 +8,7 @@ import {
8
8
  } from 'react-native';
9
9
  import { useSnapshot } from 'valtio';
10
10
  import {
11
- AssetUtil,
11
+ AssetController,
12
12
  ConnectionsController,
13
13
  RouterController
14
14
  } from '@reown/appkit-core-react-native';
@@ -31,7 +31,8 @@ export function AccountTokens({ style, isLoading }: Props) {
31
31
  const Theme = useTheme();
32
32
  const [refreshing, setRefreshing] = useState(false);
33
33
  const { activeNetwork, balances } = useSnapshot(ConnectionsController.state);
34
- const networkImage = AssetUtil.getNetworkImage(activeNetwork?.id);
34
+ const { networkImages } = useSnapshot(AssetController.state);
35
+ const networkImage = activeNetwork ? networkImages[activeNetwork.id] : undefined;
35
36
 
36
37
  const getBalance = useCallback(async () => {
37
38
  setRefreshing(true);