@reown/appkit-react-native 0.0.0-feat-multichain-20250801190527 → 0.0.0-feat-multichain-20250805142032

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 (264) hide show
  1. package/lib/commonjs/AppKit.js.map +1 -1
  2. package/lib/commonjs/connectors/WalletConnectConnector.js +13 -1
  3. package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
  4. package/lib/commonjs/hooks/useAppKitEvents.js.map +1 -1
  5. package/lib/commonjs/hooks/useProvider.js +29 -10
  6. package/lib/commonjs/hooks/useProvider.js.map +1 -1
  7. package/lib/commonjs/index.js.map +1 -1
  8. package/lib/commonjs/partials/w3m-account-activity/index.js +5 -5
  9. package/lib/commonjs/partials/w3m-account-activity/index.js.map +1 -1
  10. package/lib/commonjs/partials/w3m-account-tokens/index.js +4 -4
  11. package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
  12. package/lib/commonjs/partials/w3m-account-wallet-features/index.js +5 -5
  13. package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
  14. package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
  15. package/lib/commonjs/partials/w3m-connecting-body/index.js +2 -2
  16. package/lib/commonjs/partials/w3m-connecting-body/index.js.map +1 -1
  17. package/lib/commonjs/partials/w3m-connecting-mobile/index.js +6 -6
  18. package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
  19. package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +23 -3
  20. package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
  21. package/lib/commonjs/partials/w3m-connecting-web/index.js +4 -4
  22. package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
  23. package/lib/commonjs/partials/w3m-placeholder/index.js +5 -5
  24. package/lib/commonjs/partials/w3m-placeholder/index.js.map +1 -1
  25. package/lib/commonjs/partials/w3m-selector-modal/index.js +2 -2
  26. package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
  27. package/lib/commonjs/partials/w3m-send-input-token/index.js +2 -2
  28. package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
  29. package/lib/commonjs/partials/w3m-swap-input/index.js +2 -2
  30. package/lib/commonjs/partials/w3m-swap-input/index.js.map +1 -1
  31. package/lib/commonjs/types.js +6 -0
  32. package/lib/commonjs/types.js.map +1 -0
  33. package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js +2 -2
  34. package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
  35. package/lib/commonjs/views/w3m-account-default-view/index.js +15 -15
  36. package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
  37. package/lib/commonjs/views/w3m-all-wallets-view/index.js +1 -1
  38. package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
  39. package/lib/commonjs/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
  40. package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js +4 -4
  41. package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js.map +1 -1
  42. package/lib/commonjs/views/w3m-connect-view/index.js +7 -7
  43. package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
  44. package/lib/commonjs/views/w3m-connecting-external-view/index.js +2 -2
  45. package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
  46. package/lib/commonjs/views/w3m-connecting-social-view/index.js +2 -2
  47. package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
  48. package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
  49. package/lib/commonjs/views/w3m-get-wallet-view/index.js.map +1 -1
  50. package/lib/commonjs/views/w3m-network-switch-view/index.js +2 -2
  51. package/lib/commonjs/views/w3m-network-switch-view/index.js.map +1 -1
  52. package/lib/commonjs/views/w3m-onramp-checkout-view/index.js +15 -15
  53. package/lib/commonjs/views/w3m-onramp-checkout-view/index.js.map +1 -1
  54. package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js +4 -4
  55. package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
  56. package/lib/commonjs/views/w3m-onramp-settings-view/index.js +4 -4
  57. package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
  58. package/lib/commonjs/views/w3m-onramp-settings-view/utils.js.map +1 -1
  59. package/lib/commonjs/views/w3m-onramp-transaction-view/index.js +5 -5
  60. package/lib/commonjs/views/w3m-onramp-transaction-view/index.js.map +1 -1
  61. package/lib/commonjs/views/w3m-onramp-view/components/Currency.js +2 -2
  62. package/lib/commonjs/views/w3m-onramp-view/components/Currency.js.map +1 -1
  63. package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js +2 -2
  64. package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
  65. package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js +4 -4
  66. package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js.map +1 -1
  67. package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js +2 -2
  68. package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
  69. package/lib/commonjs/views/w3m-onramp-view/components/Quote.js +4 -4
  70. package/lib/commonjs/views/w3m-onramp-view/components/Quote.js.map +1 -1
  71. package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
  72. package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
  73. package/lib/commonjs/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -1
  74. package/lib/commonjs/views/w3m-swap-view/index.js +3 -3
  75. package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
  76. package/lib/module/AppKit.js.map +1 -1
  77. package/lib/module/connectors/WalletConnectConnector.js +13 -1
  78. package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
  79. package/lib/module/hooks/useAppKitEvents.js.map +1 -1
  80. package/lib/module/hooks/useProvider.js +30 -10
  81. package/lib/module/hooks/useProvider.js.map +1 -1
  82. package/lib/module/index.js.map +1 -1
  83. package/lib/module/partials/w3m-account-activity/index.js +5 -5
  84. package/lib/module/partials/w3m-account-activity/index.js.map +1 -1
  85. package/lib/module/partials/w3m-account-tokens/index.js +4 -4
  86. package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
  87. package/lib/module/partials/w3m-account-wallet-features/index.js +5 -5
  88. package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
  89. package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
  90. package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
  91. package/lib/module/partials/w3m-connecting-body/index.js +2 -2
  92. package/lib/module/partials/w3m-connecting-body/index.js.map +1 -1
  93. package/lib/module/partials/w3m-connecting-mobile/index.js +6 -6
  94. package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
  95. package/lib/module/partials/w3m-connecting-qrcode/index.js +24 -4
  96. package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
  97. package/lib/module/partials/w3m-connecting-web/index.js +4 -4
  98. package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
  99. package/lib/module/partials/w3m-placeholder/index.js +5 -5
  100. package/lib/module/partials/w3m-placeholder/index.js.map +1 -1
  101. package/lib/module/partials/w3m-selector-modal/index.js +2 -2
  102. package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
  103. package/lib/module/partials/w3m-send-input-token/index.js +2 -2
  104. package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
  105. package/lib/module/partials/w3m-swap-input/index.js +2 -2
  106. package/lib/module/partials/w3m-swap-input/index.js.map +1 -1
  107. package/lib/module/types.js +4 -0
  108. package/lib/module/types.js.map +1 -0
  109. package/lib/module/utils/HelpersUtil.js.map +1 -1
  110. package/lib/module/utils/NetworkUtil.js.map +1 -1
  111. package/lib/module/views/w3m-account-default-view/components/auth-buttons.js +2 -2
  112. package/lib/module/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
  113. package/lib/module/views/w3m-account-default-view/index.js +15 -15
  114. package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
  115. package/lib/module/views/w3m-all-wallets-view/index.js +1 -1
  116. package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
  117. package/lib/module/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
  118. package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
  119. package/lib/module/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
  120. package/lib/module/views/w3m-connect-view/components/social-login-list.js +4 -4
  121. package/lib/module/views/w3m-connect-view/components/social-login-list.js.map +1 -1
  122. package/lib/module/views/w3m-connect-view/index.js +7 -7
  123. package/lib/module/views/w3m-connect-view/index.js.map +1 -1
  124. package/lib/module/views/w3m-connecting-external-view/index.js +2 -2
  125. package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
  126. package/lib/module/views/w3m-connecting-social-view/index.js +2 -2
  127. package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
  128. package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
  129. package/lib/module/views/w3m-get-wallet-view/index.js.map +1 -1
  130. package/lib/module/views/w3m-network-switch-view/index.js +2 -2
  131. package/lib/module/views/w3m-network-switch-view/index.js.map +1 -1
  132. package/lib/module/views/w3m-onramp-checkout-view/index.js +15 -15
  133. package/lib/module/views/w3m-onramp-checkout-view/index.js.map +1 -1
  134. package/lib/module/views/w3m-onramp-settings-view/components/Country.js +4 -4
  135. package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
  136. package/lib/module/views/w3m-onramp-settings-view/index.js +4 -4
  137. package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
  138. package/lib/module/views/w3m-onramp-settings-view/utils.js.map +1 -1
  139. package/lib/module/views/w3m-onramp-transaction-view/index.js +5 -5
  140. package/lib/module/views/w3m-onramp-transaction-view/index.js.map +1 -1
  141. package/lib/module/views/w3m-onramp-view/components/Currency.js +2 -2
  142. package/lib/module/views/w3m-onramp-view/components/Currency.js.map +1 -1
  143. package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js +2 -2
  144. package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
  145. package/lib/module/views/w3m-onramp-view/components/PaymentButton.js +4 -4
  146. package/lib/module/views/w3m-onramp-view/components/PaymentButton.js.map +1 -1
  147. package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js +2 -2
  148. package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
  149. package/lib/module/views/w3m-onramp-view/components/Quote.js +4 -4
  150. package/lib/module/views/w3m-onramp-view/components/Quote.js.map +1 -1
  151. package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
  152. package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
  153. package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
  154. package/lib/module/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -1
  155. package/lib/module/views/w3m-swap-view/index.js +3 -3
  156. package/lib/module/views/w3m-swap-view/index.js.map +1 -1
  157. package/lib/typescript/AppKit.d.ts +2 -25
  158. package/lib/typescript/AppKit.d.ts.map +1 -1
  159. package/lib/typescript/connectors/WalletConnectConnector.d.ts +1 -1
  160. package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
  161. package/lib/typescript/hooks/useAppKitEvents.d.ts +4 -3
  162. package/lib/typescript/hooks/useAppKitEvents.d.ts.map +1 -1
  163. package/lib/typescript/hooks/useProvider.d.ts +28 -1
  164. package/lib/typescript/hooks/useProvider.d.ts.map +1 -1
  165. package/lib/typescript/index.d.ts +1 -0
  166. package/lib/typescript/index.d.ts.map +1 -1
  167. package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +1 -1
  168. package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
  169. package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts +1 -1
  170. package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts.map +1 -1
  171. package/lib/typescript/partials/w3m-connecting-header/index.d.ts +1 -1
  172. package/lib/typescript/partials/w3m-connecting-header/index.d.ts.map +1 -1
  173. package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
  174. package/lib/typescript/partials/w3m-swap-input/index.d.ts +1 -1
  175. package/lib/typescript/partials/w3m-swap-input/index.d.ts.map +1 -1
  176. package/lib/typescript/types.d.ts +156 -0
  177. package/lib/typescript/types.d.ts.map +1 -0
  178. package/lib/typescript/utils/HelpersUtil.d.ts +1 -2
  179. package/lib/typescript/utils/HelpersUtil.d.ts.map +1 -1
  180. package/lib/typescript/utils/NetworkUtil.d.ts +1 -2
  181. package/lib/typescript/utils/NetworkUtil.d.ts.map +1 -1
  182. package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
  183. package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts +1 -1
  184. package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts.map +1 -1
  185. package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts +1 -1
  186. package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts.map +1 -1
  187. package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts +1 -1
  188. package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts.map +1 -1
  189. package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
  190. package/lib/typescript/views/w3m-connect-view/utils.d.ts +1 -1
  191. package/lib/typescript/views/w3m-connect-view/utils.d.ts.map +1 -1
  192. package/lib/typescript/views/w3m-get-wallet-view/index.d.ts.map +1 -1
  193. package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts +1 -1
  194. package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts.map +1 -1
  195. package/lib/typescript/views/w3m-onramp-settings-view/index.d.ts.map +1 -1
  196. package/lib/typescript/views/w3m-onramp-settings-view/utils.d.ts +1 -1
  197. package/lib/typescript/views/w3m-onramp-settings-view/utils.d.ts.map +1 -1
  198. package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts +1 -1
  199. package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts.map +1 -1
  200. package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts +1 -1
  201. package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts.map +1 -1
  202. package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts +1 -1
  203. package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts.map +1 -1
  204. package/lib/typescript/views/w3m-onramp-view/components/SelectPaymentModal.d.ts.map +1 -1
  205. package/lib/typescript/views/w3m-onramp-view/index.d.ts.map +1 -1
  206. package/lib/typescript/views/w3m-onramp-view/utils.d.ts +1 -1
  207. package/lib/typescript/views/w3m-onramp-view/utils.d.ts.map +1 -1
  208. package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts +1 -1
  209. package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +1 -1
  210. package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts +1 -1
  211. package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts.map +1 -1
  212. package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
  213. package/package.json +5 -5
  214. package/src/AppKit.ts +3 -35
  215. package/src/connectors/WalletConnectConnector.ts +17 -2
  216. package/src/hooks/useAppKitEvents.ts +2 -5
  217. package/src/hooks/useProvider.ts +30 -9
  218. package/src/index.ts +1 -0
  219. package/src/partials/w3m-account-activity/index.tsx +5 -5
  220. package/src/partials/w3m-account-tokens/index.tsx +2 -2
  221. package/src/partials/w3m-account-wallet-features/index.tsx +6 -6
  222. package/src/partials/w3m-all-wallets-list/index.tsx +2 -2
  223. package/src/partials/w3m-all-wallets-search/index.tsx +2 -6
  224. package/src/partials/w3m-connecting-body/index.tsx +2 -2
  225. package/src/partials/w3m-connecting-header/index.tsx +1 -1
  226. package/src/partials/w3m-connecting-mobile/index.tsx +6 -6
  227. package/src/partials/w3m-connecting-qrcode/index.tsx +14 -4
  228. package/src/partials/w3m-connecting-web/index.tsx +4 -4
  229. package/src/partials/w3m-placeholder/index.tsx +8 -8
  230. package/src/partials/w3m-selector-modal/index.tsx +2 -2
  231. package/src/partials/w3m-send-input-token/index.tsx +2 -2
  232. package/src/partials/w3m-swap-input/index.tsx +3 -4
  233. package/src/types.ts +187 -0
  234. package/src/utils/HelpersUtil.ts +1 -1
  235. package/src/utils/NetworkUtil.ts +1 -1
  236. package/src/views/w3m-account-default-view/components/auth-buttons.tsx +2 -2
  237. package/src/views/w3m-account-default-view/index.tsx +20 -20
  238. package/src/views/w3m-all-wallets-view/index.tsx +2 -7
  239. package/src/views/w3m-connect-view/components/all-wallet-list.tsx +2 -2
  240. package/src/views/w3m-connect-view/components/custom-wallet-list.tsx +1 -1
  241. package/src/views/w3m-connect-view/components/recent-wallet-list.tsx +2 -6
  242. package/src/views/w3m-connect-view/components/social-login-list.tsx +4 -4
  243. package/src/views/w3m-connect-view/index.tsx +10 -11
  244. package/src/views/w3m-connect-view/utils.ts +1 -1
  245. package/src/views/w3m-connecting-external-view/index.tsx +2 -2
  246. package/src/views/w3m-connecting-social-view/index.tsx +2 -2
  247. package/src/views/w3m-connecting-view/index.tsx +1 -1
  248. package/src/views/w3m-get-wallet-view/index.tsx +2 -1
  249. package/src/views/w3m-network-switch-view/index.tsx +2 -2
  250. package/src/views/w3m-onramp-checkout-view/index.tsx +15 -15
  251. package/src/views/w3m-onramp-settings-view/components/Country.tsx +6 -4
  252. package/src/views/w3m-onramp-settings-view/index.tsx +6 -9
  253. package/src/views/w3m-onramp-settings-view/utils.ts +2 -5
  254. package/src/views/w3m-onramp-transaction-view/index.tsx +6 -6
  255. package/src/views/w3m-onramp-view/components/Currency.tsx +3 -3
  256. package/src/views/w3m-onramp-view/components/CurrencyInput.tsx +2 -2
  257. package/src/views/w3m-onramp-view/components/PaymentButton.tsx +4 -4
  258. package/src/views/w3m-onramp-view/components/PaymentMethod.tsx +4 -3
  259. package/src/views/w3m-onramp-view/components/Quote.tsx +4 -5
  260. package/src/views/w3m-onramp-view/components/SelectPaymentModal.tsx +2 -5
  261. package/src/views/w3m-onramp-view/index.tsx +5 -2
  262. package/src/views/w3m-swap-view/components/select-token-view/index.tsx +3 -3
  263. package/src/views/w3m-swap-view/components/select-token-view/utils.ts +2 -1
  264. package/src/views/w3m-swap-view/index.tsx +5 -6
