@reown/appkit-react-native 0.0.0-feat-multichain-20250804182547 → 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 (235) hide show
  1. package/lib/commonjs/hooks/useAppKitEvents.js.map +1 -1
  2. package/lib/commonjs/partials/w3m-account-activity/index.js +5 -5
  3. package/lib/commonjs/partials/w3m-account-activity/index.js.map +1 -1
  4. package/lib/commonjs/partials/w3m-account-tokens/index.js +4 -4
  5. package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
  6. package/lib/commonjs/partials/w3m-account-wallet-features/index.js +5 -5
  7. package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
  8. package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
  9. package/lib/commonjs/partials/w3m-connecting-body/index.js +2 -2
  10. package/lib/commonjs/partials/w3m-connecting-body/index.js.map +1 -1
  11. package/lib/commonjs/partials/w3m-connecting-mobile/index.js +6 -6
  12. package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
  13. package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +2 -2
  14. package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
  15. package/lib/commonjs/partials/w3m-connecting-web/index.js +4 -4
  16. package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
  17. package/lib/commonjs/partials/w3m-placeholder/index.js +5 -5
  18. package/lib/commonjs/partials/w3m-placeholder/index.js.map +1 -1
  19. package/lib/commonjs/partials/w3m-selector-modal/index.js +2 -2
  20. package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
  21. package/lib/commonjs/partials/w3m-send-input-token/index.js +2 -2
  22. package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
  23. package/lib/commonjs/partials/w3m-swap-input/index.js +2 -2
  24. package/lib/commonjs/partials/w3m-swap-input/index.js.map +1 -1
  25. package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js +2 -2
  26. package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
  27. package/lib/commonjs/views/w3m-account-default-view/index.js +15 -15
  28. package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
  29. package/lib/commonjs/views/w3m-all-wallets-view/index.js +1 -1
  30. package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
  31. package/lib/commonjs/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
  32. package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js +4 -4
  33. package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js.map +1 -1
  34. package/lib/commonjs/views/w3m-connect-view/index.js +7 -7
  35. package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
  36. package/lib/commonjs/views/w3m-connecting-external-view/index.js +2 -2
  37. package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
  38. package/lib/commonjs/views/w3m-connecting-social-view/index.js +2 -2
  39. package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
  40. package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
  41. package/lib/commonjs/views/w3m-get-wallet-view/index.js.map +1 -1
  42. package/lib/commonjs/views/w3m-network-switch-view/index.js +2 -2
  43. package/lib/commonjs/views/w3m-network-switch-view/index.js.map +1 -1
  44. package/lib/commonjs/views/w3m-onramp-checkout-view/index.js +15 -15
  45. package/lib/commonjs/views/w3m-onramp-checkout-view/index.js.map +1 -1
  46. package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js +4 -4
  47. package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
  48. package/lib/commonjs/views/w3m-onramp-settings-view/index.js +4 -4
  49. package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
  50. package/lib/commonjs/views/w3m-onramp-settings-view/utils.js.map +1 -1
  51. package/lib/commonjs/views/w3m-onramp-transaction-view/index.js +5 -5
  52. package/lib/commonjs/views/w3m-onramp-transaction-view/index.js.map +1 -1
  53. package/lib/commonjs/views/w3m-onramp-view/components/Currency.js +2 -2
  54. package/lib/commonjs/views/w3m-onramp-view/components/Currency.js.map +1 -1
  55. package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js +2 -2
  56. package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
  57. package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js +4 -4
  58. package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js.map +1 -1
  59. package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js +2 -2
  60. package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
  61. package/lib/commonjs/views/w3m-onramp-view/components/Quote.js +4 -4
  62. package/lib/commonjs/views/w3m-onramp-view/components/Quote.js.map +1 -1
  63. package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
  64. package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
  65. package/lib/commonjs/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -1
  66. package/lib/commonjs/views/w3m-swap-view/index.js +3 -3
  67. package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
  68. package/lib/module/hooks/useAppKitEvents.js.map +1 -1
  69. package/lib/module/partials/w3m-account-activity/index.js +5 -5
  70. package/lib/module/partials/w3m-account-activity/index.js.map +1 -1
  71. package/lib/module/partials/w3m-account-tokens/index.js +4 -4
  72. package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
  73. package/lib/module/partials/w3m-account-wallet-features/index.js +5 -5
  74. package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
  75. package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
  76. package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
  77. package/lib/module/partials/w3m-connecting-body/index.js +2 -2
  78. package/lib/module/partials/w3m-connecting-body/index.js.map +1 -1
  79. package/lib/module/partials/w3m-connecting-mobile/index.js +6 -6
  80. package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
  81. package/lib/module/partials/w3m-connecting-qrcode/index.js +2 -2
  82. package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
  83. package/lib/module/partials/w3m-connecting-web/index.js +4 -4
  84. package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
  85. package/lib/module/partials/w3m-placeholder/index.js +5 -5
  86. package/lib/module/partials/w3m-placeholder/index.js.map +1 -1
  87. package/lib/module/partials/w3m-selector-modal/index.js +2 -2
  88. package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
  89. package/lib/module/partials/w3m-send-input-token/index.js +2 -2
  90. package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
  91. package/lib/module/partials/w3m-swap-input/index.js +2 -2
  92. package/lib/module/partials/w3m-swap-input/index.js.map +1 -1
  93. package/lib/module/utils/HelpersUtil.js.map +1 -1
  94. package/lib/module/utils/NetworkUtil.js.map +1 -1
  95. package/lib/module/views/w3m-account-default-view/components/auth-buttons.js +2 -2
  96. package/lib/module/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
  97. package/lib/module/views/w3m-account-default-view/index.js +15 -15
  98. package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
  99. package/lib/module/views/w3m-all-wallets-view/index.js +1 -1
  100. package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
  101. package/lib/module/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
  102. package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
  103. package/lib/module/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
  104. package/lib/module/views/w3m-connect-view/components/social-login-list.js +4 -4
  105. package/lib/module/views/w3m-connect-view/components/social-login-list.js.map +1 -1
  106. package/lib/module/views/w3m-connect-view/index.js +7 -7
  107. package/lib/module/views/w3m-connect-view/index.js.map +1 -1
  108. package/lib/module/views/w3m-connecting-external-view/index.js +2 -2
  109. package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
  110. package/lib/module/views/w3m-connecting-social-view/index.js +2 -2
  111. package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
  112. package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
  113. package/lib/module/views/w3m-get-wallet-view/index.js.map +1 -1
  114. package/lib/module/views/w3m-network-switch-view/index.js +2 -2
  115. package/lib/module/views/w3m-network-switch-view/index.js.map +1 -1
  116. package/lib/module/views/w3m-onramp-checkout-view/index.js +15 -15
  117. package/lib/module/views/w3m-onramp-checkout-view/index.js.map +1 -1
  118. package/lib/module/views/w3m-onramp-settings-view/components/Country.js +4 -4
  119. package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
  120. package/lib/module/views/w3m-onramp-settings-view/index.js +4 -4
  121. package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
  122. package/lib/module/views/w3m-onramp-settings-view/utils.js.map +1 -1
  123. package/lib/module/views/w3m-onramp-transaction-view/index.js +5 -5
  124. package/lib/module/views/w3m-onramp-transaction-view/index.js.map +1 -1
  125. package/lib/module/views/w3m-onramp-view/components/Currency.js +2 -2
  126. package/lib/module/views/w3m-onramp-view/components/Currency.js.map +1 -1
  127. package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js +2 -2
  128. package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
  129. package/lib/module/views/w3m-onramp-view/components/PaymentButton.js +4 -4
  130. package/lib/module/views/w3m-onramp-view/components/PaymentButton.js.map +1 -1
  131. package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js +2 -2
  132. package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
  133. package/lib/module/views/w3m-onramp-view/components/Quote.js +4 -4
  134. package/lib/module/views/w3m-onramp-view/components/Quote.js.map +1 -1
  135. package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
  136. package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
  137. package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
  138. package/lib/module/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -1
  139. package/lib/module/views/w3m-swap-view/index.js +3 -3
  140. package/lib/module/views/w3m-swap-view/index.js.map +1 -1
  141. package/lib/typescript/hooks/useAppKitEvents.d.ts +4 -3
  142. package/lib/typescript/hooks/useAppKitEvents.d.ts.map +1 -1
  143. package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +1 -1
  144. package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
  145. package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts +1 -1
  146. package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts.map +1 -1
  147. package/lib/typescript/partials/w3m-connecting-header/index.d.ts +1 -1
  148. package/lib/typescript/partials/w3m-connecting-header/index.d.ts.map +1 -1
  149. package/lib/typescript/partials/w3m-swap-input/index.d.ts +1 -1
  150. package/lib/typescript/partials/w3m-swap-input/index.d.ts.map +1 -1
  151. package/lib/typescript/types.d.ts +2 -2
  152. package/lib/typescript/types.d.ts.map +1 -1
  153. package/lib/typescript/utils/HelpersUtil.d.ts +1 -2
  154. package/lib/typescript/utils/HelpersUtil.d.ts.map +1 -1
  155. package/lib/typescript/utils/NetworkUtil.d.ts +1 -2
  156. package/lib/typescript/utils/NetworkUtil.d.ts.map +1 -1
  157. package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
  158. package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts +1 -1
  159. package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts.map +1 -1
  160. package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts +1 -1
  161. package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts.map +1 -1
  162. package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts +1 -1
  163. package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts.map +1 -1
  164. package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
  165. package/lib/typescript/views/w3m-connect-view/utils.d.ts +1 -1
  166. package/lib/typescript/views/w3m-connect-view/utils.d.ts.map +1 -1
  167. package/lib/typescript/views/w3m-get-wallet-view/index.d.ts.map +1 -1
  168. package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts +1 -1
  169. package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts.map +1 -1
  170. package/lib/typescript/views/w3m-onramp-settings-view/index.d.ts.map +1 -1
  171. package/lib/typescript/views/w3m-onramp-settings-view/utils.d.ts +1 -1
  172. package/lib/typescript/views/w3m-onramp-settings-view/utils.d.ts.map +1 -1
  173. package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts +1 -1
  174. package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts.map +1 -1
  175. package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts +1 -1
  176. package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts.map +1 -1
  177. package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts +1 -1
  178. package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts.map +1 -1
  179. package/lib/typescript/views/w3m-onramp-view/components/SelectPaymentModal.d.ts.map +1 -1
  180. package/lib/typescript/views/w3m-onramp-view/index.d.ts.map +1 -1
  181. package/lib/typescript/views/w3m-onramp-view/utils.d.ts +1 -1
  182. package/lib/typescript/views/w3m-onramp-view/utils.d.ts.map +1 -1
  183. package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts +1 -1
  184. package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +1 -1
  185. package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts +1 -1
  186. package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts.map +1 -1
  187. package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
  188. package/package.json +5 -5
  189. package/src/hooks/useAppKitEvents.ts +2 -5
  190. package/src/partials/w3m-account-activity/index.tsx +5 -5
  191. package/src/partials/w3m-account-tokens/index.tsx +2 -2
  192. package/src/partials/w3m-account-wallet-features/index.tsx +6 -6
  193. package/src/partials/w3m-all-wallets-list/index.tsx +2 -2
  194. package/src/partials/w3m-all-wallets-search/index.tsx +2 -6
  195. package/src/partials/w3m-connecting-body/index.tsx +2 -2
  196. package/src/partials/w3m-connecting-header/index.tsx +1 -1
  197. package/src/partials/w3m-connecting-mobile/index.tsx +6 -6
  198. package/src/partials/w3m-connecting-qrcode/index.tsx +2 -2
  199. package/src/partials/w3m-connecting-web/index.tsx +4 -4
  200. package/src/partials/w3m-placeholder/index.tsx +8 -8
  201. package/src/partials/w3m-selector-modal/index.tsx +2 -2
  202. package/src/partials/w3m-send-input-token/index.tsx +2 -2
  203. package/src/partials/w3m-swap-input/index.tsx +3 -4
  204. package/src/types.ts +2 -5
  205. package/src/utils/HelpersUtil.ts +1 -1
  206. package/src/utils/NetworkUtil.ts +1 -1
  207. package/src/views/w3m-account-default-view/components/auth-buttons.tsx +2 -2
  208. package/src/views/w3m-account-default-view/index.tsx +20 -20
  209. package/src/views/w3m-all-wallets-view/index.tsx +2 -7
  210. package/src/views/w3m-connect-view/components/all-wallet-list.tsx +2 -2
  211. package/src/views/w3m-connect-view/components/custom-wallet-list.tsx +1 -1
  212. package/src/views/w3m-connect-view/components/recent-wallet-list.tsx +2 -6
  213. package/src/views/w3m-connect-view/components/social-login-list.tsx +4 -4
  214. package/src/views/w3m-connect-view/index.tsx +10 -11
  215. package/src/views/w3m-connect-view/utils.ts +1 -1
  216. package/src/views/w3m-connecting-external-view/index.tsx +2 -2
  217. package/src/views/w3m-connecting-social-view/index.tsx +2 -2
  218. package/src/views/w3m-connecting-view/index.tsx +1 -1
  219. package/src/views/w3m-get-wallet-view/index.tsx +2 -1
  220. package/src/views/w3m-network-switch-view/index.tsx +2 -2
  221. package/src/views/w3m-onramp-checkout-view/index.tsx +15 -15
  222. package/src/views/w3m-onramp-settings-view/components/Country.tsx +6 -4
  223. package/src/views/w3m-onramp-settings-view/index.tsx +6 -9
  224. package/src/views/w3m-onramp-settings-view/utils.ts +2 -5
  225. package/src/views/w3m-onramp-transaction-view/index.tsx +6 -6
  226. package/src/views/w3m-onramp-view/components/Currency.tsx +3 -3
  227. package/src/views/w3m-onramp-view/components/CurrencyInput.tsx +2 -2
  228. package/src/views/w3m-onramp-view/components/PaymentButton.tsx +4 -4
  229. package/src/views/w3m-onramp-view/components/PaymentMethod.tsx +4 -3
  230. package/src/views/w3m-onramp-view/components/Quote.tsx +4 -5
  231. package/src/views/w3m-onramp-view/components/SelectPaymentModal.tsx +2 -5
  232. package/src/views/w3m-onramp-view/index.tsx +5 -2
  233. package/src/views/w3m-swap-view/components/select-token-view/index.tsx +3 -3
  234. package/src/views/w3m-swap-view/components/select-token-view/utils.ts +2 -1
  235. package/src/views/w3m-swap-view/index.tsx +5 -6
