@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.
- package/lib/commonjs/AppKit.js.map +1 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js +13 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/commonjs/hooks/useAppKitEvents.js.map +1 -1
- package/lib/commonjs/hooks/useProvider.js +29 -10
- package/lib/commonjs/hooks/useProvider.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-activity/index.js +5 -5
- package/lib/commonjs/partials/w3m-account-activity/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-tokens/index.js +4 -4
- package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js +5 -5
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-body/index.js +2 -2
- package/lib/commonjs/partials/w3m-connecting-body/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +6 -6
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +23 -3
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js +4 -4
- package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-placeholder/index.js +5 -5
- package/lib/commonjs/partials/w3m-placeholder/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/index.js +2 -2
- package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-send-input-token/index.js +2 -2
- package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-swap-input/index.js +2 -2
- package/lib/commonjs/partials/w3m-swap-input/index.js.map +1 -1
- package/lib/commonjs/types.js +6 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js +2 -2
- package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +15 -15
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js +4 -4
- package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +7 -7
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +2 -2
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +2 -2
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-network-switch-view/index.js +2 -2
- package/lib/commonjs/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js +15 -15
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js +4 -4
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js +4 -4
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/utils.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js +5 -5
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js +2 -2
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js +2 -2
- package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js +4 -4
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js +2 -2
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Quote.js +4 -4
- package/lib/commonjs/views/w3m-onramp-view/components/Quote.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/index.js +3 -3
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/AppKit.js.map +1 -1
- package/lib/module/connectors/WalletConnectConnector.js +13 -1
- package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/module/hooks/useAppKitEvents.js.map +1 -1
- package/lib/module/hooks/useProvider.js +30 -10
- package/lib/module/hooks/useProvider.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/partials/w3m-account-activity/index.js +5 -5
- package/lib/module/partials/w3m-account-activity/index.js.map +1 -1
- package/lib/module/partials/w3m-account-tokens/index.js +4 -4
- package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/module/partials/w3m-account-wallet-features/index.js +5 -5
- package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-body/index.js +2 -2
- package/lib/module/partials/w3m-connecting-body/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +6 -6
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +24 -4
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/index.js +4 -4
- package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/module/partials/w3m-placeholder/index.js +5 -5
- package/lib/module/partials/w3m-placeholder/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/index.js +2 -2
- package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/module/partials/w3m-send-input-token/index.js +2 -2
- package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
- package/lib/module/partials/w3m-swap-input/index.js +2 -2
- package/lib/module/partials/w3m-swap-input/index.js.map +1 -1
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/HelpersUtil.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/components/auth-buttons.js +2 -2
- package/lib/module/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +15 -15
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/social-login-list.js +4 -4
- package/lib/module/views/w3m-connect-view/components/social-login-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +7 -7
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +2 -2
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +2 -2
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/module/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-network-switch-view/index.js +2 -2
- package/lib/module/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-checkout-view/index.js +15 -15
- package/lib/module/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js +4 -4
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/index.js +4 -4
- package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/utils.js.map +1 -1
- package/lib/module/views/w3m-onramp-transaction-view/index.js +5 -5
- package/lib/module/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Currency.js +2 -2
- package/lib/module/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js +2 -2
- package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/PaymentButton.js +4 -4
- package/lib/module/views/w3m-onramp-view/components/PaymentButton.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js +2 -2
- package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Quote.js +4 -4
- package/lib/module/views/w3m-onramp-view/components/Quote.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -1
- package/lib/module/views/w3m-swap-view/index.js +3 -3
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/typescript/AppKit.d.ts +2 -25
- package/lib/typescript/AppKit.d.ts.map +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
- package/lib/typescript/hooks/useAppKitEvents.d.ts +4 -3
- package/lib/typescript/hooks/useAppKitEvents.d.ts.map +1 -1
- package/lib/typescript/hooks/useProvider.d.ts +28 -1
- package/lib/typescript/hooks/useProvider.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-header/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-connecting-header/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-swap-input/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-swap-input/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +156 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/utils/HelpersUtil.d.ts +1 -2
- package/lib/typescript/utils/HelpersUtil.d.ts.map +1 -1
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -2
- package/lib/typescript/utils/NetworkUtil.d.ts.map +1 -1
- package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts +1 -1
- package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts +1 -1
- package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts +1 -1
- package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-connect-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-get-wallet-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/SelectPaymentModal.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/AppKit.ts +3 -35
- package/src/connectors/WalletConnectConnector.ts +17 -2
- package/src/hooks/useAppKitEvents.ts +2 -5
- package/src/hooks/useProvider.ts +30 -9
- package/src/index.ts +1 -0
- package/src/partials/w3m-account-activity/index.tsx +5 -5
- package/src/partials/w3m-account-tokens/index.tsx +2 -2
- package/src/partials/w3m-account-wallet-features/index.tsx +6 -6
- package/src/partials/w3m-all-wallets-list/index.tsx +2 -2
- package/src/partials/w3m-all-wallets-search/index.tsx +2 -6
- package/src/partials/w3m-connecting-body/index.tsx +2 -2
- package/src/partials/w3m-connecting-header/index.tsx +1 -1
- package/src/partials/w3m-connecting-mobile/index.tsx +6 -6
- package/src/partials/w3m-connecting-qrcode/index.tsx +14 -4
- package/src/partials/w3m-connecting-web/index.tsx +4 -4
- package/src/partials/w3m-placeholder/index.tsx +8 -8
- package/src/partials/w3m-selector-modal/index.tsx +2 -2
- package/src/partials/w3m-send-input-token/index.tsx +2 -2
- package/src/partials/w3m-swap-input/index.tsx +3 -4
- package/src/types.ts +187 -0
- package/src/utils/HelpersUtil.ts +1 -1
- package/src/utils/NetworkUtil.ts +1 -1
- package/src/views/w3m-account-default-view/components/auth-buttons.tsx +2 -2
- package/src/views/w3m-account-default-view/index.tsx +20 -20
- package/src/views/w3m-all-wallets-view/index.tsx +2 -7
- package/src/views/w3m-connect-view/components/all-wallet-list.tsx +2 -2
- package/src/views/w3m-connect-view/components/custom-wallet-list.tsx +1 -1
- package/src/views/w3m-connect-view/components/recent-wallet-list.tsx +2 -6
- package/src/views/w3m-connect-view/components/social-login-list.tsx +4 -4
- package/src/views/w3m-connect-view/index.tsx +10 -11
- package/src/views/w3m-connect-view/utils.ts +1 -1
- package/src/views/w3m-connecting-external-view/index.tsx +2 -2
- package/src/views/w3m-connecting-social-view/index.tsx +2 -2
- package/src/views/w3m-connecting-view/index.tsx +1 -1
- package/src/views/w3m-get-wallet-view/index.tsx +2 -1
- package/src/views/w3m-network-switch-view/index.tsx +2 -2
- package/src/views/w3m-onramp-checkout-view/index.tsx +15 -15
- package/src/views/w3m-onramp-settings-view/components/Country.tsx +6 -4
- package/src/views/w3m-onramp-settings-view/index.tsx +6 -9
- package/src/views/w3m-onramp-settings-view/utils.ts +2 -5
- package/src/views/w3m-onramp-transaction-view/index.tsx +6 -6
- package/src/views/w3m-onramp-view/components/Currency.tsx +3 -3
- package/src/views/w3m-onramp-view/components/CurrencyInput.tsx +2 -2
- package/src/views/w3m-onramp-view/components/PaymentButton.tsx +4 -4
- package/src/views/w3m-onramp-view/components/PaymentMethod.tsx +4 -3
- package/src/views/w3m-onramp-view/components/Quote.tsx +4 -5
- package/src/views/w3m-onramp-view/components/SelectPaymentModal.tsx +2 -5
- package/src/views/w3m-onramp-view/index.tsx +5 -2
- package/src/views/w3m-swap-view/components/select-token-view/index.tsx +3 -3
- package/src/views/w3m-swap-view/components/select-token-view/utils.ts +2 -1
- package/src/views/w3m-swap-view/index.tsx +5 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-get-wallet-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-get-wallet-view/index.tsx"],"names":[],"mappings":"AAOA,wBAAgB,aAAa,4CA2C5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Country.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-settings-view/components/Country.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Country.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-settings-view/components/Country.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAYvE,UAAU,KAAK;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA2BzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-settings-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-settings-view/index.tsx"],"names":[],"mappings":"AAwBA,wBAAgB,kBAAkB,4CAqHjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type OnRampCountry, type OnRampFiatCurrency } from '@reown/appkit-
|
|
1
|
+
import { type OnRampCountry, type OnRampFiatCurrency } from '@reown/appkit-common-react-native';
|
|
2
2
|
type ModalType = 'country' | 'paymentCurrency';
|
|
3
3
|
export declare const getItemHeight: (type?: ModalType) => number;
|
|
4
4
|
export declare const getModalTitle: (type?: ModalType) => string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-settings-view/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-settings-view/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGhG,KAAK,SAAS,GAAG,SAAS,GAAG,iBAAiB,CAAC;AAwB/C,eAAO,MAAM,aAAa,UAAW,SAAS,WAE7C,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,SAAS,uBAE7C,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,SAAS,uBAEzD,CAAC;AAeF,eAAO,MAAM,eAAe,SAAU,SAAS,GAAG,SAAS,SAAS,MAAM,QAAQ,GAAG,WAEpF,CAAC;AAEF,eAAO,MAAM,aAAa,UACjB,QAAQ,SAAS,EAAE,QAAQ,CAAC,gBACrB,MAAM,mBACH,OAAO,2CAwBzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type OnRampFiatCurrency, type OnRampCryptoCurrency } from '@reown/appkit-
|
|
1
|
+
import { type OnRampFiatCurrency, type OnRampCryptoCurrency } from '@reown/appkit-common-react-native';
|
|
2
2
|
export declare const ITEM_HEIGHT = 60;
|
|
3
3
|
interface Props {
|
|
4
4
|
onPress: (item: OnRampFiatCurrency | OnRampCryptoCurrency) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-view/components/Currency.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,
|
|
1
|
+
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-view/components/Currency.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,mCAAmC,CAAC;AAY3C,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,UAAU,KAAK;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,kBAAkB,GAAG,oBAAoB,KAAK,IAAI,CAAC;IACnE,IAAI,EAAE,kBAAkB,GAAG,oBAAoB,CAAC;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,2CAmCnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethod.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-view/components/PaymentMethod.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaymentMethod.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-view/components/PaymentMethod.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAa7E,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,UAAU,KAAK;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC7C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,2CA6CvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Quote.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-view/components/Quote.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Quote.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-view/components/Quote.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAcjF,UAAU,KAAK;IACb,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,2CA8CtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectPaymentModal.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-view/components/SelectPaymentModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectPaymentModal.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-onramp-view/components/SelectPaymentModal.tsx"],"names":[],"mappings":"AAkBA,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAID,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,uBAAuB,2CA+JtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-view/index.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,UAAU,4CAqOzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const getPurchaseCurrencies: (searchValue?: string, filterSelected?: boolean) => import("@reown/appkit-
|
|
1
|
+
export declare const getPurchaseCurrencies: (searchValue?: string, filterSelected?: boolean) => import("@reown/appkit-common-react-native").OnRampCryptoCurrency[];
|
|
2
2
|
export declare const getQuotesDebounced: () => void;
|
|
3
3
|
export declare const getNetworkId: () => string | undefined;
|
|
4
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-view/utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB,iBAAkB,MAAM,mBAAmB,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-view/utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB,iBAAkB,MAAM,mBAAmB,OAAO,uEAuBnF,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAExB,CAAC;AAER,eAAO,MAAM,YAAY,QAAO,MAAM,GAAG,SAiBxC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
-
import { type SwapInputTarget } from '@reown/appkit-
|
|
2
|
+
import { type SwapInputTarget } from '@reown/appkit-common-react-native';
|
|
3
3
|
interface Props {
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
type?: SwapInputTarget;
|
|
@@ -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,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
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,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAqBtB,OAAO,EAAE,KAAK,eAAe,EAA6B,MAAM,mCAAmC,CAAC;AAOpG,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,2CAoIlE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SwapTokenWithBalance } from '@reown/appkit-
|
|
1
|
+
import { type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
2
2
|
export declare function filterTokens(tokens?: SwapTokenWithBalance[], searchValue?: string): SwapTokenWithBalance[];
|
|
3
3
|
export declare function createSections(isSourceToken: boolean, searchValue: string, balances?: SwapTokenWithBalance[]): {
|
|
4
4
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-view/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-view/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAG9E,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,oBAAoB,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,0BAcjF;AAED,wBAAgB,cAAc,CAC5B,aAAa,EAAE,OAAO,EACtB,WAAW,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,oBAAoB,EAAE;;;IAgBlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,QAAQ,4CA6LvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-react-native",
|
|
3
|
-
"version": "0.0.0-feat-multichain-
|
|
3
|
+
"version": "0.0.0-feat-multichain-20250805142032",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"types": "lib/typescript/index.d.ts",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@reown/appkit-common-react-native": "0.0.0-feat-multichain-
|
|
42
|
-
"@reown/appkit-core-react-native": "0.0.0-feat-multichain-
|
|
43
|
-
"@reown/appkit-siwe-react-native": "0.0.0-feat-multichain-
|
|
44
|
-
"@reown/appkit-ui-react-native": "0.0.0-feat-multichain-
|
|
41
|
+
"@reown/appkit-common-react-native": "0.0.0-feat-multichain-20250805142032",
|
|
42
|
+
"@reown/appkit-core-react-native": "0.0.0-feat-multichain-20250805142032",
|
|
43
|
+
"@reown/appkit-siwe-react-native": "0.0.0-feat-multichain-20250805142032",
|
|
44
|
+
"@reown/appkit-ui-react-native": "0.0.0-feat-multichain-20250805142032",
|
|
45
45
|
"@walletconnect/universal-provider": "2.21.5",
|
|
46
46
|
"valtio": "2.1.5"
|
|
47
47
|
},
|
package/src/AppKit.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
type Features,
|
|
3
2
|
EventsController,
|
|
4
3
|
ModalController,
|
|
5
4
|
ConnectionsController,
|
|
@@ -7,15 +6,13 @@ import {
|
|
|
7
6
|
RouterController,
|
|
8
7
|
TransactionsController,
|
|
9
8
|
StorageUtil,
|
|
10
|
-
type OptionsControllerState,
|
|
11
9
|
ThemeController,
|
|
12
10
|
WcController,
|
|
13
11
|
SwapController,
|
|
14
12
|
OnRampController,
|
|
15
13
|
CoreHelperUtil,
|
|
16
14
|
SendController,
|
|
17
|
-
BlockchainApiController
|
|
18
|
-
type UniversalProviderConfigOverride
|
|
15
|
+
BlockchainApiController
|
|
19
16
|
} from '@reown/appkit-core-react-native';
|
|
20
17
|
|
|
21
18
|
import {
|
|
@@ -24,24 +21,17 @@ import {
|
|
|
24
21
|
type ProposalNamespaces,
|
|
25
22
|
type ConnectorType,
|
|
26
23
|
type Namespaces,
|
|
27
|
-
type Metadata,
|
|
28
24
|
type CaipNetworkId,
|
|
29
25
|
type AppKitNetwork,
|
|
30
26
|
type Provider,
|
|
31
|
-
type ThemeVariables,
|
|
32
|
-
type ThemeMode,
|
|
33
27
|
type WalletInfo,
|
|
34
|
-
type Network,
|
|
35
28
|
type ChainNamespace,
|
|
36
|
-
type Storage,
|
|
37
29
|
type AppKitConnectOptions,
|
|
38
|
-
type AppKitSIWEClient,
|
|
39
30
|
type ConnectionProperties,
|
|
40
31
|
type AccountType,
|
|
41
32
|
type AppKitOpenOptions,
|
|
42
33
|
ConstantsUtil,
|
|
43
|
-
type Connection
|
|
44
|
-
type Tokens
|
|
34
|
+
type Connection
|
|
45
35
|
} from '@reown/appkit-common-react-native';
|
|
46
36
|
import { SIWEController } from '@reown/appkit-siwe-react-native';
|
|
47
37
|
|
|
@@ -49,29 +39,7 @@ import { WalletConnectConnector } from './connectors/WalletConnectConnector';
|
|
|
49
39
|
import { WcHelpersUtil } from './utils/HelpersUtil';
|
|
50
40
|
import { NetworkUtil } from './utils/NetworkUtil';
|
|
51
41
|
import { RouterUtil } from './utils/RouterUtil';
|
|
52
|
-
|
|
53
|
-
interface AppKitConfig {
|
|
54
|
-
projectId: string;
|
|
55
|
-
metadata: Metadata;
|
|
56
|
-
adapters: BlockchainAdapter[];
|
|
57
|
-
networks: Network[];
|
|
58
|
-
storage: Storage;
|
|
59
|
-
extraConnectors?: WalletConnector[];
|
|
60
|
-
clipboardClient?: OptionsControllerState['clipboardClient'];
|
|
61
|
-
includeWalletIds?: OptionsControllerState['includeWalletIds'];
|
|
62
|
-
excludeWalletIds?: OptionsControllerState['excludeWalletIds'];
|
|
63
|
-
featuredWalletIds?: OptionsControllerState['featuredWalletIds'];
|
|
64
|
-
customWallets?: OptionsControllerState['customWallets'];
|
|
65
|
-
tokens?: Tokens;
|
|
66
|
-
enableAnalytics?: OptionsControllerState['enableAnalytics'];
|
|
67
|
-
debug?: OptionsControllerState['debug'];
|
|
68
|
-
themeMode?: ThemeMode;
|
|
69
|
-
themeVariables?: ThemeVariables;
|
|
70
|
-
siweConfig?: AppKitSIWEClient;
|
|
71
|
-
defaultNetwork?: Network;
|
|
72
|
-
features?: Features;
|
|
73
|
-
universalProviderConfigOverride?: UniversalProviderConfigOverride;
|
|
74
|
-
}
|
|
42
|
+
import { type AppKitConfig } from './types';
|
|
75
43
|
|
|
76
44
|
export class AppKit {
|
|
77
45
|
private projectId: string;
|
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
type ConnectOptions,
|
|
12
12
|
type ConnectorInitOptions,
|
|
13
13
|
type Metadata,
|
|
14
|
-
type ConnectionProperties
|
|
14
|
+
type ConnectionProperties,
|
|
15
|
+
type RequestArguments
|
|
15
16
|
} from '@reown/appkit-common-react-native';
|
|
16
17
|
import { getDidAddress, getDidChainId, SIWEController } from '@reown/appkit-siwe-react-native';
|
|
17
18
|
|
|
@@ -201,11 +202,25 @@ export class WalletConnectConnector extends WalletConnector {
|
|
|
201
202
|
return this.namespaces;
|
|
202
203
|
}
|
|
203
204
|
|
|
204
|
-
override getProvider(): Provider {
|
|
205
|
+
override getProvider(namespace?: ChainNamespace): Provider {
|
|
205
206
|
if (!this.provider) {
|
|
206
207
|
throw new Error('WalletConnectConnector: Provider not initialized. Call init() first.');
|
|
207
208
|
}
|
|
208
209
|
|
|
210
|
+
const provider = this.provider as IUniversalProvider;
|
|
211
|
+
|
|
212
|
+
if (namespace) {
|
|
213
|
+
const _chainId = this.getChainId(namespace);
|
|
214
|
+
|
|
215
|
+
// @ts-ignore
|
|
216
|
+
return {
|
|
217
|
+
...provider,
|
|
218
|
+
request: (args: RequestArguments, chainId?: CaipNetworkId) => {
|
|
219
|
+
return provider.request(args, chainId || _chainId);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
|
|
209
224
|
return this.provider;
|
|
210
225
|
}
|
|
211
226
|
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { useSnapshot } from 'valtio';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
type EventName,
|
|
6
|
-
type EventsControllerState
|
|
7
|
-
} from '@reown/appkit-core-react-native';
|
|
3
|
+
import { EventsController, type EventsControllerState } from '@reown/appkit-core-react-native';
|
|
4
|
+
import { type EventName } from '@reown/appkit-common-react-native';
|
|
8
5
|
import { useAppKit } from './useAppKit';
|
|
9
6
|
|
|
10
7
|
export function useAppKitEvents(callback?: (newEvent: EventsControllerState) => void) {
|
package/src/hooks/useProvider.ts
CHANGED
|
@@ -2,24 +2,45 @@ import { useSnapshot } from 'valtio';
|
|
|
2
2
|
import { ConnectionsController } from '@reown/appkit-core-react-native';
|
|
3
3
|
import type { Provider, ChainNamespace } from '@reown/appkit-common-react-native';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Interface representing the result of the useProvider hook
|
|
7
|
+
*/
|
|
5
8
|
interface ProviderResult {
|
|
9
|
+
/** The active connection provider instance */
|
|
6
10
|
provider?: Provider;
|
|
11
|
+
/** The chain namespace supported by the provider */
|
|
7
12
|
providerType?: ChainNamespace;
|
|
8
13
|
}
|
|
9
14
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Hook that returns the active connection provider and its supported chain namespace.
|
|
17
|
+
*
|
|
18
|
+
* This hook accesses the current connection and returns the provider instance along with its supported namespace.
|
|
19
|
+
*
|
|
20
|
+
* @returns {ProviderResult} An object containing:
|
|
21
|
+
* - `provider`: The active connection provider instance, or undefined if no connection exists
|
|
22
|
+
* - `providerType`: The chain namespace supported by the provider, or undefined if no connection exists
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const { provider, providerType } = useProvider();
|
|
27
|
+
*
|
|
28
|
+
* if (provider) {
|
|
29
|
+
* // Use the provider for blockchain operations
|
|
30
|
+
* const balance = await provider.request({
|
|
31
|
+
* method: 'eth_getBalance',
|
|
32
|
+
* params: [address, 'latest']
|
|
33
|
+
* });
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export function useProvider(): ProviderResult {
|
|
38
|
+
const { connection } = useSnapshot(ConnectionsController.state);
|
|
18
39
|
|
|
19
40
|
if (!connection) return { provider: undefined, providerType: undefined };
|
|
20
41
|
|
|
21
42
|
return {
|
|
22
|
-
provider: connection.adapter.
|
|
43
|
+
provider: connection.adapter.getProvider(),
|
|
23
44
|
providerType: connection.adapter.getSupportedNamespace()
|
|
24
45
|
};
|
|
25
46
|
}
|
package/src/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { AppKit } from './modal/w3m-modal';
|
|
|
17
17
|
/********** Types **********/
|
|
18
18
|
export type * from '@reown/appkit-core-react-native';
|
|
19
19
|
export type { AppKitNetwork, Storage } from '@reown/appkit-common-react-native';
|
|
20
|
+
export type { AppKitConfig } from './types';
|
|
20
21
|
|
|
21
22
|
/****** Hooks *******/
|
|
22
23
|
export { useAppKit } from './hooks/useAppKit';
|
|
@@ -186,16 +186,16 @@ export function AccountActivity({ style }: Props) {
|
|
|
186
186
|
))}
|
|
187
187
|
</View>
|
|
188
188
|
))}
|
|
189
|
-
{(next || loading) && !refreshing
|
|
189
|
+
{(next || loading) && !refreshing ? (
|
|
190
190
|
<FlexView style={styles.footer} alignItems="center" justifyContent="center">
|
|
191
|
-
{next && !loading
|
|
191
|
+
{next && !loading ? (
|
|
192
192
|
<Link size="md" style={styles.loadMoreButton} onPress={handleLoadMore}>
|
|
193
193
|
Load more
|
|
194
194
|
</Link>
|
|
195
|
-
)}
|
|
196
|
-
{loading
|
|
195
|
+
) : null}
|
|
196
|
+
{loading ? <LoadingSpinner color="accent-100" /> : null}
|
|
197
197
|
</FlexView>
|
|
198
|
-
)}
|
|
198
|
+
) : null}
|
|
199
199
|
</ScrollView>
|
|
200
200
|
);
|
|
201
201
|
}
|
|
@@ -63,7 +63,7 @@ export function AccountTokens({ style, isLoading }: Props) {
|
|
|
63
63
|
</Text>
|
|
64
64
|
</FlexView>
|
|
65
65
|
</ListItem>
|
|
66
|
-
{isLoading
|
|
66
|
+
{isLoading ? <LoadingSpinner size="sm" style={styles.loadingSpinner} /> : null}
|
|
67
67
|
</>
|
|
68
68
|
);
|
|
69
69
|
}
|
|
@@ -93,7 +93,7 @@ export function AccountTokens({ style, isLoading }: Props) {
|
|
|
93
93
|
pressable={false}
|
|
94
94
|
/>
|
|
95
95
|
))}
|
|
96
|
-
{isLoading
|
|
96
|
+
{isLoading ? <LoadingSpinner size="sm" style={styles.loadingSpinner} /> : null}
|
|
97
97
|
</ScrollView>
|
|
98
98
|
);
|
|
99
99
|
}
|
|
@@ -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
|
-
|
|
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
|
}
|
|
@@ -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}
|
|
@@ -6,9 +6,11 @@ import {
|
|
|
6
6
|
OptionsController,
|
|
7
7
|
SnackController
|
|
8
8
|
} from '@reown/appkit-core-react-native';
|
|
9
|
-
import {
|
|
9
|
+
import { ConstantsUtil } from '@reown/appkit-common-react-native';
|
|
10
|
+
import { FlexView, Link, QrCode, Text, Spacing, Icon } from '@reown/appkit-ui-react-native';
|
|
10
11
|
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
11
12
|
import styles from './styles';
|
|
13
|
+
import { Linking, Pressable } from 'react-native';
|
|
12
14
|
|
|
13
15
|
export function ConnectingQrCode() {
|
|
14
16
|
const { wcUri } = useSnapshot(WcController.state);
|
|
@@ -50,9 +52,9 @@ export function ConnectingQrCode() {
|
|
|
50
52
|
padding={['xl', 'xl', '2xl', 'xl']}
|
|
51
53
|
>
|
|
52
54
|
<QrCode size={qrSize} uri={wcUri} testID="qr-code" />
|
|
53
|
-
<FlexView alignItems="center" margin=
|
|
55
|
+
<FlexView alignItems="center" margin={['m', 'm', '3xl', 'm']}>
|
|
54
56
|
<Text variant="paragraph-500">Scan this QR code with your phone</Text>
|
|
55
|
-
{showCopy
|
|
57
|
+
{showCopy ? (
|
|
56
58
|
<Link
|
|
57
59
|
iconLeft="copySmall"
|
|
58
60
|
color="fg-200"
|
|
@@ -62,8 +64,16 @@ export function ConnectingQrCode() {
|
|
|
62
64
|
>
|
|
63
65
|
Copy link
|
|
64
66
|
</Link>
|
|
65
|
-
)}
|
|
67
|
+
) : null}
|
|
66
68
|
</FlexView>
|
|
69
|
+
<Pressable onPress={() => Linking.openURL(ConstantsUtil.REOWN_URL)}>
|
|
70
|
+
<FlexView alignItems="center" justifyContent="center" flexDirection="row" columnGap="2xs">
|
|
71
|
+
<Text variant="small-500" color="fg-100">
|
|
72
|
+
UX by
|
|
73
|
+
</Text>
|
|
74
|
+
<Icon name="reown" color="fg-150" width={100} height={30} />
|
|
75
|
+
</FlexView>
|
|
76
|
+
</Pressable>
|
|
67
77
|
</FlexView>
|
|
68
78
|
);
|
|
69
79
|
}
|
|
@@ -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
|
);
|