@reown/appkit-react-native 0.0.0-feat-multichain-20250818154639 → 0.0.0-feat-multichain-20250903132047
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 +55 -40
- package/lib/commonjs/AppKit.js.map +1 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js +6 -3
- package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/commonjs/modal/w3m-modal/index.js +1 -6
- package/lib/commonjs/modal/w3m-modal/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-router/index.js +7 -4
- package/lib/commonjs/modal/w3m-router/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/Loading.js +7 -97
- package/lib/commonjs/partials/w3m-all-wallets-list/components/Loading.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletItem.js +2 -8
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletItem.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js +90 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js +7 -43
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js +7 -4
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js +7 -39
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +4 -4
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/styles.js +2 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +6 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js +1 -0
- package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/styles.js +3 -0
- package/lib/commonjs/partials/w3m-connecting-web/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/index.js +4 -3
- package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/index.js +69 -56
- package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/styles.js +9 -11
- package/lib/commonjs/partials/w3m-selector-modal/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +2 -2
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +5 -22
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +4 -4
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/styles.js +2 -1
- package/lib/commonjs/views/w3m-connecting-external-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-siwe-view/index.js +56 -54
- package/lib/commonjs/views/w3m-connecting-siwe-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-siwe-view/styles.js +3 -7
- package/lib/commonjs/views/w3m-connecting-siwe-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +36 -30
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/styles.js +3 -0
- package/lib/commonjs/views/w3m-connecting-social-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-networks-view/index.js +7 -4
- package/lib/commonjs/views/w3m-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js +160 -152
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js +4 -4
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/styles.js +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js +3 -2
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js +6 -4
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/styles.js +4 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js +3 -2
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Header.js +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js +5 -2
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/index.js +4 -3
- package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/styles.js +3 -0
- package/lib/commonjs/views/w3m-onramp-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-preview-view/styles.js +0 -3
- package/lib/commonjs/views/w3m-swap-preview-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js +157 -0
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -0
- package/lib/commonjs/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.js +6 -2
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/styles.js.map +1 -0
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/utils.js.map +1 -0
- package/lib/commonjs/views/w3m-swap-view/index.js +9 -12
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/styles.js +0 -8
- package/lib/commonjs/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js +5 -11
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/styles.js +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js +2 -4
- package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js +1 -2
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js +4 -2
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/index.js +5 -2
- package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js +0 -3
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/module/AppKit.js +55 -40
- package/lib/module/AppKit.js.map +1 -1
- package/lib/module/connectors/WalletConnectConnector.js +6 -3
- package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/module/modal/w3m-modal/index.js +2 -7
- package/lib/module/modal/w3m-modal/index.js.map +1 -1
- package/lib/module/modal/w3m-router/index.js +7 -4
- package/lib/module/modal/w3m-router/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/Loading.js +8 -98
- package/lib/module/partials/w3m-all-wallets-list/components/Loading.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/WalletItem.js +2 -8
- package/lib/module/partials/w3m-all-wallets-list/components/WalletItem.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js +86 -0
- package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -0
- package/lib/module/partials/w3m-all-wallets-list/index.js +7 -43
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/styles.js +7 -4
- package/lib/module/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/index.js +8 -40
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +4 -4
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/styles.js +2 -1
- package/lib/module/partials/w3m-connecting-mobile/styles.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +6 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/index.js +1 -0
- package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/styles.js +3 -0
- package/lib/module/partials/w3m-connecting-web/styles.js.map +1 -1
- package/lib/module/partials/w3m-header/index.js +4 -3
- package/lib/module/partials/w3m-header/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/index.js +71 -58
- package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/styles.js +9 -11
- package/lib/module/partials/w3m-selector-modal/styles.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +2 -2
- package/lib/module/views/w3m-all-wallets-view/index.js +6 -23
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +1 -1
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +4 -4
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/styles.js +2 -1
- package/lib/module/views/w3m-connecting-external-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connecting-siwe-view/index.js +58 -56
- package/lib/module/views/w3m-connecting-siwe-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-siwe-view/styles.js +3 -7
- package/lib/module/views/w3m-connecting-siwe-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +36 -30
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/styles.js +3 -0
- package/lib/module/views/w3m-connecting-social-view/styles.js.map +1 -1
- package/lib/module/views/w3m-networks-view/index.js +8 -5
- package/lib/module/views/w3m-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-checkout-view/index.js +162 -154
- package/lib/module/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/index.js +4 -4
- package/lib/module/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/styles.js +1 -1
- package/lib/module/views/w3m-onramp-loading-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js +3 -2
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/index.js +6 -4
- package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/styles.js +4 -1
- package/lib/module/views/w3m-onramp-settings-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Currency.js +3 -2
- package/lib/module/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Header.js +1 -1
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js +6 -3
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/index.js +4 -3
- package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/styles.js +3 -0
- package/lib/module/views/w3m-onramp-view/styles.js.map +1 -1
- package/lib/module/views/w3m-swap-preview-view/styles.js +0 -3
- package/lib/module/views/w3m-swap-preview-view/styles.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js +152 -0
- package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -0
- package/lib/module/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.js +6 -2
- package/lib/module/views/w3m-swap-view/components/select-token-modal/styles.js.map +1 -0
- package/lib/module/views/w3m-swap-view/components/select-token-modal/utils.js.map +1 -0
- package/lib/module/views/w3m-swap-view/index.js +10 -13
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/styles.js +0 -8
- package/lib/module/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/index.js +7 -13
- package/lib/module/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/styles.js +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/styles.js.map +1 -1
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js +3 -5
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js +1 -2
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js +4 -2
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/index.js +5 -2
- package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/styles.js +0 -3
- package/lib/module/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/typescript/AppKit.d.ts +1 -1
- package/lib/typescript/AppKit.d.ts.map +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-modal/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-router/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/Loading.d.ts +2 -4
- package/lib/typescript/partials/w3m-all-wallets-list/components/Loading.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletItem.d.ts +1 -3
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletItem.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletList.d.ts +12 -0
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletList.d.ts.map +1 -0
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +1 -3
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/styles.d.ts +6 -3
- package/lib/typescript/partials/w3m-all-wallets-list/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts +1 -4
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-mobile/styles.d.ts +1 -0
- package/lib/typescript/partials/w3m-connecting-mobile/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-web/styles.d.ts +3 -0
- package/lib/typescript/partials/w3m-connecting-web/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-header/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-selector-modal/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-selector-modal/styles.d.ts +6 -8
- package/lib/typescript/partials/w3m-selector-modal/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-external-view/styles.d.ts +1 -0
- package/lib/typescript/views/w3m-connecting-external-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-siwe-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-siwe-view/styles.d.ts +3 -7
- package/lib/typescript/views/w3m-connecting-siwe-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-social-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-social-view/styles.d.ts +3 -0
- package/lib/typescript/views/w3m-connecting-social-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-networks-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-checkout-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-loading-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts +3 -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/styles.d.ts +4 -1
- package/lib/typescript/views/w3m-onramp-settings-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts +3 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.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/styles.d.ts +3 -0
- package/lib/typescript/views/w3m-onramp-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-preview-view/styles.d.ts +0 -3
- package/lib/typescript/views/w3m-swap-preview-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/{select-token-view → select-token-modal}/index.d.ts +2 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-modal/index.d.ts.map +1 -0
- package/lib/typescript/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.d.ts +6 -2
- package/lib/typescript/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-modal/utils.d.ts.map +1 -0
- package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/styles.d.ts +0 -8
- package/lib/typescript/views/w3m-swap-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-unsupported-chain-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-upgrade-email-wallet-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts +0 -3
- package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/AppKit.ts +64 -43
- package/src/connectors/WalletConnectConnector.ts +7 -4
- package/src/modal/w3m-modal/index.tsx +2 -3
- package/src/modal/w3m-router/index.tsx +3 -4
- package/src/partials/w3m-all-wallets-list/components/Loading.tsx +4 -35
- package/src/partials/w3m-all-wallets-list/components/WalletItem.tsx +3 -12
- package/src/partials/w3m-all-wallets-list/components/WalletList.tsx +95 -0
- package/src/partials/w3m-all-wallets-list/index.tsx +8 -43
- package/src/partials/w3m-all-wallets-list/styles.ts +7 -4
- package/src/partials/w3m-all-wallets-search/index.tsx +6 -47
- package/src/partials/w3m-connecting-mobile/index.tsx +8 -8
- package/src/partials/w3m-connecting-mobile/styles.ts +2 -1
- package/src/partials/w3m-connecting-qrcode/index.tsx +4 -1
- package/src/partials/w3m-connecting-web/index.tsx +1 -1
- package/src/partials/w3m-connecting-web/styles.ts +3 -0
- package/src/partials/w3m-header/index.tsx +6 -3
- package/src/partials/w3m-selector-modal/index.tsx +80 -60
- package/src/partials/w3m-selector-modal/styles.ts +9 -11
- package/src/views/w3m-account-default-view/index.tsx +2 -2
- package/src/views/w3m-all-wallets-view/index.tsx +9 -32
- package/src/views/w3m-connect-view/index.tsx +1 -1
- package/src/views/w3m-connecting-external-view/index.tsx +8 -8
- package/src/views/w3m-connecting-external-view/styles.ts +2 -1
- package/src/views/w3m-connecting-siwe-view/index.tsx +49 -42
- package/src/views/w3m-connecting-siwe-view/styles.ts +3 -7
- package/src/views/w3m-connecting-social-view/index.tsx +30 -27
- package/src/views/w3m-connecting-social-view/styles.ts +3 -0
- package/src/views/w3m-networks-view/index.tsx +6 -8
- package/src/views/w3m-onramp-checkout-view/index.tsx +147 -143
- package/src/views/w3m-onramp-loading-view/index.tsx +3 -7
- package/src/views/w3m-onramp-loading-view/styles.ts +1 -1
- package/src/views/w3m-onramp-settings-view/components/Country.tsx +8 -3
- package/src/views/w3m-onramp-settings-view/index.tsx +4 -2
- package/src/views/w3m-onramp-settings-view/styles.ts +4 -1
- package/src/views/w3m-onramp-view/components/Currency.tsx +4 -3
- package/src/views/w3m-onramp-view/components/Header.tsx +1 -1
- package/src/views/w3m-onramp-view/components/SelectPaymentModal.tsx +6 -3
- package/src/views/w3m-onramp-view/index.tsx +3 -2
- package/src/views/w3m-onramp-view/styles.ts +3 -0
- package/src/views/w3m-swap-preview-view/styles.ts +0 -3
- package/src/views/w3m-swap-view/components/select-token-modal/index.tsx +183 -0
- package/src/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.ts +6 -2
- package/src/views/w3m-swap-view/index.tsx +8 -7
- package/src/views/w3m-swap-view/styles.ts +0 -8
- package/src/views/w3m-unsupported-chain-view/index.tsx +4 -6
- package/src/views/w3m-unsupported-chain-view/styles.ts +1 -1
- package/src/views/w3m-upgrade-email-wallet-view/index.tsx +3 -5
- package/src/views/w3m-wallet-compatible-networks-view/index.tsx +1 -1
- package/src/views/w3m-wallet-send-select-token-view/index.tsx +2 -2
- package/src/views/w3m-wallet-send-view/index.tsx +2 -2
- package/src/views/w3m-wallet-send-view/styles.ts +0 -3
- package/lib/commonjs/views/w3m-network-switch-view/index.js +0 -127
- package/lib/commonjs/views/w3m-network-switch-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-network-switch-view/styles.js +0 -31
- package/lib/commonjs/views/w3m-network-switch-view/styles.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js +0 -145
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/styles.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/utils.js.map +0 -1
- package/lib/module/views/w3m-network-switch-view/index.js +0 -123
- package/lib/module/views/w3m-network-switch-view/index.js.map +0 -1
- package/lib/module/views/w3m-network-switch-view/styles.js +0 -27
- package/lib/module/views/w3m-network-switch-view/styles.js.map +0 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js +0 -140
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +0 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/styles.js.map +0 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/utils.js.map +0 -1
- package/lib/typescript/views/w3m-network-switch-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-network-switch-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-network-switch-view/styles.d.ts +0 -24
- package/lib/typescript/views/w3m-network-switch-view/styles.d.ts.map +0 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts.map +0 -1
- package/src/views/w3m-network-switch-view/index.tsx +0 -132
- package/src/views/w3m-network-switch-view/styles.ts +0 -23
- package/src/views/w3m-swap-view/components/select-token-view/index.tsx +0 -176
- /package/lib/commonjs/views/w3m-swap-view/components/{select-token-view → select-token-modal}/utils.js +0 -0
- /package/lib/module/views/w3m-swap-view/components/{select-token-view → select-token-modal}/utils.js +0 -0
- /package/lib/typescript/views/w3m-swap-view/components/{select-token-view → select-token-modal}/utils.d.ts +0 -0
- /package/src/views/w3m-swap-view/components/{select-token-view → select-token-modal}/utils.ts +0 -0
|
@@ -34,7 +34,7 @@ interface Props {
|
|
|
34
34
|
|
|
35
35
|
export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
|
|
36
36
|
const { data } = RouterController.state;
|
|
37
|
-
const {
|
|
37
|
+
const { padding } = useCustomDimensions();
|
|
38
38
|
const { wcUri, wcError } = useSnapshot(WcController.state);
|
|
39
39
|
const { walletImages } = useSnapshot(AssetController.state);
|
|
40
40
|
const [errorType, setErrorType] = useState<BodyErrorType>();
|
|
@@ -100,13 +100,13 @@ export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
|
|
|
100
100
|
}, [wcUri, onConnect]);
|
|
101
101
|
|
|
102
102
|
return (
|
|
103
|
-
<ScrollView
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
>
|
|
103
|
+
<ScrollView
|
|
104
|
+
bounces={false}
|
|
105
|
+
fadingEdgeLength={20}
|
|
106
|
+
style={{ paddingHorizontal: padding }}
|
|
107
|
+
contentContainerStyle={styles.container}
|
|
108
|
+
>
|
|
109
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '0', 'l']}>
|
|
110
110
|
<LoadingThumbnail paused={!!errorType || wcError}>
|
|
111
111
|
<WalletImage
|
|
112
112
|
size="xl"
|
|
@@ -16,11 +16,14 @@ import {
|
|
|
16
16
|
} from '@reown/appkit-ui-react-native';
|
|
17
17
|
import styles from './styles';
|
|
18
18
|
import { ReownButton } from './components/ReownButton';
|
|
19
|
+
import { useWindowDimensions } from 'react-native';
|
|
19
20
|
|
|
20
21
|
export function ConnectingQrCode() {
|
|
22
|
+
const { height, width } = useWindowDimensions();
|
|
23
|
+
const windowSize = Math.min(height, width);
|
|
21
24
|
const { wcUri } = useSnapshot(WcController.state);
|
|
22
25
|
const showCopy = OptionsController.isClipboardAvailable();
|
|
23
|
-
const {
|
|
26
|
+
const { isPortrait } = useCustomDimensions();
|
|
24
27
|
const qrSize = (windowSize - Spacing.xl * 2) / (isPortrait ? 1 : 1.5);
|
|
25
28
|
|
|
26
29
|
const onCopyAddress = () => {
|
|
@@ -65,7 +65,7 @@ export function ConnectingWeb({ onCopyUri }: ConnectingWebProps) {
|
|
|
65
65
|
}, [data?.wallet, wcUri]);
|
|
66
66
|
|
|
67
67
|
return (
|
|
68
|
-
<ScrollView bounces={false} fadingEdgeLength={20}>
|
|
68
|
+
<ScrollView bounces={false} fadingEdgeLength={20} contentContainerStyle={styles.container}>
|
|
69
69
|
<FlexView alignItems="center" padding={['2xl', 'm', '3xl', 'm']}>
|
|
70
70
|
<LoadingThumbnail paused={wcError}>
|
|
71
71
|
<WalletImage
|
|
@@ -32,7 +32,7 @@ export function Header() {
|
|
|
32
32
|
Connect: 'Connect wallet',
|
|
33
33
|
ConnectSocials: 'All socials',
|
|
34
34
|
ConnectingExternal: walletName ?? 'Connect wallet',
|
|
35
|
-
ConnectingSiwe:
|
|
35
|
+
ConnectingSiwe: 'Sign in',
|
|
36
36
|
ConnectingSocial: socialName ?? 'Connecting Social',
|
|
37
37
|
ConnectingWalletConnect: walletName ?? 'WalletConnect',
|
|
38
38
|
GetWallet: 'Get a wallet',
|
|
@@ -58,7 +58,8 @@ export function Header() {
|
|
|
58
58
|
}[_view];
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
const noCloseViews = ['OnRampSettings'];
|
|
61
|
+
const noCloseViews = ['OnRampSettings', 'ConnectingSiwe'];
|
|
62
|
+
const noBackViews = ['UnsupportedChain'];
|
|
62
63
|
const showClose = !noCloseViews.includes(view);
|
|
63
64
|
const header = headings(data, view);
|
|
64
65
|
|
|
@@ -71,7 +72,9 @@ export function Header() {
|
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
const dynamicButtonTemplate = () => {
|
|
74
|
-
const showBack =
|
|
75
|
+
const showBack =
|
|
76
|
+
RouterController.state.history.length > 1 &&
|
|
77
|
+
!noBackViews.includes(RouterController.state.view);
|
|
75
78
|
const showHelp = RouterController.state.view === 'Connect';
|
|
76
79
|
|
|
77
80
|
if (showHelp) {
|
|
@@ -9,10 +9,12 @@ import {
|
|
|
9
9
|
Separator,
|
|
10
10
|
Spacing,
|
|
11
11
|
Text,
|
|
12
|
+
useCustomDimensions,
|
|
12
13
|
useTheme
|
|
13
14
|
} from '@reown/appkit-ui-react-native';
|
|
14
|
-
import styles from './styles';
|
|
15
15
|
import { AssetController, AssetUtil, ConnectionsController } from '@reown/appkit-core-react-native';
|
|
16
|
+
import { Placeholder } from '../w3m-placeholder';
|
|
17
|
+
import styles from './styles';
|
|
16
18
|
|
|
17
19
|
interface SelectorModalProps {
|
|
18
20
|
title?: string;
|
|
@@ -44,6 +46,7 @@ export function SelectorModal({
|
|
|
44
46
|
showNetwork
|
|
45
47
|
}: SelectorModalProps) {
|
|
46
48
|
const Theme = useTheme();
|
|
49
|
+
const { maxHeight } = useCustomDimensions();
|
|
47
50
|
const { activeNetwork } = useSnapshot(ConnectionsController.state);
|
|
48
51
|
const { networkImages } = useSnapshot(AssetController.state);
|
|
49
52
|
const networkImage = AssetUtil.getNetworkImage(activeNetwork, networkImages);
|
|
@@ -55,66 +58,83 @@ export function SelectorModal({
|
|
|
55
58
|
return (
|
|
56
59
|
<Modal visible={visible} transparent animationType="slide" onRequestClose={onClose}>
|
|
57
60
|
<View style={styles.modal}>
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
61
|
+
<FlatList
|
|
62
|
+
data={items}
|
|
63
|
+
renderItem={renderItem}
|
|
64
|
+
fadingEdgeLength={20}
|
|
65
|
+
automaticallyAdjustKeyboardInsets={false}
|
|
66
|
+
keyboardShouldPersistTaps="always"
|
|
67
|
+
style={[styles.container, { backgroundColor: Theme['bg-100'], maxHeight }]}
|
|
68
|
+
ListHeaderComponentStyle={styles.header}
|
|
69
|
+
ListEmptyComponent={
|
|
70
|
+
<Placeholder
|
|
71
|
+
icon="coinPlaceholder"
|
|
72
|
+
title="No tokens found"
|
|
73
|
+
description="There's no available tokens for this network"
|
|
74
|
+
/>
|
|
75
|
+
}
|
|
76
|
+
ListHeaderComponent={
|
|
77
|
+
<>
|
|
78
|
+
<FlexView
|
|
79
|
+
alignItems="center"
|
|
80
|
+
justifyContent="space-between"
|
|
81
|
+
flexDirection="row"
|
|
82
|
+
style={styles.headerTop}
|
|
83
|
+
>
|
|
84
|
+
<IconLink
|
|
85
|
+
icon="chevronLeft"
|
|
86
|
+
onPress={onClose}
|
|
87
|
+
testID="selector-modal-button-back"
|
|
83
88
|
/>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
89
|
+
{!!title && <Text variant="paragraph-600">{title}</Text>}
|
|
90
|
+
{showNetwork ? (
|
|
91
|
+
networkImage ? (
|
|
92
|
+
<FlexView
|
|
93
|
+
alignItems="center"
|
|
94
|
+
justifyContent="center"
|
|
95
|
+
style={styles.iconPlaceholder}
|
|
96
|
+
>
|
|
97
|
+
<Image source={networkImage} style={styles.networkImage} />
|
|
98
|
+
</FlexView>
|
|
99
|
+
) : (
|
|
100
|
+
<IconBox
|
|
101
|
+
style={styles.iconPlaceholder}
|
|
102
|
+
icon="networkPlaceholder"
|
|
103
|
+
background
|
|
104
|
+
iconColor="fg-200"
|
|
105
|
+
size="sm"
|
|
106
|
+
/>
|
|
107
|
+
)
|
|
108
|
+
) : (
|
|
109
|
+
<View style={styles.iconPlaceholder} />
|
|
110
|
+
)}
|
|
111
|
+
</FlexView>
|
|
112
|
+
<SearchBar
|
|
113
|
+
onChangeText={onSearch}
|
|
114
|
+
style={styles.searchBar}
|
|
115
|
+
placeholder={searchPlaceholder}
|
|
116
|
+
/>
|
|
117
|
+
{selectedItem ? (
|
|
118
|
+
<FlexView>
|
|
119
|
+
{renderItem({ item: selectedItem })}
|
|
120
|
+
<Separator style={styles.separator} color="gray-glass-005" />
|
|
121
|
+
</FlexView>
|
|
122
|
+
) : null}
|
|
123
|
+
</>
|
|
124
|
+
}
|
|
125
|
+
contentContainerStyle={styles.listContent}
|
|
126
|
+
ItemSeparatorComponent={renderSeparator}
|
|
127
|
+
keyExtractor={keyExtractor}
|
|
128
|
+
getItemLayout={
|
|
129
|
+
itemHeight
|
|
130
|
+
? (_, index) => ({
|
|
131
|
+
length: itemHeight + SEPARATOR_HEIGHT,
|
|
132
|
+
offset: (itemHeight + SEPARATOR_HEIGHT) * index,
|
|
133
|
+
index
|
|
134
|
+
})
|
|
135
|
+
: undefined
|
|
136
|
+
}
|
|
137
|
+
/>
|
|
118
138
|
</View>
|
|
119
139
|
</Modal>
|
|
120
140
|
);
|
|
@@ -8,21 +8,19 @@ export default StyleSheet.create({
|
|
|
8
8
|
justifyContent: 'flex-end'
|
|
9
9
|
},
|
|
10
10
|
header: {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
paddingTop: Spacing['2xs'],
|
|
12
|
+
paddingBottom: Spacing.s
|
|
13
|
+
},
|
|
14
|
+
headerTop: {
|
|
15
|
+
paddingHorizontal: Spacing.m,
|
|
16
|
+
paddingBottom: Spacing.xs
|
|
13
17
|
},
|
|
14
18
|
container: {
|
|
15
|
-
height: '80%',
|
|
16
19
|
borderTopLeftRadius: BorderRadius.l,
|
|
17
|
-
borderTopRightRadius: BorderRadius.l
|
|
18
|
-
paddingTop: Spacing.m
|
|
19
|
-
},
|
|
20
|
-
selectedContainer: {
|
|
21
|
-
paddingHorizontal: Spacing.m
|
|
20
|
+
borderTopRightRadius: BorderRadius.l
|
|
22
21
|
},
|
|
23
22
|
listContent: {
|
|
24
|
-
paddingTop: Spacing.s
|
|
25
|
-
paddingHorizontal: Spacing.m
|
|
23
|
+
paddingTop: Spacing.s
|
|
26
24
|
},
|
|
27
25
|
iconPlaceholder: {
|
|
28
26
|
height: 32,
|
|
@@ -38,6 +36,6 @@ export default StyleSheet.create({
|
|
|
38
36
|
marginHorizontal: Spacing.s
|
|
39
37
|
},
|
|
40
38
|
separator: {
|
|
41
|
-
|
|
39
|
+
marginVertical: Spacing.xs
|
|
42
40
|
}
|
|
43
41
|
});
|
|
@@ -278,7 +278,7 @@ export function AccountDefaultView() {
|
|
|
278
278
|
testID="button-onramp"
|
|
279
279
|
style={styles.actionButton}
|
|
280
280
|
>
|
|
281
|
-
<Text color="fg-100">Buy
|
|
281
|
+
<Text color="fg-100">Buy Crypto</Text>
|
|
282
282
|
</ListItem>
|
|
283
283
|
) : null}
|
|
284
284
|
{showSend ? (
|
|
@@ -332,7 +332,7 @@ export function AccountDefaultView() {
|
|
|
332
332
|
loading={loading}
|
|
333
333
|
>
|
|
334
334
|
<Text color="fg-100">{`Switch to your ${
|
|
335
|
-
accountType === 'eoa' ? '
|
|
335
|
+
accountType === 'eoa' ? 'Smart Account' : 'EOA'
|
|
336
336
|
}`}</Text>
|
|
337
337
|
</ListItem>
|
|
338
338
|
) : null}
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
FlexView,
|
|
6
6
|
IconLink,
|
|
7
7
|
SearchBar,
|
|
8
|
-
Spacing,
|
|
9
8
|
useTheme,
|
|
10
9
|
useCustomDimensions
|
|
11
10
|
} from '@reown/appkit-ui-react-native';
|
|
@@ -15,24 +14,14 @@ import { useDebounceCallback } from '../../hooks/useDebounceCallback';
|
|
|
15
14
|
import { AllWalletsList } from '../../partials/w3m-all-wallets-list';
|
|
16
15
|
import { AllWalletsSearch } from '../../partials/w3m-all-wallets-search';
|
|
17
16
|
import { WcHelpersUtil } from '../../utils/HelpersUtil';
|
|
18
|
-
import type { LayoutChangeEvent } from 'react-native';
|
|
19
17
|
|
|
20
18
|
export function AllWalletsView() {
|
|
21
19
|
const Theme = useTheme();
|
|
22
20
|
const [searchQuery, setSearchQuery] = useState<string>('');
|
|
23
|
-
const {
|
|
24
|
-
const [headerHeight, setHeaderHeight] = useState<number>(0);
|
|
25
|
-
const numColumns = 4;
|
|
26
|
-
const usableWidth = maxWidth - Spacing['s'] * 2;
|
|
27
|
-
const itemWidth = Math.abs(Math.trunc(usableWidth / numColumns));
|
|
21
|
+
const { padding } = useCustomDimensions();
|
|
28
22
|
|
|
29
23
|
const { debouncedCallback: onInputChange } = useDebounceCallback({ callback: setSearchQuery });
|
|
30
24
|
|
|
31
|
-
const onHeaderLayout = (event: LayoutChangeEvent) => {
|
|
32
|
-
const { height } = event.nativeEvent.layout;
|
|
33
|
-
setHeaderHeight(height);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
25
|
const onWalletPress = (wallet: WcWallet) => {
|
|
37
26
|
const isExternal = WcHelpersUtil.isExternalWallet(wallet);
|
|
38
27
|
if (isExternal) {
|
|
@@ -63,13 +52,16 @@ export function AllWalletsView() {
|
|
|
63
52
|
const headerTemplate = () => {
|
|
64
53
|
return (
|
|
65
54
|
<FlexView
|
|
66
|
-
padding={['s', 'l', '
|
|
55
|
+
padding={['s', 'l', '4xs', 'l']}
|
|
67
56
|
flexDirection="row"
|
|
68
|
-
onLayout={onHeaderLayout}
|
|
69
57
|
alignItems="center"
|
|
70
58
|
style={[
|
|
71
59
|
styles.header,
|
|
72
|
-
{
|
|
60
|
+
{
|
|
61
|
+
backgroundColor: Theme['bg-100'],
|
|
62
|
+
shadowColor: Theme['bg-100'],
|
|
63
|
+
marginHorizontal: padding
|
|
64
|
+
}
|
|
73
65
|
]}
|
|
74
66
|
>
|
|
75
67
|
<SearchBar
|
|
@@ -93,25 +85,10 @@ export function AllWalletsView() {
|
|
|
93
85
|
|
|
94
86
|
const listTemplate = () => {
|
|
95
87
|
if (searchQuery) {
|
|
96
|
-
return
|
|
97
|
-
<AllWalletsSearch
|
|
98
|
-
columns={numColumns}
|
|
99
|
-
itemWidth={itemWidth}
|
|
100
|
-
searchQuery={searchQuery}
|
|
101
|
-
onItemPress={onWalletPress}
|
|
102
|
-
headerHeight={headerHeight}
|
|
103
|
-
/>
|
|
104
|
-
);
|
|
88
|
+
return <AllWalletsSearch searchQuery={searchQuery} onItemPress={onWalletPress} />;
|
|
105
89
|
}
|
|
106
90
|
|
|
107
|
-
return
|
|
108
|
-
<AllWalletsList
|
|
109
|
-
columns={numColumns}
|
|
110
|
-
itemWidth={itemWidth}
|
|
111
|
-
onItemPress={onWalletPress}
|
|
112
|
-
headerHeight={headerHeight}
|
|
113
|
-
/>
|
|
114
|
-
);
|
|
91
|
+
return <AllWalletsList onItemPress={onWalletPress} />;
|
|
115
92
|
};
|
|
116
93
|
|
|
117
94
|
return (
|
|
@@ -62,7 +62,7 @@ export function ConnectView() {
|
|
|
62
62
|
|
|
63
63
|
return (
|
|
64
64
|
<ScrollView style={{ paddingHorizontal: padding }} bounces={false}>
|
|
65
|
-
<FlexView padding={['xs', '0', '
|
|
65
|
+
<FlexView padding={['xs', '0', 's', '0']}>
|
|
66
66
|
{isSocialEnabled ? (
|
|
67
67
|
<>
|
|
68
68
|
<SocialLoginList options={features?.socials} />
|
|
@@ -29,7 +29,7 @@ export function ConnectingExternalView() {
|
|
|
29
29
|
const { data } = useSnapshot(RouterController.state);
|
|
30
30
|
const { walletImages } = useSnapshot(AssetController.state);
|
|
31
31
|
const { connect } = useInternalAppKit();
|
|
32
|
-
const {
|
|
32
|
+
const { padding } = useCustomDimensions();
|
|
33
33
|
const [errorType, setErrorType] = useState<BodyErrorType>();
|
|
34
34
|
const bodyMessage = getMessage({ walletName: data?.wallet?.name, errorType });
|
|
35
35
|
|
|
@@ -92,13 +92,13 @@ export function ConnectingExternalView() {
|
|
|
92
92
|
}, [onConnect]);
|
|
93
93
|
|
|
94
94
|
return (
|
|
95
|
-
<ScrollView
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
>
|
|
95
|
+
<ScrollView
|
|
96
|
+
bounces={false}
|
|
97
|
+
fadingEdgeLength={20}
|
|
98
|
+
style={{ paddingHorizontal: padding }}
|
|
99
|
+
contentContainerStyle={styles.container}
|
|
100
|
+
>
|
|
101
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '0', 'l']}>
|
|
102
102
|
<LoadingThumbnail paused={!!errorType}>
|
|
103
103
|
<WalletImage
|
|
104
104
|
size="xl"
|
|
@@ -5,12 +5,13 @@ import {
|
|
|
5
5
|
Button,
|
|
6
6
|
DoubleImageLoader,
|
|
7
7
|
FlexView,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
Text,
|
|
9
|
+
useCustomDimensions
|
|
10
10
|
} from '@reown/appkit-ui-react-native';
|
|
11
11
|
import {
|
|
12
12
|
ConnectionsController,
|
|
13
13
|
EventsController,
|
|
14
|
+
ModalController,
|
|
14
15
|
OptionsController,
|
|
15
16
|
RouterController,
|
|
16
17
|
SnackController
|
|
@@ -19,9 +20,11 @@ import { SIWEController } from '@reown/appkit-siwe-react-native';
|
|
|
19
20
|
|
|
20
21
|
import { useInternalAppKit } from '../../AppKitContext';
|
|
21
22
|
import styles from './styles';
|
|
23
|
+
import { ScrollView } from 'react-native';
|
|
22
24
|
|
|
23
25
|
export function ConnectingSiweView() {
|
|
24
26
|
const { disconnect } = useInternalAppKit();
|
|
27
|
+
const { padding } = useCustomDimensions();
|
|
25
28
|
const { metadata } = useSnapshot(OptionsController.state);
|
|
26
29
|
const { activeAddress, identity, walletInfo } = useSnapshot(ConnectionsController.state);
|
|
27
30
|
const [isSigning, setIsSigning] = useState(false);
|
|
@@ -49,6 +52,8 @@ export function ConnectingSiweView() {
|
|
|
49
52
|
properties: { network, isSmartAccount }
|
|
50
53
|
});
|
|
51
54
|
|
|
55
|
+
ModalController.close();
|
|
56
|
+
|
|
52
57
|
return session;
|
|
53
58
|
} catch (error) {
|
|
54
59
|
SnackController.showError('Signature declined');
|
|
@@ -81,46 +86,48 @@ export function ConnectingSiweView() {
|
|
|
81
86
|
};
|
|
82
87
|
|
|
83
88
|
return (
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
89
|
+
<ScrollView
|
|
90
|
+
bounces={false}
|
|
91
|
+
fadingEdgeLength={20}
|
|
92
|
+
style={{ paddingHorizontal: padding }}
|
|
93
|
+
contentContainerStyle={styles.container}
|
|
94
|
+
>
|
|
95
|
+
<FlexView padding={['0', 's', '3xl', 's']}>
|
|
96
|
+
<DoubleImageLoader
|
|
97
|
+
style={styles.logoContainer}
|
|
98
|
+
leftImage={dappIcon}
|
|
99
|
+
rightImage={walletIcon}
|
|
100
|
+
renderRightPlaceholder={() => (
|
|
101
|
+
<Avatar imageSrc={identity?.avatar} address={activeAddress} size={60} borderWidth={0} />
|
|
102
|
+
)}
|
|
103
|
+
rightItemStyle={!walletIcon && styles.walletAvatar}
|
|
104
|
+
/>
|
|
105
|
+
<Text center variant="medium-600" color="fg-100" style={styles.title}>
|
|
106
|
+
{dappName} needs to connect to your wallet
|
|
107
|
+
</Text>
|
|
108
|
+
<Text center variant="small-400" color="fg-200" style={styles.subtitle}>
|
|
109
|
+
Sign this message to prove you own this wallet and proceed. Cancelling will disconnect you
|
|
110
|
+
</Text>
|
|
111
|
+
<FlexView flexDirection="row" justifyContent="space-between" margin={['s', '0', '0', '0']}>
|
|
112
|
+
<Button
|
|
113
|
+
variant="shade"
|
|
114
|
+
onPress={onCancel}
|
|
115
|
+
style={styles.button}
|
|
116
|
+
loading={isDisconnecting}
|
|
117
|
+
>
|
|
118
|
+
Cancel
|
|
119
|
+
</Button>
|
|
120
|
+
<Button
|
|
121
|
+
variant="fill"
|
|
122
|
+
loading={isSigning}
|
|
123
|
+
disabled={isDisconnecting}
|
|
124
|
+
onPress={onSign}
|
|
125
|
+
style={styles.button}
|
|
126
|
+
>
|
|
127
|
+
Sign
|
|
128
|
+
</Button>
|
|
129
|
+
</FlexView>
|
|
123
130
|
</FlexView>
|
|
124
|
-
</
|
|
131
|
+
</ScrollView>
|
|
125
132
|
);
|
|
126
133
|
}
|
|
@@ -2,6 +2,9 @@ import { BorderRadius, Spacing } from '@reown/appkit-ui-react-native';
|
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
minHeight: '30%'
|
|
7
|
+
},
|
|
5
8
|
logoContainer: {
|
|
6
9
|
marginTop: Spacing.xl,
|
|
7
10
|
marginBottom: Spacing.m
|
|
@@ -16,13 +19,6 @@ export default StyleSheet.create({
|
|
|
16
19
|
marginHorizontal: '10%',
|
|
17
20
|
marginVertical: Spacing.l
|
|
18
21
|
},
|
|
19
|
-
closeButton: {
|
|
20
|
-
alignSelf: 'flex-end',
|
|
21
|
-
right: Spacing.xl,
|
|
22
|
-
top: Spacing.l,
|
|
23
|
-
position: 'absolute',
|
|
24
|
-
zIndex: 2
|
|
25
|
-
},
|
|
26
22
|
walletAvatar: {
|
|
27
23
|
borderRadius: BorderRadius.full
|
|
28
24
|
}
|