@@ -90,7 +90,7 @@ export function AccountWalletFeatures({ isBalanceLoading }: AccountWalletFeature
90
90
  justifyContent="space-around"
91
91
  padding={['0', 's', '0', 's']}
92
92
  >
93
- {isOnRampEnabled && (
93
+ {isOnRampEnabled ? (
94
94
  <IconLink
95
95
  icon="card"
96
96
  size="lg"
@@ -101,8 +101,8 @@ export function AccountWalletFeatures({ isBalanceLoading }: AccountWalletFeature
101
101
  style={[styles.action, isSwapsEnabled ? styles.actionCenter : styles.actionLeft]}
102
102
  onPress={onBuyPress}
103
103
  />
104
- )}
105
- {isSwapsEnabled && (
104
+ ) : null}
105
+ {isSwapsEnabled ? (
106
106
  <IconLink
107
107
  icon="recycleHorizontal"
108
108
  size="lg"
@@ -113,7 +113,7 @@ export function AccountWalletFeatures({ isBalanceLoading }: AccountWalletFeature
113
113
  style={[styles.action, styles.actionLeft]}
114
114
  onPress={onSwapPress}
115
115
  />
116
- )}
116
+ ) : null}
117
117
  <IconLink
118
118
  icon="arrowBottomCircle"
119
119
  size="lg"
@@ -124,7 +124,7 @@ export function AccountWalletFeatures({ isBalanceLoading }: AccountWalletFeature
124
124
  style={[styles.action, isSwapsEnabled ? styles.actionCenter : styles.actionLeft]}
125
125
  onPress={onReceivePress}
126
126
  />
127
- {showSend && (
127
+ {showSend ? (
128
128
  <IconLink
129
129
  icon="paperplane"
130
130
  size="lg"
@@ -135,7 +135,7 @@ export function AccountWalletFeatures({ isBalanceLoading }: AccountWalletFeature
135
135
  style={[styles.action, styles.actionRight]}
136
136
  onPress={onSendPress}
137
137
  />
138
- )}
138
+ ) : null}
139
139
  </FlexView>
140
140
  <FlexView style={styles.tab}>
141
141
  <Tabs tabs={['Tokens', 'Activity']} onTabChange={onTabChange} />
@@ -6,9 +6,9 @@ import {
6
6
  AssetUtil,
7
7
  OptionsController,
8
8
  SnackController,
9
- type OptionsControllerState,
10
- type WcWallet
9
+ type OptionsControllerState
11
10
  } from '@reown/appkit-core-react-native';
11
+ import { type WcWallet } from '@reown/appkit-common-react-native';
12
12
  import {
13
13
  CardSelect,
14
14
  CardSelectLoader,
@@ -1,11 +1,7 @@
1
1
  import { useCallback, useEffect, useState } from 'react';
2
2
  import { FlatList, View } from 'react-native';
3
- import {
4
- ApiController,
5
- AssetUtil,
6
- SnackController,
7
- type WcWallet
8
- } from '@reown/appkit-core-react-native';
3
+ import { ApiController, AssetUtil, SnackController } from '@reown/appkit-core-react-native';
4
+ import { type WcWallet } from '@reown/appkit-common-react-native';
9
5
  import {
10
6
  CardSelect,
11
7
  CardSelectHeight,
@@ -12,11 +12,11 @@ export function ConnectingBody({ title, description }: ConnectingBodyProps) {
12
12
  return (
13
13
  <FlexView padding={['3xs', '2xl', '0', '2xl']} alignItems="center" style={styles.textContainer}>
14
14
  <Text variant="paragraph-500">{title}</Text>
15
- {description && (
15
+ {description ? (
16
16
  <Text center variant="small-400" color="fg-200" style={styles.descriptionText}>
17
17
  {description}
18
18
  </Text>
19
- )}
19
+ ) : null}
20
20
  </FlexView>
21
21
  );
22
22
  }
@@ -1,4 +1,4 @@
1
- import type { Platform } from '@reown/appkit-core-react-native';
1
+ import type { Platform } from '@reown/appkit-common-react-native';
2
2
  import { FlexView, Tabs, type IconType } from '@reown/appkit-ui-react-native';
3
3
  import { StyleSheet } from 'react-native';
4
4
 
@@ -111,7 +111,7 @@ export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
111
111
  imageSrc={AssetUtil.getWalletImage(RouterController.state.data?.wallet)}
112
112
  imageHeaders={ApiController._getApiHeaders()}
113
113
  />
114
- {wcError && (
114
+ {wcError ? (
115
115
  <IconBox
116
116
  icon={'close'}
117
117
  border
@@ -121,10 +121,10 @@ export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
121
121
  iconColor="error-100"
122
122
  style={styles.errorIcon}
123
123
  />
124
- )}
124
+ ) : null}
125
125
  </LoadingThumbnail>
126
126
  <ConnectingBody title={bodyMessage.title} description={bodyMessage.description} />
127
- {showRetry && (
127
+ {showRetry ? (
128
128
  <Button
129
129
  size="sm"
130
130
  variant="accent"
@@ -135,9 +135,9 @@ export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
135
135
  >
136
136
  Try again
137
137
  </Button>
138
- )}
138
+ ) : null}
139
139
  </FlexView>
140
- {showCopy && (
140
+ {showCopy ? (
141
141
  <Link
142
142
  iconLeft="copySmall"
143
143
  color="fg-200"
@@ -146,7 +146,7 @@ export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
146
146
  >
147
147
  Copy link
148
148
  </Link>
149
- )}
149
+ ) : null}
150
150
  <StoreLink
151
151
  visible={!isInstalled && !!storeUrl}
152
152
  walletName={data?.wallet?.name}
@@ -54,7 +54,7 @@ export function ConnectingQrCode() {
54
54
  <QrCode size={qrSize} uri={wcUri} testID="qr-code" />
55
55
  <FlexView alignItems="center" margin={['m', 'm', '3xl', 'm']}>
56
56
  <Text variant="paragraph-500">Scan this QR code with your phone</Text>
57
- {showCopy && (
57
+ {showCopy ? (
58
58
  <Link
59
59
  iconLeft="copySmall"
60
60
  color="fg-200"
@@ -64,7 +64,7 @@ export function ConnectingQrCode() {
64
64
  >
65
65
  Copy link
66
66
  </Link>
67
- )}
67
+ ) : null}
68
68
  </FlexView>
69
69
  <Pressable onPress={() => Linking.openURL(ConstantsUtil.REOWN_URL)}>
70
70
  <FlexView alignItems="center" justifyContent="center" flexDirection="row" columnGap="2xs">
@@ -71,7 +71,7 @@ export function ConnectingWeb({ onCopyUri }: ConnectingWebProps) {
71
71
  imageSrc={AssetUtil.getWalletImage(data?.wallet)}
72
72
  imageHeaders={ApiController._getApiHeaders()}
73
73
  />
74
- {wcError && (
74
+ {wcError ? (
75
75
  <IconBox
76
76
  icon={'close'}
77
77
  border
@@ -81,7 +81,7 @@ export function ConnectingWeb({ onCopyUri }: ConnectingWebProps) {
81
81
  iconColor="error-100"
82
82
  style={styles.errorIcon}
83
83
  />
84
- )}
84
+ ) : null}
85
85
  </LoadingThumbnail>
86
86
  <ConnectingBody title={bodyMessage.title} description={bodyMessage.description} />
87
87
  <Button
@@ -93,7 +93,7 @@ export function ConnectingWeb({ onCopyUri }: ConnectingWebProps) {
93
93
  >
94
94
  Open
95
95
  </Button>
96
- {showCopy && (
96
+ {showCopy ? (
97
97
  <Link
98
98
  iconLeft="copySmall"
99
99
  color="fg-200"
@@ -102,7 +102,7 @@ export function ConnectingWeb({ onCopyUri }: ConnectingWebProps) {
102
102
  >
103
103
  Copy link
104
104
  </Link>
105
- )}
105
+ ) : null}
106
106
  </FlexView>
107
107
  </ScrollView>
108
108
  );
@@ -32,20 +32,20 @@ export function Placeholder({
32
32
  }: Props) {
33
33
  return (
34
34
  <FlexView alignItems="center" justifyContent="center" style={[styles.container, style]}>
35
- {icon && (
35
+ {icon ? (
36
36
  <IconBox icon={icon} size="xl" iconColor={iconColor} background style={styles.icon} />
37
- )}
38
- {title && (
37
+ ) : null}
38
+ {title ? (
39
39
  <Text variant="paragraph-500" style={styles.title}>
40
40
  {title}
41
41
  </Text>
42
- )}
43
- {description && (
42
+ ) : null}
43
+ {description ? (
44
44
  <Text variant="small-400" color="fg-200" center>
45
45
  {description}
46
46
  </Text>
47
- )}
48
- {actionPress && (
47
+ ) : null}
48
+ {actionPress ? (
49
49
  <Button
50
50
  style={styles.button}
51
51
  iconLeft={actionIcon}
@@ -55,7 +55,7 @@ export function Placeholder({
55
55
  >
56
56
  {actionTitle ?? ''}
57
57
  </Button>
58
- )}
58
+ ) : null}
59
59
  </FlexView>
60
60
  );
61
61
  }
@@ -91,12 +91,12 @@ export function SelectorModal({
91
91
  style={styles.searchBar}
92
92
  placeholder={searchPlaceholder}
93
93
  />
94
- {selectedItem && (
94
+ {selectedItem ? (
95
95
  <FlexView style={styles.selectedContainer}>
96
96
  {renderItem({ item: selectedItem })}
97
97
  <Separator style={styles.separator} color="gray-glass-020" />
98
98
  </FlexView>
99
- )}
99
+ ) : null}
100
100
  <FlatList
101
101
  data={items}
102
102
  renderItem={renderItem}
@@ -94,7 +94,7 @@ export function SendInputToken({
94
94
  chevron
95
95
  />
96
96
  </FlexView>
97
- {token && (
97
+ {token ? (
98
98
  <FlexView
99
99
  flexDirection="row"
100
100
  alignItems="center"
@@ -111,7 +111,7 @@ export function SendInputToken({
111
111
  <Link onPress={onMaxPress}>Max</Link>
112
112
  </FlexView>
113
113
  </FlexView>
114
- )}
114
+ ) : null}
115
115
  </FlexView>
116
116
  );
117
117
  }
@@ -10,10 +10,9 @@ import {
10
10
  UiUtil,
11
11
  Link
12
12
  } from '@reown/appkit-ui-react-native';
13
- import { type SwapTokenWithBalance } from '@reown/appkit-core-react-native';
14
13
 
15
14
  import styles from './styles';
16
- import { NumberUtil } from '@reown/appkit-common-react-native';
15
+ import { NumberUtil, type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
17
16
 
18
17
  export interface SwapInputProps {
19
18
  token?: SwapTokenWithBalance;
@@ -142,7 +141,7 @@ export function SwapInput({
142
141
  ? `~$${UiUtil.formatNumberToLocalString(marketValue, 6)}`
143
142
  : ''}
144
143
  </Text>
145
- {showMax && (
144
+ {showMax ? (
146
145
  <FlexView flexDirection="row" alignItems="center" justifyContent="center">
147
146
  <Text
148
147
  variant="small-400"
@@ -153,7 +152,7 @@ export function SwapInput({
153
152
  </Text>
154
153
  <Link onPress={handleMaxPress}>Max</Link>
155
154
  </FlexView>
156
- )}
155
+ ) : null}
157
156
  </FlexView>
158
157
  ) : null}
159
158
  </>
package/src/types.ts CHANGED
@@ -1,10 +1,7 @@
1
+ import { type OptionsControllerState } from '@reown/appkit-core-react-native';
1
2
  import {
2
3
  type Features,
3
- type OptionsControllerState,
4
- type UniversalProviderConfigOverride
5
- } from '@reown/appkit-core-react-native';
6
-
7
- import {
4
+ type UniversalProviderConfigOverride,
8
5
  type WalletConnector,
9
6
  type BlockchainAdapter,
10
7
  type Metadata,
@@ -3,10 +3,10 @@ import {
3
3
  type AppKitNetwork,
4
4
  type CaipNetworkId,
5
5
  type ChainNamespace,
6
+ type UniversalProviderConfigOverride,
6
7
  solana,
7
8
  solanaDevnet
8
9
  } from '@reown/appkit-common-react-native';
9
- import type { UniversalProviderConfigOverride } from '@reown/appkit-core-react-native';
10
10
 
11
11
  export const DEFAULT_METHODS = {
12
12
  solana: [
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  type AppKitNetwork,
3
3
  type CaipNetworkId,
4
+ type CaipNamespaces,
4
5
  ConstantsUtil,
5
6
  type Network
6
7
  } from '@reown/appkit-common-react-native';
7
- import type { CaipNamespaces } from '@reown/appkit-core-react-native';
8
8
 
9
9
  export const NetworkUtil = {
10
10
  formatNetwork(network: Network, projectId: string): AppKitNetwork {
@@ -21,7 +21,7 @@ export function AuthButtons({
21
21
  return (
22
22
  <>
23
23
  <UpgradeWalletButton onPress={onUpgradePress} style={styles.upgradeButton} />
24
- {socialProvider && (
24
+ {socialProvider ? (
25
25
  <ListSocial
26
26
  logo={socialProvider}
27
27
  logoHeight={32}
@@ -34,7 +34,7 @@ export function AuthButtons({
34
34
  {text}
35
35
  </Text>
36
36
  </ListSocial>
37
- )}
37
+ ) : null}
38
38
  </>
39
39
  );
40
40
  }
@@ -183,9 +183,9 @@ export function AccountDefaultView() {
183
183
 
184
184
  return (
185
185
  <>
186
- {showBack && (
186
+ {showBack ? (
187
187
  <IconLink icon="chevronLeft" style={styles.backIcon} onPress={RouterController.goBack} />
188
- )}
188
+ ) : null}
189
189
  <IconLink
190
190
  icon="close"
191
191
  style={styles.closeIcon}
@@ -211,7 +211,7 @@ export function AccountDefaultView() {
211
211
  truncate: 'middle'
212
212
  })}
213
213
  </Text>
214
- {showCopy && (
214
+ {showCopy ? (
215
215
  <IconLink
216
216
  icon="copy"
217
217
  size="md"
@@ -219,14 +219,14 @@ export function AccountDefaultView() {
219
219
  onPress={onCopyAddress}
220
220
  style={styles.copyButton}
221
221
  />
222
- )}
222
+ ) : null}
223
223
  </FlexView>
224
- {showBalance && (
224
+ {showBalance ? (
225
225
  <Text variant="paragraph-400" color="fg-200">
226
226
  {CoreHelperUtil.formatBalance(balance.amount, balance.symbol, 6)}
227
227
  </Text>
228
- )}
229
- {showExplorer && (
228
+ ) : null}
229
+ {showExplorer ? (
230
230
  <Button
231
231
  size="sm"
232
232
  variant="shade"
@@ -237,9 +237,9 @@ export function AccountDefaultView() {
237
237
  >
238
238
  Block Explorer
239
239
  </Button>
240
- )}
240
+ ) : null}
241
241
  <FlexView margin={['s', '0', '0', '0']}>
242
- {isAuth && (
242
+ {isAuth ? (
243
243
  <AuthButtons
244
244
  onUpgradePress={onUpgradePress}
245
245
  socialProvider={connection?.properties?.provider}
@@ -252,7 +252,7 @@ export function AccountDefaultView() {
252
252
  truncate: 'end'
253
253
  })}
254
254
  />
255
- )}
255
+ ) : null}
256
256
  <ListItem
257
257
  chevron
258
258
  icon="networkPlaceholder"
@@ -268,7 +268,7 @@ export function AccountDefaultView() {
268
268
  {activeNetwork?.name}
269
269
  </Text>
270
270
  </ListItem>
271
- {showBuy && (
271
+ {showBuy ? (
272
272
  <ListItem
273
273
  chevron
274
274
  icon="card"
@@ -280,8 +280,8 @@ export function AccountDefaultView() {
280
280
  >
281
281
  <Text color="fg-100">Buy crypto</Text>
282
282
  </ListItem>
283
- )}
284
- {showSend && (
283
+ ) : null}
284
+ {showSend ? (
285
285
  <ListItem
286
286
  chevron
287
287
  icon="paperplane"
@@ -293,8 +293,8 @@ export function AccountDefaultView() {
293
293
  >
294
294
  <Text color="fg-100">Send</Text>
295
295
  </ListItem>
296
- )}
297
- {showSwaps && (
296
+ ) : null}
297
+ {showSwaps ? (
298
298
  <ListItem
299
299
  chevron
300
300
  icon="recycleHorizontal"
@@ -306,8 +306,8 @@ export function AccountDefaultView() {
306
306
  >
307
307
  <Text color="fg-100">Swap</Text>
308
308
  </ListItem>
309
- )}
310
- {showActivity && (
309
+ ) : null}
310
+ {showActivity ? (
311
311
  <ListItem
312
312
  chevron
313
313
  icon="clock"
@@ -319,8 +319,8 @@ export function AccountDefaultView() {
319
319
  >
320
320
  <Text color="fg-100">Activity</Text>
321
321
  </ListItem>
322
- )}
323
- {showSwitchAccountType && (
322
+ ) : null}
323
+ {showSwitchAccountType ? (
324
324
  <ListItem
325
325
  chevron
326
326
  icon="swapHorizontal"
@@ -335,7 +335,7 @@ export function AccountDefaultView() {
335
335
  accountType === 'eoa' ? 'smart account' : 'EOA'
336
336
  }`}</Text>
337
337
  </ListItem>
338
- )}
338
+ ) : null}
339
339
  <ListItem
340
340
  icon="disconnect"
341
341
  onPress={onDisconnect}
@@ -1,12 +1,7 @@
1
1
  import { useState } from 'react';
2
- import {
3
- WcController,
4
- EventsController,
5
- RouterController,
6
- type WcWallet
7
- } from '@reown/appkit-core-react-native';
2
+ import { WcController, EventsController, RouterController } from '@reown/appkit-core-react-native';
3
+ import { type WcWallet, ConstantsUtil } from '@reown/appkit-common-react-native';
8
4
  import { FlexView, IconLink, SearchBar, Spacing, useTheme } from '@reown/appkit-ui-react-native';
9
- import { ConstantsUtil } from '@reown/appkit-common-react-native';
10
5
 
11
6
  import styles from './styles';
12
7
  import { useDebounceCallback } from '../../hooks/useDebounceCallback';
@@ -4,9 +4,9 @@ import {
4
4
  ApiController,
5
5
  AssetUtil,
6
6
  WcController,
7
- type WcControllerState,
8
- type WcWallet
7
+ type WcControllerState
9
8
  } from '@reown/appkit-core-react-native';
9
+ import { type WcWallet } from '@reown/appkit-common-react-native';
10
10
  import { ListItemLoader, ListWallet } from '@reown/appkit-ui-react-native';
11
11
  import { UiUtil } from '../../../utils/UiUtil';
12
12
  import { filterOutRecentWallets } from '../utils';
@@ -2,13 +2,13 @@ import { useSnapshot } from 'valtio';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
  import {
4
4
  OptionsController,
5
- type CustomWallet,
6
5
  type OptionsControllerState,
7
6
  ApiController,
8
7
  WcController,
9
8
  type WcControllerState,
10
9
  AssetUtil
11
10
  } from '@reown/appkit-core-react-native';
11
+ import { type CustomWallet } from '@reown/appkit-common-react-native';
12
12
  import { ListWallet } from '@reown/appkit-ui-react-native';
13
13
  import { filterOutRecentWallets } from '../utils';
14
14
 
@@ -1,10 +1,6 @@
1
1
  import { useSnapshot } from 'valtio';
2
- import {
3
- ApiController,
4
- AssetUtil,
5
- type WcWallet,
6
- WcController
7
- } from '@reown/appkit-core-react-native';
2
+ import { ApiController, AssetUtil, WcController } from '@reown/appkit-core-react-native';
3
+ import { type WcWallet } from '@reown/appkit-common-react-native';
8
4
  import { ListWallet } from '@reown/appkit-ui-react-native';
9
5
  import type { StyleProp, ViewStyle } from 'react-native';
10
6
 
@@ -40,13 +40,13 @@ export function SocialLoginList({ options, disabled }: SocialLoginListProps) {
40
40
 
41
41
  return (
42
42
  <FlexView padding={['xs', 's', '0', 's']}>
43
- {topSocial && (
43
+ {topSocial ? (
44
44
  <ListSocial logo={topSocial} disabled={disabled} onPress={() => onItemPress(topSocial)}>
45
45
  <Text style={styles.topDescription} color={disabled ? 'fg-300' : 'fg-100'}>
46
46
  {`Continue with ${StringUtil.capitalize(topSocial)}`}
47
47
  </Text>
48
48
  </ListSocial>
49
- )}
49
+ ) : null}
50
50
  <FlexView flexDirection="row" justifyContent="space-between" margin={['xs', '0', '0', '0']}>
51
51
  {bottomSocials?.map((social: SocialProvider, index) => (
52
52
  <LogoSelect
@@ -61,14 +61,14 @@ export function SocialLoginList({ options, disabled }: SocialLoginListProps) {
61
61
  ]}
62
62
  />
63
63
  ))}
64
- {showMoreButton && (
64
+ {showMoreButton ? (
65
65
  <LogoSelect
66
66
  logo="more"
67
67
  disabled={disabled}
68
68
  style={[styles.socialItem, styles.socialItemLast]}
69
69
  onPress={onMorePress}
70
70
  />
71
- )}
71
+ ) : null}
72
72
  </FlexView>
73
73
  </FlexView>
74
74
  );
@@ -5,11 +5,10 @@ import {
5
5
  EventUtil,
6
6
  EventsController,
7
7
  OptionsController,
8
- RouterController,
9
- type WcWallet
8
+ RouterController
10
9
  } from '@reown/appkit-core-react-native';
10
+ import { type WcWallet, ConstantsUtil } from '@reown/appkit-common-react-native';
11
11
  import { FlexView, Icon, ListItem, Separator, Text } from '@reown/appkit-ui-react-native';
12
- import { ConstantsUtil } from '@reown/appkit-common-react-native';
13
12
  import { useCustomDimensions } from '../../hooks/useCustomDimensions';
14
13
  import { Placeholder } from '../../partials/w3m-placeholder';
15
14
  import { CustomWalletList } from './components/custom-wallet-list';
@@ -59,22 +58,22 @@ export function ConnectView() {
59
58
  return (
60
59
  <ScrollView style={{ paddingHorizontal: padding }} bounces={false}>
61
60
  <FlexView padding={['xs', '0', '2xl', '0']}>
62
- {isSocialEnabled && (
61
+ {isSocialEnabled ? (
63
62
  <>
64
63
  <SocialLoginList options={features?.socials} />
65
64
  <Separator text="or" style={styles.socialSeparator} />
66
65
  </>
67
- )}
66
+ ) : null}
68
67
 
69
68
  <FlexView padding={['0', 's', 'xs', 's']}>
70
- {showConnectWalletsButton && (
69
+ {showConnectWalletsButton ? (
71
70
  <ListItem contentStyle={styles.connectWalletButton} onPress={onViewAllPress}>
72
71
  <Icon name="wallet" size="lg" />
73
72
  <Text variant="paragraph-500">Continue with a wallet</Text>
74
73
  <View style={styles.connectWalletEmpty} />
75
74
  </ListItem>
76
- )}
77
- {showLoadingError && (
75
+ ) : null}
76
+ {showLoadingError ? (
78
77
  <FlexView alignItems="center" justifyContent="center" margin={['l', '0', '0', '0']}>
79
78
  <Placeholder
80
79
  icon="warningCircle"
@@ -87,15 +86,15 @@ export function ConnectView() {
87
86
  />
88
87
  <Separator style={styles.socialSeparator} />
89
88
  </FlexView>
90
- )}
91
- {showList && (
89
+ ) : null}
90
+ {showList ? (
92
91
  <>
93
92
  <RecentWalletList itemStyle={styles.item} onWalletPress={onWalletPress} />
94
93
  <AllWalletList itemStyle={styles.item} onWalletPress={onWalletPress} />
95
94
  <CustomWalletList itemStyle={styles.item} onWalletPress={onWalletPress} />
96
95
  <AllWalletsButton itemStyle={styles.item} onPress={onViewAllPress} />
97
96
  </>
98
- )}
97
+ ) : null}
99
98
  </FlexView>
100
99
  </FlexView>
101
100
  </ScrollView>
@@ -1,4 +1,4 @@
1
- import type { WcWallet } from '@reown/appkit-core-react-native';
1
+ import { type WcWallet } from '@reown/appkit-common-react-native';
2
2
 
3
3
  export const filterOutRecentWallets = (
4
4
  recentWallets?: WcWallet[],
@@ -92,7 +92,7 @@ export function ConnectingExternalView() {
92
92
  imageSrc={AssetUtil.getWalletImage(data?.wallet)}
93
93
  imageHeaders={ApiController._getApiHeaders()}
94
94
  />
95
- {errorType && (
95
+ {errorType ? (
96
96
  <IconBox
97
97
  icon={'close'}
98
98
  border
@@ -102,7 +102,7 @@ export function ConnectingExternalView() {
102
102
  iconColor="error-100"
103
103
  style={styles.errorIcon}
104
104
  />
105
- )}
105
+ ) : null}
106
106
  </LoadingThumbnail>
107
107
  <ConnectingBody title={bodyMessage.title} description={bodyMessage.description} />
108
108
  {errorType !== 'not_installed' && (