@reown/appkit-react-native 0.0.0-fix-improvements-20250827190629 → 0.0.0-fix-ui-changes-20250828191102
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/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 -1
- package/lib/commonjs/modal/w3m-router/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-activity/index.js +4 -3
- package/lib/commonjs/partials/w3m-account-activity/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-activity/styles.js +4 -1
- package/lib/commonjs/partials/w3m-account-activity/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-tokens/index.js +2 -1
- package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/Loading.js +7 -71
- 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 -2
- 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 +85 -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 -42
- 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 +3 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +0 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js +3 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/index.js +2 -29
- package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/styles.js +2 -3
- package/lib/commonjs/partials/w3m-selector-modal/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +12 -2
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-view/index.js +3 -2
- package/lib/commonjs/views/w3m-account-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +2 -19
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-socials-view/index.js +9 -1
- package/lib/commonjs/views/w3m-connect-socials-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +10 -3
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +3 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-get-wallet-view/index.js +10 -2
- package/lib/commonjs/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-networks-view/index.js +33 -26
- 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 +3 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/LoadingView.js +2 -1
- package/lib/commonjs/views/w3m-onramp-view/components/LoadingView.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js +13 -51
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/index.js +18 -16
- package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-preview-view/index.js +9 -1
- package/lib/commonjs/views/w3m-swap-preview-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js +155 -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 +4 -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 +13 -16
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/styles.js +1 -7
- package/lib/commonjs/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js +11 -2
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-receive-view/index.js +8 -1
- package/lib/commonjs/views/w3m-wallet-receive-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js +8 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js +6 -17
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/styles.js +1 -2
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/index.js +10 -6
- package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js +1 -2
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-network-view/index.js +10 -2
- package/lib/commonjs/views/w3m-what-is-a-network-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.js +11 -2
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.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 -1
- package/lib/module/modal/w3m-router/index.js.map +1 -1
- package/lib/module/partials/w3m-account-activity/index.js +5 -4
- package/lib/module/partials/w3m-account-activity/index.js.map +1 -1
- package/lib/module/partials/w3m-account-activity/styles.js +4 -1
- package/lib/module/partials/w3m-account-activity/styles.js.map +1 -1
- package/lib/module/partials/w3m-account-tokens/index.js +3 -2
- package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/Loading.js +8 -72
- 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 -2
- 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 +81 -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 -42
- 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 -2
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +0 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/index.js +4 -2
- package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/index.js +3 -30
- package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/styles.js +2 -3
- package/lib/module/partials/w3m-selector-modal/styles.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +12 -3
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-account-view/index.js +3 -2
- package/lib/module/views/w3m-account-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +3 -20
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-socials-view/index.js +9 -1
- package/lib/module/views/w3m-connect-socials-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +11 -4
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +4 -2
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-get-wallet-view/index.js +11 -3
- package/lib/module/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-networks-view/index.js +35 -28
- 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 -2
- package/lib/module/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/LoadingView.js +3 -2
- package/lib/module/views/w3m-onramp-view/components/LoadingView.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js +15 -53
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/index.js +18 -16
- package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-preview-view/index.js +9 -1
- package/lib/module/views/w3m-swap-preview-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js +150 -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 +4 -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 +14 -17
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/styles.js +1 -7
- package/lib/module/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js +11 -2
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-receive-view/index.js +9 -2
- package/lib/module/views/w3m-wallet-receive-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-preview-view/index.js +8 -1
- package/lib/module/views/w3m-wallet-send-preview-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js +6 -17
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/styles.js +1 -2
- package/lib/module/views/w3m-wallet-send-select-token-view/styles.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/index.js +10 -6
- package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/styles.js +1 -2
- package/lib/module/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-network-view/index.js +11 -3
- package/lib/module/views/w3m-what-is-a-network-view/index.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-wallet-view/index.js +11 -2
- package/lib/module/views/w3m-what-is-a-wallet-view/index.js.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-account-activity/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-account-activity/styles.d.ts +3 -0
- package/lib/typescript/partials/w3m-account-activity/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-account-tokens/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/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/index.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/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 +1 -2
- package/lib/typescript/partials/w3m-selector-modal/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-default-view/index.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-socials-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-external-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-get-wallet-view/index.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-view/components/SelectPaymentModal.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-preview-view/index.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 +4 -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 -6
- package/lib/typescript/views/w3m-swap-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-compatible-networks-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-receive-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-preview-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-select-token-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-select-token-view/styles.d.ts +0 -1
- package/lib/typescript/views/w3m-wallet-send-select-token-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts +1 -2
- package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-what-is-a-network-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-what-is-a-wallet-view/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/modal/w3m-modal/index.tsx +2 -3
- package/src/modal/w3m-router/index.tsx +3 -1
- package/src/partials/w3m-account-activity/index.tsx +5 -5
- package/src/partials/w3m-account-activity/styles.ts +4 -1
- package/src/partials/w3m-account-tokens/index.tsx +9 -3
- package/src/partials/w3m-all-wallets-list/components/Loading.tsx +4 -33
- package/src/partials/w3m-all-wallets-list/components/WalletItem.tsx +1 -1
- package/src/partials/w3m-all-wallets-list/components/WalletList.tsx +92 -0
- package/src/partials/w3m-all-wallets-list/index.tsx +7 -42
- 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 +3 -4
- package/src/partials/w3m-connecting-qrcode/index.tsx +0 -1
- package/src/partials/w3m-connecting-web/index.tsx +3 -4
- package/src/partials/w3m-selector-modal/index.tsx +3 -30
- package/src/partials/w3m-selector-modal/styles.ts +2 -3
- package/src/views/w3m-account-default-view/index.tsx +7 -4
- package/src/views/w3m-account-view/index.tsx +3 -3
- package/src/views/w3m-all-wallets-view/index.tsx +2 -29
- package/src/views/w3m-connect-socials-view/index.tsx +4 -2
- package/src/views/w3m-connect-view/index.tsx +6 -5
- package/src/views/w3m-connecting-external-view/index.tsx +3 -4
- package/src/views/w3m-get-wallet-view/index.tsx +10 -4
- package/src/views/w3m-networks-view/index.tsx +29 -26
- package/src/views/w3m-onramp-checkout-view/index.tsx +147 -143
- package/src/views/w3m-onramp-loading-view/index.tsx +8 -4
- package/src/views/w3m-onramp-view/components/LoadingView.tsx +3 -3
- package/src/views/w3m-onramp-view/components/SelectPaymentModal.tsx +11 -46
- package/src/views/w3m-onramp-view/index.tsx +20 -20
- package/src/views/w3m-swap-preview-view/index.tsx +4 -2
- package/src/views/w3m-swap-view/components/select-token-modal/index.tsx +182 -0
- package/src/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.ts +4 -2
- package/src/views/w3m-swap-view/index.tsx +14 -8
- package/src/views/w3m-swap-view/styles.ts +2 -7
- package/src/views/w3m-wallet-compatible-networks-view/index.tsx +11 -3
- package/src/views/w3m-wallet-receive-view/index.tsx +4 -3
- package/src/views/w3m-wallet-send-preview-view/index.tsx +4 -2
- package/src/views/w3m-wallet-send-select-token-view/index.tsx +6 -18
- package/src/views/w3m-wallet-send-select-token-view/styles.ts +1 -2
- package/src/views/w3m-wallet-send-view/index.tsx +6 -4
- package/src/views/w3m-wallet-send-view/styles.ts +1 -2
- package/src/views/w3m-what-is-a-network-view/index.tsx +5 -4
- package/src/views/w3m-what-is-a-wallet-view/index.tsx +11 -3
- 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-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-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-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
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { useSnapshot } from 'valtio';
|
|
3
|
+
import {
|
|
4
|
+
Modal,
|
|
5
|
+
ScrollView,
|
|
6
|
+
SectionList,
|
|
7
|
+
View,
|
|
8
|
+
type SectionListData,
|
|
9
|
+
type StyleProp,
|
|
10
|
+
type ViewStyle
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import {
|
|
13
|
+
FlexView,
|
|
14
|
+
IconLink,
|
|
15
|
+
InputText,
|
|
16
|
+
ListToken,
|
|
17
|
+
ListTokenTotalHeight,
|
|
18
|
+
Separator,
|
|
19
|
+
Text,
|
|
20
|
+
TokenButton,
|
|
21
|
+
useTheme,
|
|
22
|
+
useCustomDimensions
|
|
23
|
+
} from '@reown/appkit-ui-react-native';
|
|
24
|
+
|
|
25
|
+
import {
|
|
26
|
+
AssetController,
|
|
27
|
+
AssetUtil,
|
|
28
|
+
ConnectionsController,
|
|
29
|
+
SwapController,
|
|
30
|
+
type SwapControllerState
|
|
31
|
+
} from '@reown/appkit-core-react-native';
|
|
32
|
+
|
|
33
|
+
import { type SwapInputTarget, type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
34
|
+
|
|
35
|
+
import { Placeholder } from '../../../../partials/w3m-placeholder';
|
|
36
|
+
import styles from './styles';
|
|
37
|
+
import { createSections } from './utils';
|
|
38
|
+
|
|
39
|
+
interface Props {
|
|
40
|
+
onClose: () => void;
|
|
41
|
+
visible: boolean;
|
|
42
|
+
type?: SwapInputTarget;
|
|
43
|
+
style?: StyleProp<ViewStyle>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SwapSelectTokenModal({ onClose, type, style, visible }: Props) {
|
|
47
|
+
const { padding } = useCustomDimensions();
|
|
48
|
+
const Theme = useTheme();
|
|
49
|
+
const { activeNetwork } = useSnapshot(ConnectionsController.state);
|
|
50
|
+
const { networkImages } = useSnapshot(AssetController.state);
|
|
51
|
+
const { sourceToken, suggestedTokens, myTokensWithBalance } = useSnapshot(
|
|
52
|
+
SwapController.state
|
|
53
|
+
) as SwapControllerState;
|
|
54
|
+
|
|
55
|
+
const networkImage = AssetUtil.getNetworkImage(activeNetwork, networkImages);
|
|
56
|
+
const [tokenSearch, setTokenSearch] = useState<string>('');
|
|
57
|
+
const isSourceToken = type === 'sourceToken';
|
|
58
|
+
|
|
59
|
+
const [filteredTokens, setFilteredTokens] = useState(
|
|
60
|
+
createSections(isSourceToken, tokenSearch, myTokensWithBalance)
|
|
61
|
+
);
|
|
62
|
+
const suggestedList = suggestedTokens
|
|
63
|
+
?.filter(token => token.address !== SwapController.state.sourceToken?.address)
|
|
64
|
+
.slice(0, 8);
|
|
65
|
+
|
|
66
|
+
const onSearchChange = (value: string) => {
|
|
67
|
+
setTokenSearch(value);
|
|
68
|
+
setFilteredTokens(createSections(isSourceToken, value, myTokensWithBalance));
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const onTokenPress = (token: SwapTokenWithBalance) => {
|
|
72
|
+
if (isSourceToken) {
|
|
73
|
+
SwapController.setSourceToken(token);
|
|
74
|
+
} else {
|
|
75
|
+
SwapController.setToToken(token);
|
|
76
|
+
if (SwapController.state.sourceToken && SwapController.state.sourceTokenAmount) {
|
|
77
|
+
SwapController.swapTokens();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
onClose();
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<Modal visible={visible} transparent animationType="slide" onRequestClose={onClose}>
|
|
85
|
+
<FlexView
|
|
86
|
+
padding={['xl', '0', '0', '0']}
|
|
87
|
+
style={[
|
|
88
|
+
styles.container,
|
|
89
|
+
{
|
|
90
|
+
paddingHorizontal: padding,
|
|
91
|
+
backgroundColor: Theme['bg-100']
|
|
92
|
+
},
|
|
93
|
+
style
|
|
94
|
+
]}
|
|
95
|
+
>
|
|
96
|
+
<FlexView
|
|
97
|
+
flexDirection="row"
|
|
98
|
+
justifyContent="space-between"
|
|
99
|
+
alignItems="center"
|
|
100
|
+
padding={['0', 'm', 'm', 'm']}
|
|
101
|
+
>
|
|
102
|
+
<IconLink icon="chevronLeft" size="md" onPress={onClose} />
|
|
103
|
+
<Text variant="paragraph-600">Select token</Text>
|
|
104
|
+
<View style={styles.iconPlaceholder} />
|
|
105
|
+
</FlexView>
|
|
106
|
+
<FlexView margin={['0', '0', 'xs', '0']}>
|
|
107
|
+
<InputText
|
|
108
|
+
value={tokenSearch}
|
|
109
|
+
icon="search"
|
|
110
|
+
placeholder="Search token"
|
|
111
|
+
onChangeText={onSearchChange}
|
|
112
|
+
clearButtonMode="while-editing"
|
|
113
|
+
style={styles.input}
|
|
114
|
+
/>
|
|
115
|
+
{!isSourceToken && (
|
|
116
|
+
<>
|
|
117
|
+
<ScrollView
|
|
118
|
+
horizontal
|
|
119
|
+
showsHorizontalScrollIndicator={false}
|
|
120
|
+
bounces={false}
|
|
121
|
+
fadingEdgeLength={20}
|
|
122
|
+
style={styles.suggestedList}
|
|
123
|
+
contentContainerStyle={styles.suggestedListContent}
|
|
124
|
+
>
|
|
125
|
+
{suggestedList?.map((token, index) => (
|
|
126
|
+
<TokenButton
|
|
127
|
+
key={token.name}
|
|
128
|
+
text={token.symbol}
|
|
129
|
+
imageUrl={token.logoUri}
|
|
130
|
+
onPress={() => onTokenPress(token)}
|
|
131
|
+
style={index !== suggestedList.length - 1 ? styles.suggestedToken : undefined}
|
|
132
|
+
/>
|
|
133
|
+
))}
|
|
134
|
+
</ScrollView>
|
|
135
|
+
<Separator style={styles.suggestedSeparator} color="gray-glass-005" />
|
|
136
|
+
</>
|
|
137
|
+
)}
|
|
138
|
+
</FlexView>
|
|
139
|
+
<SectionList
|
|
140
|
+
sections={filteredTokens as SectionListData<SwapTokenWithBalance>[]}
|
|
141
|
+
bounces={false}
|
|
142
|
+
fadingEdgeLength={20}
|
|
143
|
+
contentContainerStyle={styles.tokenList}
|
|
144
|
+
renderSectionHeader={({ section: { title } }) => (
|
|
145
|
+
<Text
|
|
146
|
+
variant="paragraph-500"
|
|
147
|
+
color="fg-200"
|
|
148
|
+
style={[{ backgroundColor: Theme['bg-100'] }, styles.title]}
|
|
149
|
+
>
|
|
150
|
+
{title}
|
|
151
|
+
</Text>
|
|
152
|
+
)}
|
|
153
|
+
ListEmptyComponent={
|
|
154
|
+
<Placeholder
|
|
155
|
+
icon="coinPlaceholder"
|
|
156
|
+
title="No tokens found"
|
|
157
|
+
description="Your tokens will appear here"
|
|
158
|
+
/>
|
|
159
|
+
}
|
|
160
|
+
getItemLayout={(_, index) => ({
|
|
161
|
+
length: ListTokenTotalHeight,
|
|
162
|
+
offset: ListTokenTotalHeight * index,
|
|
163
|
+
index
|
|
164
|
+
})}
|
|
165
|
+
renderItem={({ item }) => (
|
|
166
|
+
<ListToken
|
|
167
|
+
key={item.name}
|
|
168
|
+
name={item.name}
|
|
169
|
+
imageSrc={item.logoUri}
|
|
170
|
+
networkSrc={networkImage}
|
|
171
|
+
value={item.value}
|
|
172
|
+
amount={item.quantity.numeric}
|
|
173
|
+
currency={item.symbol}
|
|
174
|
+
onPress={() => onTokenPress(item)}
|
|
175
|
+
disabled={item.address === sourceToken?.address}
|
|
176
|
+
/>
|
|
177
|
+
)}
|
|
178
|
+
/>
|
|
179
|
+
</FlexView>
|
|
180
|
+
</Modal>
|
|
181
|
+
);
|
|
182
|
+
}
|
package/src/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.ts
RENAMED
|
@@ -8,7 +8,9 @@ export default StyleSheet.create({
|
|
|
8
8
|
borderBottomLeftRadius: 0,
|
|
9
9
|
borderBottomRightRadius: 0,
|
|
10
10
|
overflow: 'hidden',
|
|
11
|
-
|
|
11
|
+
margin: 0,
|
|
12
|
+
flex: 1,
|
|
13
|
+
justifyContent: 'flex-end'
|
|
12
14
|
},
|
|
13
15
|
title: {
|
|
14
16
|
paddingTop: Spacing['2xs']
|
|
@@ -29,7 +31,7 @@ export default StyleSheet.create({
|
|
|
29
31
|
marginRight: Spacing.s
|
|
30
32
|
},
|
|
31
33
|
suggestedSeparator: {
|
|
32
|
-
|
|
34
|
+
marginTop: Spacing.s
|
|
33
35
|
},
|
|
34
36
|
iconPlaceholder: {
|
|
35
37
|
height: 32,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { ScrollView } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
ConnectionsController,
|
|
6
6
|
ConstantsUtil,
|
|
@@ -8,7 +8,13 @@ import {
|
|
|
8
8
|
RouterController,
|
|
9
9
|
SwapController
|
|
10
10
|
} from '@reown/appkit-core-react-native';
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
Button,
|
|
13
|
+
FlexView,
|
|
14
|
+
IconLink,
|
|
15
|
+
useTheme,
|
|
16
|
+
useCustomDimensions
|
|
17
|
+
} from '@reown/appkit-ui-react-native';
|
|
12
18
|
import { NumberUtil, type SwapInputTarget } from '@reown/appkit-common-react-native';
|
|
13
19
|
|
|
14
20
|
import { useKeyboard } from '../../hooks/useKeyboard';
|
|
@@ -16,7 +22,7 @@ import { SwapInput } from '../../partials/w3m-swap-input';
|
|
|
16
22
|
import { useDebounceCallback } from '../../hooks/useDebounceCallback';
|
|
17
23
|
import { SwapDetails } from '../../partials/w3m-swap-details';
|
|
18
24
|
import styles from './styles';
|
|
19
|
-
import {
|
|
25
|
+
import { SwapSelectTokenModal } from './components/select-token-modal';
|
|
20
26
|
|
|
21
27
|
export function SwapView() {
|
|
22
28
|
const {
|
|
@@ -33,7 +39,8 @@ export function SwapView() {
|
|
|
33
39
|
inputError
|
|
34
40
|
} = useSnapshot(SwapController.state);
|
|
35
41
|
const Theme = useTheme();
|
|
36
|
-
const {
|
|
42
|
+
const { padding } = useCustomDimensions();
|
|
43
|
+
const { keyboardShown } = useKeyboard();
|
|
37
44
|
const [showModal, setShowModal] = useState<SwapInputTarget | undefined>();
|
|
38
45
|
const showDetails = !!sourceToken && !!toToken && !inputError;
|
|
39
46
|
|
|
@@ -150,7 +157,8 @@ export function SwapView() {
|
|
|
150
157
|
return (
|
|
151
158
|
<>
|
|
152
159
|
<ScrollView
|
|
153
|
-
style={
|
|
160
|
+
style={[{ paddingHorizontal: padding }, keyboardShown && styles.withKeyboard]}
|
|
161
|
+
bounces={false}
|
|
154
162
|
keyboardShouldPersistTaps="always"
|
|
155
163
|
>
|
|
156
164
|
<FlexView padding={['l', 'l', '2xl', 'l']} alignItems="center" justifyContent="center">
|
|
@@ -200,9 +208,7 @@ export function SwapView() {
|
|
|
200
208
|
</Button>
|
|
201
209
|
</FlexView>
|
|
202
210
|
</ScrollView>
|
|
203
|
-
<
|
|
204
|
-
<SwapSelectTokenView style={styles.modalContent} onClose={onModalClose} type={showModal} />
|
|
205
|
-
</Modal>
|
|
211
|
+
<SwapSelectTokenModal visible={!!showModal} onClose={onModalClose} type={showModal} />
|
|
206
212
|
</>
|
|
207
213
|
);
|
|
208
214
|
}
|
|
@@ -20,13 +20,8 @@ export default StyleSheet.create({
|
|
|
20
20
|
marginTop: Spacing.xs,
|
|
21
21
|
width: '100%'
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
margin: 0,
|
|
25
|
-
flex: 1,
|
|
26
|
-
justifyContent: 'flex-end'
|
|
27
|
-
},
|
|
23
|
+
|
|
28
24
|
withKeyboard: {
|
|
29
|
-
height: '100%'
|
|
30
|
-
maxHeight: '100%'
|
|
25
|
+
height: '100%'
|
|
31
26
|
}
|
|
32
27
|
});
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { ScrollView } from 'react-native';
|
|
1
2
|
import { useSnapshot } from 'valtio';
|
|
2
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
FlexView,
|
|
5
|
+
Text,
|
|
6
|
+
Banner,
|
|
7
|
+
NetworkImage,
|
|
8
|
+
useCustomDimensions
|
|
9
|
+
} from '@reown/appkit-ui-react-native';
|
|
3
10
|
import {
|
|
4
11
|
ApiController,
|
|
5
12
|
AssetController,
|
|
@@ -9,6 +16,7 @@ import {
|
|
|
9
16
|
import styles from './styles';
|
|
10
17
|
|
|
11
18
|
export function WalletCompatibleNetworks() {
|
|
19
|
+
const { padding } = useCustomDimensions();
|
|
12
20
|
const { networks, accountType } = useSnapshot(ConnectionsController.state);
|
|
13
21
|
const { networkImages } = useSnapshot(AssetController.state);
|
|
14
22
|
const isSmartAccount = accountType === 'smartAccount';
|
|
@@ -22,8 +30,8 @@ export function WalletCompatibleNetworks() {
|
|
|
22
30
|
const imageHeaders = ApiController._getApiHeaders();
|
|
23
31
|
|
|
24
32
|
return (
|
|
25
|
-
<ScrollView>
|
|
26
|
-
<FlexView padding={['xl', 's', '
|
|
33
|
+
<ScrollView bounces={false} style={{ paddingHorizontal: padding }} fadingEdgeLength={20}>
|
|
34
|
+
<FlexView padding={['xl', 's', 's', 's']}>
|
|
27
35
|
<Banner icon="warningCircle" text="You can only receive assets on these networks." />
|
|
28
36
|
{approvedNetworks.map((network, index) => (
|
|
29
37
|
<FlexView
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { ScrollView, StyleSheet } from 'react-native';
|
|
3
3
|
import {
|
|
4
4
|
Chip,
|
|
5
5
|
CompatibleNetwork,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
Spacing,
|
|
9
9
|
Text,
|
|
10
10
|
UiUtil,
|
|
11
|
-
|
|
11
|
+
useCustomDimensions
|
|
12
12
|
} from '@reown/appkit-ui-react-native';
|
|
13
13
|
import {
|
|
14
14
|
ApiController,
|
|
@@ -28,6 +28,7 @@ export function WalletReceiveView() {
|
|
|
28
28
|
);
|
|
29
29
|
const address = CoreHelperUtil.getPlainAddress(activeAddress);
|
|
30
30
|
const networkImage = AssetUtil.getNetworkImage(activeNetwork, networkImages);
|
|
31
|
+
const { padding } = useCustomDimensions();
|
|
31
32
|
const canCopy = OptionsController.isClipboardAvailable();
|
|
32
33
|
const isSmartAccount = accountType === 'smartAccount';
|
|
33
34
|
|
|
@@ -67,7 +68,7 @@ export function WalletReceiveView() {
|
|
|
67
68
|
if (!address) return;
|
|
68
69
|
|
|
69
70
|
return (
|
|
70
|
-
<ScrollView>
|
|
71
|
+
<ScrollView bounces={false} style={{ paddingHorizontal: padding }}>
|
|
71
72
|
<FlexView padding={['xl', 'xl', '2xl', 'xl']} alignItems="center">
|
|
72
73
|
<Chip
|
|
73
74
|
label={label}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
|
+
import { ScrollView } from 'react-native';
|
|
2
3
|
import {
|
|
3
4
|
Avatar,
|
|
4
5
|
Button,
|
|
@@ -7,7 +8,7 @@ import {
|
|
|
7
8
|
Image,
|
|
8
9
|
Text,
|
|
9
10
|
UiUtil,
|
|
10
|
-
|
|
11
|
+
useCustomDimensions
|
|
11
12
|
} from '@reown/appkit-ui-react-native';
|
|
12
13
|
import { NumberUtil } from '@reown/appkit-common-react-native';
|
|
13
14
|
import {
|
|
@@ -20,6 +21,7 @@ import styles from './styles';
|
|
|
20
21
|
import { PreviewSendDetails } from './components/preview-send-details';
|
|
21
22
|
|
|
22
23
|
export function WalletSendPreviewView() {
|
|
24
|
+
const { padding } = useCustomDimensions();
|
|
23
25
|
const { activeNetwork } = useSnapshot(ConnectionsController.state);
|
|
24
26
|
const { token, receiverAddress, receiverProfileName, receiverProfileImageUrl, loading } =
|
|
25
27
|
useSnapshot(SendController.state);
|
|
@@ -67,7 +69,7 @@ export function WalletSendPreviewView() {
|
|
|
67
69
|
};
|
|
68
70
|
|
|
69
71
|
return (
|
|
70
|
-
<ScrollView>
|
|
72
|
+
<ScrollView style={{ paddingHorizontal: padding }}>
|
|
71
73
|
<FlexView padding={['l', 'xl', '3xl', 'xl']}>
|
|
72
74
|
<FlexView flexDirection="row" alignItems="center" justifyContent="space-between">
|
|
73
75
|
<FlexView>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { useSnapshot } from 'valtio';
|
|
3
|
+
import { ScrollView } from 'react-native';
|
|
3
4
|
import {
|
|
4
5
|
FlexView,
|
|
5
6
|
InputText,
|
|
6
7
|
ListToken,
|
|
7
8
|
Text,
|
|
8
|
-
useCustomDimensions
|
|
9
|
-
ScrollView
|
|
9
|
+
useCustomDimensions
|
|
10
10
|
} from '@reown/appkit-ui-react-native';
|
|
11
11
|
import {
|
|
12
12
|
AssetController,
|
|
@@ -19,16 +19,14 @@ import type { Balance } from '@reown/appkit-common-react-native';
|
|
|
19
19
|
|
|
20
20
|
import { Placeholder } from '../../partials/w3m-placeholder';
|
|
21
21
|
import styles from './styles';
|
|
22
|
-
import type { LayoutChangeEvent } from 'react-native';
|
|
23
22
|
|
|
24
23
|
export function WalletSendSelectTokenView() {
|
|
25
|
-
const { padding
|
|
24
|
+
const { padding } = useCustomDimensions();
|
|
26
25
|
const { activeNetwork, balances } = useSnapshot(ConnectionsController.state);
|
|
27
26
|
const { networkImages } = useSnapshot(AssetController.state);
|
|
28
27
|
const networkImage = AssetUtil.getNetworkImage(activeNetwork, networkImages);
|
|
29
28
|
const [tokenSearch, setTokenSearch] = useState<string>('');
|
|
30
29
|
const [filteredTokens, setFilteredTokens] = useState(balances ?? []);
|
|
31
|
-
const [headerHeight, setHeaderHeight] = useState<number>(0);
|
|
32
30
|
|
|
33
31
|
const onSearchChange = (value: string) => {
|
|
34
32
|
setTokenSearch(value);
|
|
@@ -38,12 +36,6 @@ export function WalletSendSelectTokenView() {
|
|
|
38
36
|
setFilteredTokens(filtered ?? []);
|
|
39
37
|
};
|
|
40
38
|
|
|
41
|
-
const onLayout = (event: LayoutChangeEvent) => {
|
|
42
|
-
const { height } = event.nativeEvent.layout;
|
|
43
|
-
// Main header height + input height
|
|
44
|
-
setHeaderHeight(height + 60);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
39
|
const onTokenPress = (_token: Balance) => {
|
|
48
40
|
SendController.setToken(_token);
|
|
49
41
|
SendController.setTokenAmount(undefined);
|
|
@@ -52,10 +44,10 @@ export function WalletSendSelectTokenView() {
|
|
|
52
44
|
|
|
53
45
|
return (
|
|
54
46
|
<FlexView
|
|
55
|
-
margin={['l', '0', '
|
|
47
|
+
margin={['l', '0', '2xl', '0']}
|
|
56
48
|
style={[styles.container, { paddingHorizontal: padding }]}
|
|
57
49
|
>
|
|
58
|
-
<FlexView margin={['0', 'm', 'm', 'm']}
|
|
50
|
+
<FlexView margin={['0', 'm', 'm', 'm']}>
|
|
59
51
|
<InputText
|
|
60
52
|
value={tokenSearch}
|
|
61
53
|
icon="search"
|
|
@@ -64,11 +56,7 @@ export function WalletSendSelectTokenView() {
|
|
|
64
56
|
clearButtonMode="while-editing"
|
|
65
57
|
/>
|
|
66
58
|
</FlexView>
|
|
67
|
-
<ScrollView
|
|
68
|
-
disablePadding
|
|
69
|
-
contentContainerStyle={styles.tokenList}
|
|
70
|
-
style={{ height: maxHeight - headerHeight }}
|
|
71
|
-
>
|
|
59
|
+
<ScrollView bounces={false} fadingEdgeLength={20} contentContainerStyle={styles.tokenList}>
|
|
72
60
|
<Text variant="paragraph-500" color="fg-200" style={styles.title}>
|
|
73
61
|
Your tokens
|
|
74
62
|
</Text>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
|
|
2
|
+
import { ScrollView } from 'react-native';
|
|
3
3
|
import { useSnapshot } from 'valtio';
|
|
4
4
|
import {
|
|
5
5
|
ConnectionsController,
|
|
@@ -7,14 +7,15 @@ import {
|
|
|
7
7
|
RouterController,
|
|
8
8
|
SendController
|
|
9
9
|
} from '@reown/appkit-core-react-native';
|
|
10
|
-
import { Button, FlexView, IconBox,
|
|
10
|
+
import { Button, FlexView, IconBox, useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
11
11
|
import { SendInputToken } from '../../partials/w3m-send-input-token';
|
|
12
12
|
import { useKeyboard } from '../../hooks/useKeyboard';
|
|
13
13
|
import { SendInputAddress } from '../../partials/w3m-send-input-address';
|
|
14
14
|
import styles from './styles';
|
|
15
15
|
|
|
16
16
|
export function WalletSendView() {
|
|
17
|
-
const {
|
|
17
|
+
const { padding } = useCustomDimensions();
|
|
18
|
+
const { keyboardShown } = useKeyboard();
|
|
18
19
|
const [isBalanceLoading, setBalanceLoading] = useState(false);
|
|
19
20
|
const { token, sendTokenAmount, receiverAddress, receiverProfileName, loading } = useSnapshot(
|
|
20
21
|
SendController.state
|
|
@@ -79,7 +80,8 @@ export function WalletSendView() {
|
|
|
79
80
|
|
|
80
81
|
return (
|
|
81
82
|
<ScrollView
|
|
82
|
-
style={
|
|
83
|
+
style={[{ paddingHorizontal: padding }, keyboardShown && styles.withKeyboard]}
|
|
84
|
+
bounces={false}
|
|
83
85
|
keyboardShouldPersistTaps="always"
|
|
84
86
|
>
|
|
85
87
|
<FlexView padding={['l', 'l', '2xl', 'l']} alignItems="center" justifyContent="center">
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Linking } from 'react-native';
|
|
2
|
-
import { Button, FlexView, Text, Visual,
|
|
1
|
+
import { Linking, ScrollView } from 'react-native';
|
|
2
|
+
import { Button, FlexView, Text, Visual, useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
3
3
|
import styles from './styles';
|
|
4
4
|
|
|
5
5
|
export function WhatIsANetworkView() {
|
|
6
|
+
const { padding } = useCustomDimensions();
|
|
6
7
|
const onLearnMorePress = () => {
|
|
7
8
|
Linking.openURL('https://ethereum.org/en/developers/docs/networks/');
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
return (
|
|
11
|
-
<ScrollView>
|
|
12
|
-
<FlexView alignItems="center" padding={['l', '4xl', '
|
|
12
|
+
<ScrollView bounces={false} fadingEdgeLength={20} style={{ paddingHorizontal: padding }}>
|
|
13
|
+
<FlexView alignItems="center" padding={['l', '4xl', '3xl', '4xl']}>
|
|
13
14
|
<FlexView flexDirection="row" padding={['0', '0', 'xs', '0']}>
|
|
14
15
|
<Visual name="network" />
|
|
15
16
|
<Visual name="layers" style={styles.visual} />
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ScrollView } from 'react-native';
|
|
2
|
+
import { Button, FlexView, Text, Visual, useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
2
3
|
import { EventsController, RouterController } from '@reown/appkit-core-react-native';
|
|
3
4
|
import styles from './styles';
|
|
4
5
|
|
|
5
6
|
export function WhatIsAWalletView() {
|
|
7
|
+
const { padding } = useCustomDimensions();
|
|
8
|
+
|
|
6
9
|
const onGetWalletPress = () => {
|
|
7
10
|
RouterController.push('GetWallet');
|
|
8
11
|
EventsController.sendEvent({ type: 'track', event: 'CLICK_GET_WALLET' });
|
|
9
12
|
};
|
|
10
13
|
|
|
11
14
|
return (
|
|
12
|
-
<ScrollView
|
|
13
|
-
|
|
15
|
+
<ScrollView
|
|
16
|
+
bounces={false}
|
|
17
|
+
fadingEdgeLength={20}
|
|
18
|
+
style={{ paddingHorizontal: padding }}
|
|
19
|
+
testID="what-is-a-wallet-view"
|
|
20
|
+
>
|
|
21
|
+
<FlexView alignItems="center" padding={['xs', '4xl', 'xl', '4xl']}>
|
|
14
22
|
<FlexView flexDirection="row" padding={['0', '0', 's', '0']}>
|
|
15
23
|
<Visual name="login" />
|
|
16
24
|
<Visual name="profile" style={styles.visual} />
|