@@ -1,6 +1,7 @@
1
1
  import { Linking, Platform, ScrollView } from 'react-native';
2
2
  import { FlexView, ListWallet } from '@reown/appkit-ui-react-native';
3
- import { ApiController, AssetUtil, type WcWallet } from '@reown/appkit-core-react-native';
3
+ import { ApiController, AssetUtil } from '@reown/appkit-core-react-native';
4
+ import { type WcWallet } from '@reown/appkit-common-react-native';
4
5
  import { useCustomDimensions } from '../../hooks/useCustomDimensions';
5
6
  import styles from './styles';
6
7
 
@@ -113,7 +113,7 @@ export function NetworkSwitchView() {
113
113
  imageHeaders={ApiController._getApiHeaders()}
114
114
  size="lg"
115
115
  />
116
- {error && (
116
+ {error ? (
117
117
  <IconBox
118
118
  icon="close"
119
119
  border
@@ -123,7 +123,7 @@ export function NetworkSwitchView() {
123
123
  iconColor="error-100"
124
124
  style={styles.errorIcon}
125
125
  />
126
- )}
126
+ ) : null}
127
127
  </LoadingHexagon>
128
128
  {textTemplate()}
129
129
  {retryTemplate()}
@@ -60,7 +60,7 @@ export function OnRampCheckoutView() {
60
60
  </FlexView>
61
61
  <FlexView flexDirection="row" alignItems="center" justifyContent="center">
62
62
  <Text color="fg-200">via </Text>
63
- {providerImage && <Image source={providerImage} style={styles.providerImage} />}
63
+ {providerImage ? <Image source={providerImage} style={styles.providerImage} /> : null}
64
64
  <Text color="fg-200">{StringUtil.capitalize(selectedQuote?.serviceProvider)}</Text>
65
65
  </FlexView>
66
66
  </FlexView>
@@ -87,12 +87,12 @@ export function OnRampCheckoutView() {
87
87
  <Text>
88
88
  {value} {symbol?.split('_')[0] ?? ''}
89
89
  </Text>
90
- {purchaseCurrency?.symbolImageUrl && (
90
+ {purchaseCurrency?.symbolImageUrl ? (
91
91
  <Image
92
92
  source={purchaseCurrency?.symbolImageUrl}
93
93
  style={[styles.tokenImage, { borderColor: Theme['gray-glass-010'] }]}
94
94
  />
95
- )}
95
+ ) : null}
96
96
  </FlexView>
97
97
  </FlexView>
98
98
  <FlexView
@@ -118,37 +118,37 @@ export function OnRampCheckoutView() {
118
118
  alignItems="center"
119
119
  style={[styles.paymentMethodContainer, { borderColor: Theme['gray-glass-020'] }]}
120
120
  >
121
- {paymentLogo && (
121
+ {paymentLogo ? (
122
122
  <Image
123
123
  source={paymentLogo}
124
124
  style={styles.paymentMethodImage}
125
125
  tintColor={Theme['fg-150']}
126
126
  />
127
- )}
127
+ ) : null}
128
128
  <Text variant="small-600" color="fg-150">
129
129
  {selectedPaymentMethod?.name}
130
130
  </Text>
131
131
  </FlexView>
132
132
  </FlexView>
133
133
 
134
- {showFees && (
134
+ {showFees ? (
135
135
  <Toggle
136
136
  title={
137
137
  <>
138
138
  <Text variant="paragraph-400" color="fg-200">
139
139
  Fees{' '}
140
- {showTotalFee && (
140
+ {showTotalFee ? (
141
141
  <Text variant="paragraph-400">
142
142
  {selectedQuote?.totalFee} {selectedQuote?.sourceCurrencyCode}
143
143
  </Text>
144
- )}
144
+ ) : null}
145
145
  </Text>
146
146
  </>
147
147
  }
148
148
  style={[styles.feesToggle, { backgroundColor: Theme['gray-glass-002'] }]}
149
149
  contentContainerStyle={styles.feesToggleContent}
150
150
  >
151
- {showNetworkFee && (
151
+ {showNetworkFee ? (
152
152
  <FlexView
153
153
  flexDirection="row"
154
154
  justifyContent="space-between"
@@ -159,19 +159,19 @@ export function OnRampCheckoutView() {
159
159
  Network Fees
160
160
  </Text>
161
161
  <FlexView flexDirection="row" alignItems="center">
162
- {networkImage && (
162
+ {networkImage ? (
163
163
  <Image
164
164
  source={networkImage}
165
165
  style={[styles.networkImage, { borderColor: Theme['gray-glass-010'] }]}
166
166
  />
167
- )}
167
+ ) : null}
168
168
  <Text variant="small-400">
169
169
  {selectedQuote?.networkFee} {selectedQuote?.sourceCurrencyCode}
170
170
  </Text>
171
171
  </FlexView>
172
172
  </FlexView>
173
- )}
174
- {showTransactionFee && (
173
+ ) : null}
174
+ {showTransactionFee ? (
175
175
  <FlexView
176
176
  flexDirection="row"
177
177
  justifyContent="space-between"
@@ -184,9 +184,9 @@ export function OnRampCheckoutView() {
184
184
  {selectedQuote.transactionFee} {selectedQuote?.sourceCurrencyCode}
185
185
  </Text>
186
186
  </FlexView>
187
- )}
187
+ ) : null}
188
188
  </Toggle>
189
- )}
189
+ ) : null}
190
190
  <FlexView flexDirection="row" justifyContent="space-between" margin={['xl', '0', '0', '0']}>
191
191
  <Button
192
192
  variant="shade"
@@ -1,4 +1,4 @@
1
- import type { OnRampCountry } from '@reown/appkit-core-react-native';
1
+ import { type OnRampCountry } from '@reown/appkit-common-react-native';
2
2
  import {
3
3
  Pressable,
4
4
  FlexView,
@@ -27,7 +27,9 @@ export function Country({ onPress, item, selected }: Props) {
27
27
  <Pressable onPress={handlePress} style={styles.container} backgroundColor="transparent">
28
28
  <FlexView flexDirection="row" alignItems="center" justifyContent="flex-start" padding="s">
29
29
  <FlexView style={styles.imageContainer}>
30
- {item.flagImageUrl && SvgUri && <SvgUri uri={item.flagImageUrl} width={36} height={36} />}
30
+ {item.flagImageUrl && SvgUri ? (
31
+ <SvgUri uri={item.flagImageUrl} width={36} height={36} />
32
+ ) : null}
31
33
  </FlexView>
32
34
  <FlexView style={styles.textContainer}>
33
35
  <Text variant="paragraph-400" color="fg-100" numberOfLines={1} ellipsizeMode="tail">
@@ -37,9 +39,9 @@ export function Country({ onPress, item, selected }: Props) {
37
39
  {item.countryCode}
38
40
  </Text>
39
41
  </FlexView>
40
- {selected && (
42
+ {selected ? (
41
43
  <Icon name="checkmark" size="md" color="accent-100" style={styles.checkmark} />
42
- )}
44
+ ) : null}
43
45
  </FlexView>
44
46
  </Pressable>
45
47
  );
@@ -2,11 +2,8 @@ import { useSnapshot } from 'valtio';
2
2
  import { memo, useState } from 'react';
3
3
  import { SvgUri } from 'react-native-svg';
4
4
  import { FlexView, ListItem, Text, useTheme, Icon, Image } from '@reown/appkit-ui-react-native';
5
- import {
6
- OnRampController,
7
- type OnRampCountry,
8
- type OnRampFiatCurrency
9
- } from '@reown/appkit-core-react-native';
5
+ import { OnRampController } from '@reown/appkit-core-react-native';
6
+ import { type OnRampCountry, type OnRampFiatCurrency } from '@reown/appkit-common-react-native';
10
7
 
11
8
  import { SelectorModal } from '../../partials/w3m-selector-modal';
12
9
  import { Country } from './components/Country';
@@ -97,11 +94,11 @@ export function OnRampSettingsView() {
97
94
  </FlexView>
98
95
  <FlexView>
99
96
  <Text color="fg-100">Select Country</Text>
100
- {selectedCountry?.name && (
97
+ {selectedCountry?.name ? (
101
98
  <Text variant="small-400" color="fg-200">
102
99
  {selectedCountry?.name}
103
100
  </Text>
104
- )}
101
+ ) : null}
105
102
  </FlexView>
106
103
  </ListItem>
107
104
  <ListItem onPress={onPaymentCurrencyPress} chevron contentStyle={styles.itemContent}>
@@ -120,11 +117,11 @@ export function OnRampSettingsView() {
120
117
  </FlexView>
121
118
  <FlexView>
122
119
  <Text color="fg-100">Select Currency</Text>
123
- {paymentCurrency?.name && (
120
+ {paymentCurrency?.name ? (
124
121
  <Text variant="small-400" color="fg-200">
125
122
  {paymentCurrency?.name}
126
123
  </Text>
127
- )}
124
+ ) : null}
128
125
  </FlexView>
129
126
  </ListItem>
130
127
  </FlexView>
@@ -1,10 +1,7 @@
1
1
  import { ITEM_HEIGHT as COUNTRY_ITEM_HEIGHT } from './components/Country';
2
2
  import { ITEM_HEIGHT as CURRENCY_ITEM_HEIGHT } from '../w3m-onramp-view/components/Currency';
3
- import {
4
- OnRampController,
5
- type OnRampCountry,
6
- type OnRampFiatCurrency
7
- } from '@reown/appkit-core-react-native';
3
+ import { OnRampController } from '@reown/appkit-core-react-native';
4
+ import { type OnRampCountry, type OnRampFiatCurrency } from '@reown/appkit-common-react-native';
8
5
 
9
6
  // -------------------------- Types --------------------------
10
7
  type ModalType = 'country' | 'paymentCurrency';
@@ -76,15 +76,15 @@ export function OnRampTransactionView() {
76
76
  {data?.onrampResult?.purchaseAmount}{' '}
77
77
  {data?.onrampResult?.purchaseCurrency?.split('_')[0] ?? ''}
78
78
  </Text>
79
- {data?.onrampResult?.purchaseImageUrl && (
79
+ {data?.onrampResult?.purchaseImageUrl ? (
80
80
  <Image
81
81
  source={data?.onrampResult?.purchaseImageUrl}
82
82
  style={[styles.tokenImage, { borderColor: Theme['gray-glass-010'] }]}
83
83
  />
84
- )}
84
+ ) : null}
85
85
  </FlexView>
86
86
  </FlexView>
87
- {showNetwork && (
87
+ {showNetwork ? (
88
88
  <FlexView
89
89
  flexDirection="row"
90
90
  alignItems="center"
@@ -98,8 +98,8 @@ export function OnRampTransactionView() {
98
98
  {StringUtil.capitalize(data?.onrampResult?.network)}
99
99
  </Text>
100
100
  </FlexView>
101
- )}
102
- {showStatus && (
101
+ ) : null}
102
+ {showStatus ? (
103
103
  <FlexView flexDirection="row" alignItems="center" justifyContent="space-between">
104
104
  <Text variant="paragraph-400" color="fg-150">
105
105
  Status
@@ -108,7 +108,7 @@ export function OnRampTransactionView() {
108
108
  {StringUtil.capitalize(data?.onrampResult?.status)}
109
109
  </Text>
110
110
  </FlexView>
111
- )}
111
+ ) : null}
112
112
  </FlexView>
113
113
  </FlexView>
114
114
  <Button variant="fill" size="md" onPress={onClose}>
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  type OnRampFiatCurrency,
3
3
  type OnRampCryptoCurrency
4
- } from '@reown/appkit-core-react-native';
4
+ } from '@reown/appkit-common-react-native';
5
5
  import {
6
6
  Pressable,
7
7
  FlexView,
@@ -53,9 +53,9 @@ export function Currency({ onPress, item, selected, title, subtitle, testID }: P
53
53
  </Text>
54
54
  </FlexView>
55
55
  </FlexView>
56
- {selected && (
56
+ {selected ? (
57
57
  <Icon name="checkmark" size="md" color="accent-100" style={styles.checkmark} />
58
- )}
58
+ ) : null}
59
59
  </FlexView>
60
60
  </Pressable>
61
61
  );
@@ -117,7 +117,7 @@ export function CurrencyInput({
117
117
  )}
118
118
  </FlexView>
119
119
  </FlexView>
120
- {suggestedValues && suggestedValues.length > 0 && (
120
+ {suggestedValues && suggestedValues.length > 0 ? (
121
121
  <FlexView flexDirection="row" justifyContent="space-between" margin={['s', '0', '0', '0']}>
122
122
  {suggestedValues?.map((suggestion: number) => {
123
123
  const isSelected = suggestion.toString() === value;
@@ -144,7 +144,7 @@ export function CurrencyInput({
144
144
  );
145
145
  })}
146
146
  </FlexView>
147
- )}
147
+ ) : null}
148
148
  <Separator color="gray-glass-020" style={styles.separator} />
149
149
  <NumericKeyboard onKeyPress={handleKeyPress} />
150
150
  </FlexView>
@@ -73,9 +73,9 @@ function PaymentButton({
73
73
  <Text variant="paragraph-400" color="fg-100">
74
74
  {title}
75
75
  </Text>
76
- {subtitle && (
76
+ {subtitle ? (
77
77
  <FlexView flexDirection="row" alignItems="center" margin={['4xs', '0', '0', '0']}>
78
- {providerLogo && (
78
+ {providerLogo ? (
79
79
  <>
80
80
  <Text variant="small-400" color="fg-150">
81
81
  via
@@ -87,12 +87,12 @@ function PaymentButton({
87
87
  resizeMode="contain"
88
88
  />
89
89
  </>
90
- )}
90
+ ) : null}
91
91
  <Text variant="small-400" color="fg-150">
92
92
  {subtitle}
93
93
  </Text>
94
94
  </FlexView>
95
- )}
95
+ ) : null}
96
96
  </FlexView>
97
97
  {loading ? (
98
98
  <LoadingSpinner size="md" color="fg-200" style={styles.rightIcon} />
@@ -1,5 +1,6 @@
1
1
  import { useSnapshot } from 'valtio';
2
- import { ThemeController, type OnRampPaymentMethod } from '@reown/appkit-core-react-native';
2
+ import { ThemeController } from '@reown/appkit-core-react-native';
3
+ import { type OnRampPaymentMethod } from '@reown/appkit-common-react-native';
3
4
  import {
4
5
  Pressable,
5
6
  FlexView,
@@ -49,7 +50,7 @@ export function PaymentMethod({ onPress, item, selected, testID }: Props) {
49
50
  resizeMethod="resize"
50
51
  resizeMode="contain"
51
52
  />
52
- {selected && (
53
+ {selected ? (
53
54
  <IconBox
54
55
  icon="checkmark"
55
56
  size="sm"
@@ -59,7 +60,7 @@ export function PaymentMethod({ onPress, item, selected, testID }: Props) {
59
60
  style={styles.checkmark}
60
61
  testID="payment-method-checkmark"
61
62
  />
62
- )}
63
+ ) : null}
63
64
  </FlexView>
64
65
  <Text variant="tiny-400" color="fg-100" numberOfLines={2} style={styles.text}>
65
66
  {item.name}
@@ -1,5 +1,4 @@
1
- import { NumberUtil } from '@reown/appkit-common-react-native';
2
- import { type OnRampQuote } from '@reown/appkit-core-react-native';
1
+ import { NumberUtil, type OnRampQuote } from '@reown/appkit-common-react-native';
3
2
  import {
4
3
  FlexView,
5
4
  Image,
@@ -55,11 +54,11 @@ export function Quote({ item, logoURL, onQuotePress, selected, tagText, testID }
55
54
  <Text variant="paragraph-500" style={styles.providerText}>
56
55
  {item.serviceProvider?.toLowerCase()}
57
56
  </Text>
58
- {tagText && (
57
+ {tagText ? (
59
58
  <Tag variant="main" style={styles.tag}>
60
59
  {tagText}
61
60
  </Tag>
62
- )}
61
+ ) : null}
63
62
  </FlexView>
64
63
  <Text variant="tiny-500">
65
64
  {NumberUtil.roundNumber(item.destinationAmount, 6, 5)}{' '}
@@ -67,7 +66,7 @@ export function Quote({ item, logoURL, onQuotePress, selected, tagText, testID }
67
66
  </Text>
68
67
  </FlexView>
69
68
  </FlexView>
70
- {selected && <Icon name="checkmark" color="accent-100" />}
69
+ {selected ? <Icon name="checkmark" color="accent-100" /> : null}
71
70
  </FlexView>
72
71
  </Pressable>
73
72
  );
@@ -11,13 +11,10 @@ import {
11
11
  Separator,
12
12
  BorderRadius
13
13
  } from '@reown/appkit-ui-react-native';
14
- import {
15
- OnRampController,
16
- type OnRampPaymentMethod,
17
- type OnRampQuote
18
- } from '@reown/appkit-core-react-native';
14
+ import { OnRampController } from '@reown/appkit-core-react-native';
19
15
  import { Quote, ITEM_HEIGHT as QUOTE_ITEM_HEIGHT } from './Quote';
20
16
  import { PaymentMethod } from './PaymentMethod';
17
+ import { type OnRampPaymentMethod, type OnRampQuote } from '@reown/appkit-common-react-native';
21
18
 
22
19
  interface SelectPaymentModalProps {
23
20
  title?: string;
@@ -3,7 +3,6 @@ import { memo, useCallback, useEffect, useState } from 'react';
3
3
  import { ScrollView } from 'react-native';
4
4
  import {
5
5
  OnRampController,
6
- type OnRampCryptoCurrency,
7
6
  ThemeController,
8
7
  RouterController,
9
8
  type OnRampControllerState,
@@ -21,7 +20,11 @@ import {
21
20
  TokenButton,
22
21
  useTheme
23
22
  } from '@reown/appkit-ui-react-native';
24
- import { NumberUtil, StringUtil } from '@reown/appkit-common-react-native';
23
+ import {
24
+ NumberUtil,
25
+ StringUtil,
26
+ type OnRampCryptoCurrency
27
+ } from '@reown/appkit-common-react-native';
25
28
  import { SelectorModal } from '../../partials/w3m-selector-modal';
26
29
  import { Currency, ITEM_HEIGHT as CURRENCY_ITEM_HEIGHT } from './components/Currency';
27
30
  import { getPurchaseCurrencies, getQuotesDebounced } from './utils';
@@ -25,11 +25,11 @@ import {
25
25
  AssetUtil,
26
26
  ConnectionsController,
27
27
  SwapController,
28
- type SwapControllerState,
29
- type SwapInputTarget,
30
- type SwapTokenWithBalance
28
+ type SwapControllerState
31
29
  } from '@reown/appkit-core-react-native';
32
30
 
31
+ import { type SwapInputTarget, type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
32
+
33
33
  import { useCustomDimensions } from '../../../../hooks/useCustomDimensions';
34
34
  import { Placeholder } from '../../../../partials/w3m-placeholder';
35
35
  import styles from './styles';
@@ -1,4 +1,5 @@
1
- import { SwapController, type SwapTokenWithBalance } from '@reown/appkit-core-react-native';
1
+ import { type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
2
+ import { SwapController } from '@reown/appkit-core-react-native';
2
3
 
3
4
  export function filterTokens(tokens?: SwapTokenWithBalance[], searchValue?: string) {
4
5
  if (!tokens) {
@@ -6,11 +6,10 @@ import {
6
6
  ConstantsUtil,
7
7
  EventsController,
8
8
  RouterController,
9
- SwapController,
10
- type SwapInputTarget
9
+ SwapController
11
10
  } from '@reown/appkit-core-react-native';
12
11
  import { Button, FlexView, IconLink, useTheme } from '@reown/appkit-ui-react-native';
13
- import { NumberUtil } from '@reown/appkit-common-react-native';
12
+ import { NumberUtil, type SwapInputTarget } from '@reown/appkit-common-react-native';
14
13
 
15
14
  import { useKeyboard } from '../../hooks/useKeyboard';
16
15
  import { useCustomDimensions } from '../../hooks/useCustomDimensions';
@@ -180,7 +179,7 @@ export function SwapView() {
180
179
  onTokenPress={() => setShowModal('toToken')}
181
180
  editable={false}
182
181
  />
183
- {showSwitch && (
182
+ {showSwitch ? (
184
183
  <IconLink
185
184
  icon="recycleHorizontal"
186
185
  size="lg"
@@ -191,9 +190,9 @@ export function SwapView() {
191
190
  style={[styles.arrowIcon, { borderColor: Theme['bg-100'] }]}
192
191
  onPress={onSwitchPress}
193
192
  />
194
- )}
193
+ ) : null}
195
194
  </FlexView>
196
- {showDetails && <SwapDetails />}
195
+ {showDetails ? <SwapDetails /> : null}
197
196
  <Button
198
197
  style={styles.actionButton}
199
198
  loading={actionLoading}