@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-what-is-a-wallet-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-what-is-a-wallet-view/index.tsx"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB,4CA6DhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-react-native",
|
|
3
|
-
"version": "0.0.0-fix-
|
|
3
|
+
"version": "0.0.0-fix-ui-changes-20250828191102",
|
|
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-fix-
|
|
42
|
-
"@reown/appkit-core-react-native": "0.0.0-fix-
|
|
43
|
-
"@reown/appkit-siwe-react-native": "0.0.0-fix-
|
|
44
|
-
"@reown/appkit-ui-react-native": "0.0.0-fix-
|
|
41
|
+
"@reown/appkit-common-react-native": "0.0.0-fix-ui-changes-20250828191102",
|
|
42
|
+
"@reown/appkit-core-react-native": "0.0.0-fix-ui-changes-20250828191102",
|
|
43
|
+
"@reown/appkit-siwe-react-native": "0.0.0-fix-ui-changes-20250828191102",
|
|
44
|
+
"@reown/appkit-ui-react-native": "0.0.0-fix-ui-changes-20250828191102",
|
|
45
45
|
"@walletconnect/universal-provider": "2.21.5",
|
|
46
46
|
"valtio": "2.1.5"
|
|
47
47
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
2
|
import { useCallback, useEffect } from 'react';
|
|
3
|
-
import { Card, Modal, ThemeProvider
|
|
3
|
+
import { Card, Modal, ThemeProvider } from '@reown/appkit-ui-react-native';
|
|
4
4
|
import {
|
|
5
5
|
ApiController,
|
|
6
6
|
EventsController,
|
|
@@ -21,7 +21,6 @@ export function AppKit() {
|
|
|
21
21
|
const { open } = useSnapshot(ModalController.state);
|
|
22
22
|
const { themeMode, themeVariables } = useSnapshot(ThemeController.state);
|
|
23
23
|
const { projectId } = useSnapshot(OptionsController.state);
|
|
24
|
-
const { maxHeight } = useCustomDimensions();
|
|
25
24
|
|
|
26
25
|
const handleBackPress = () => {
|
|
27
26
|
if (RouterController.state.history.length > 1) {
|
|
@@ -54,7 +53,7 @@ export function AppKit() {
|
|
|
54
53
|
onBackdropPress={handleModalClose}
|
|
55
54
|
testID="w3m-modal"
|
|
56
55
|
>
|
|
57
|
-
<Card style={
|
|
56
|
+
<Card style={styles.card}>
|
|
58
57
|
<Header />
|
|
59
58
|
<AppKitRouter />
|
|
60
59
|
<Snackbar />
|
|
@@ -35,9 +35,11 @@ import { UiUtil } from '../../utils/UiUtil';
|
|
|
35
35
|
import { useRouteTransition } from '../../hooks/useRouteTransition';
|
|
36
36
|
|
|
37
37
|
import { Animated } from 'react-native';
|
|
38
|
+
import { useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
38
39
|
|
|
39
40
|
export function AppKitRouter() {
|
|
40
41
|
const { view } = useSnapshot(RouterController.state);
|
|
42
|
+
const { maxHeight } = useCustomDimensions();
|
|
41
43
|
const { animateTransition, getAnimatedStyle } = useRouteTransition({
|
|
42
44
|
duration: 300,
|
|
43
45
|
useNativeDriver: true
|
|
@@ -117,7 +119,7 @@ export function AppKitRouter() {
|
|
|
117
119
|
}, [view]);
|
|
118
120
|
|
|
119
121
|
return (
|
|
120
|
-
<Animated.View style={[getAnimatedStyle()]}>
|
|
122
|
+
<Animated.View style={[getAnimatedStyle(), { maxHeight }]}>
|
|
121
123
|
<ViewComponent />
|
|
122
124
|
</Animated.View>
|
|
123
125
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { View, type StyleProp, type ViewStyle, RefreshControl } from 'react-native';
|
|
3
|
+
import { ScrollView, View, type StyleProp, type ViewStyle, RefreshControl } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
FlexView,
|
|
6
6
|
Link,
|
|
@@ -8,8 +8,7 @@ import {
|
|
|
8
8
|
LoadingSpinner,
|
|
9
9
|
Text,
|
|
10
10
|
TransactionUtil,
|
|
11
|
-
useTheme
|
|
12
|
-
ScrollView
|
|
11
|
+
useTheme
|
|
13
12
|
} from '@reown/appkit-ui-react-native';
|
|
14
13
|
import { type Transaction, type TransactionImage } from '@reown/appkit-common-react-native';
|
|
15
14
|
import {
|
|
@@ -122,8 +121,9 @@ export function AccountActivity({ style }: Props) {
|
|
|
122
121
|
|
|
123
122
|
return (
|
|
124
123
|
<ScrollView
|
|
125
|
-
style={style}
|
|
126
|
-
|
|
124
|
+
style={[styles.container, style]}
|
|
125
|
+
fadingEdgeLength={20}
|
|
126
|
+
contentContainerStyle={[styles.contentContainer]}
|
|
127
127
|
refreshControl={
|
|
128
128
|
<RefreshControl
|
|
129
129
|
refreshing={refreshing}
|
|
@@ -2,8 +2,11 @@ import { 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
|
+
paddingHorizontal: Spacing.xs
|
|
7
|
+
},
|
|
5
8
|
contentContainer: {
|
|
6
|
-
paddingBottom: Spacing.
|
|
9
|
+
paddingBottom: Spacing.m
|
|
7
10
|
},
|
|
8
11
|
separatorText: {
|
|
9
12
|
marginVertical: Spacing.xs
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { useCallback, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
RefreshControl,
|
|
4
|
+
ScrollView,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
type StyleProp,
|
|
7
|
+
type ViewStyle
|
|
8
|
+
} from 'react-native';
|
|
3
9
|
import { useSnapshot } from 'valtio';
|
|
4
10
|
import {
|
|
5
11
|
AssetController,
|
|
@@ -14,8 +20,7 @@ import {
|
|
|
14
20
|
ListToken,
|
|
15
21
|
useTheme,
|
|
16
22
|
Spacing,
|
|
17
|
-
LoadingSpinner
|
|
18
|
-
ScrollView
|
|
23
|
+
LoadingSpinner
|
|
19
24
|
} from '@reown/appkit-ui-react-native';
|
|
20
25
|
|
|
21
26
|
interface Props {
|
|
@@ -65,6 +70,7 @@ export function AccountTokens({ style, isLoading }: Props) {
|
|
|
65
70
|
|
|
66
71
|
return (
|
|
67
72
|
<ScrollView
|
|
73
|
+
fadingEdgeLength={20}
|
|
68
74
|
style={style}
|
|
69
75
|
refreshControl={
|
|
70
76
|
<RefreshControl
|
|
@@ -1,45 +1,16 @@
|
|
|
1
|
-
import { CardSelectLoader, FlexView, useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
2
1
|
import { memo } from 'react';
|
|
3
|
-
import {
|
|
2
|
+
import { WalletList } from './WalletList';
|
|
4
3
|
|
|
5
4
|
interface LoadingProps {
|
|
6
|
-
|
|
7
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
5
|
+
loadingItems?: number;
|
|
8
6
|
}
|
|
9
7
|
|
|
10
|
-
function _Loading({
|
|
11
|
-
const { maxWidth, maxHeight } = useCustomDimensions();
|
|
12
|
-
|
|
8
|
+
function _Loading({ loadingItems = 20 }: LoadingProps) {
|
|
13
9
|
return (
|
|
14
|
-
<
|
|
15
|
-
flexDirection="row"
|
|
16
|
-
flexWrap="wrap"
|
|
17
|
-
alignSelf="center"
|
|
18
|
-
style={[styles.container, { maxWidth, maxHeight }]}
|
|
19
|
-
>
|
|
20
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
21
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
22
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
23
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
24
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
25
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
26
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
27
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
28
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
29
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
30
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
31
|
-
<CardSelectLoader style={[containerStyle, { width: itemWidth }]} />
|
|
32
|
-
</FlexView>
|
|
10
|
+
<WalletList data={[]} onItemPress={() => {}} isLoading={true} loadingItems={loadingItems} />
|
|
33
11
|
);
|
|
34
12
|
}
|
|
35
13
|
|
|
36
|
-
const styles = StyleSheet.create({
|
|
37
|
-
container: {
|
|
38
|
-
alignSelf: 'center',
|
|
39
|
-
justifyContent: 'center'
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
14
|
export const Loading = memo(_Loading, () => {
|
|
44
15
|
return true;
|
|
45
16
|
});
|
|
@@ -33,7 +33,7 @@ export function WalletItem({
|
|
|
33
33
|
return (
|
|
34
34
|
<CardSelect
|
|
35
35
|
imageSrc={imageSrc}
|
|
36
|
-
style={[containerStyle, { width: itemWidth }, style]}
|
|
36
|
+
style={[containerStyle, itemWidth ? { width: itemWidth } : undefined, style]}
|
|
37
37
|
imageHeaders={imageHeaders}
|
|
38
38
|
name={item?.name ?? 'Unknown'}
|
|
39
39
|
onPress={() => onItemPress(item)}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { FlatList, StyleSheet } from 'react-native';
|
|
2
|
+
import { WalletItem } from './WalletItem';
|
|
3
|
+
import {
|
|
4
|
+
CardSelectHeight,
|
|
5
|
+
Spacing,
|
|
6
|
+
useCustomDimensions,
|
|
7
|
+
CardSelectLoader
|
|
8
|
+
} from '@reown/appkit-ui-react-native';
|
|
9
|
+
import { ApiController } from '@reown/appkit-core-react-native';
|
|
10
|
+
import type { WcWallet } from '@reown/appkit-common-react-native';
|
|
11
|
+
|
|
12
|
+
const imageHeaders = ApiController._getApiHeaders();
|
|
13
|
+
|
|
14
|
+
const ITEM_HEIGHT = CardSelectHeight;
|
|
15
|
+
const ITEM_HEIGHT_WITH_GAP = ITEM_HEIGHT + Spacing['3xs'];
|
|
16
|
+
|
|
17
|
+
interface Props {
|
|
18
|
+
data: WcWallet[];
|
|
19
|
+
onItemPress: (wallet: WcWallet) => void;
|
|
20
|
+
onEndReached?: () => void;
|
|
21
|
+
onEndReachedThreshold?: number;
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
loadingItems?: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function WalletList({
|
|
27
|
+
data,
|
|
28
|
+
onItemPress,
|
|
29
|
+
onEndReached,
|
|
30
|
+
onEndReachedThreshold,
|
|
31
|
+
isLoading = false,
|
|
32
|
+
loadingItems = 20
|
|
33
|
+
}: Props) {
|
|
34
|
+
const { padding } = useCustomDimensions();
|
|
35
|
+
|
|
36
|
+
// Create loading data if isLoading is true
|
|
37
|
+
const displayData = isLoading
|
|
38
|
+
? Array.from({ length: loadingItems }, (_, index) => ({ id: `loading-${index}` }) as WcWallet)
|
|
39
|
+
: data;
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<FlatList
|
|
43
|
+
fadingEdgeLength={20}
|
|
44
|
+
bounces={false}
|
|
45
|
+
numColumns={4}
|
|
46
|
+
data={displayData}
|
|
47
|
+
style={styles.list}
|
|
48
|
+
columnWrapperStyle={styles.columnWrapperStyle}
|
|
49
|
+
renderItem={({ item }) => {
|
|
50
|
+
if (isLoading) {
|
|
51
|
+
return <CardSelectLoader style={styles.itemContainer} />;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<WalletItem
|
|
56
|
+
item={item}
|
|
57
|
+
imageHeaders={imageHeaders}
|
|
58
|
+
onItemPress={onItemPress}
|
|
59
|
+
style={styles.itemContainer}
|
|
60
|
+
/>
|
|
61
|
+
);
|
|
62
|
+
}}
|
|
63
|
+
contentContainerStyle={[styles.contentContainer, { paddingHorizontal: padding }]}
|
|
64
|
+
onEndReached={onEndReached}
|
|
65
|
+
onEndReachedThreshold={onEndReachedThreshold}
|
|
66
|
+
keyExtractor={item => item?.id}
|
|
67
|
+
getItemLayout={(_, index) => ({
|
|
68
|
+
length: ITEM_HEIGHT_WITH_GAP,
|
|
69
|
+
offset: ITEM_HEIGHT_WITH_GAP * index,
|
|
70
|
+
index
|
|
71
|
+
})}
|
|
72
|
+
/>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const styles = StyleSheet.create({
|
|
77
|
+
list: {
|
|
78
|
+
height: '100%'
|
|
79
|
+
},
|
|
80
|
+
contentContainer: {
|
|
81
|
+
paddingBottom: Spacing['4xl'],
|
|
82
|
+
paddingTop: Spacing['3xs'],
|
|
83
|
+
gap: Spacing['3xs'],
|
|
84
|
+
alignItems: 'center'
|
|
85
|
+
},
|
|
86
|
+
columnWrapperStyle: {
|
|
87
|
+
justifyContent: 'space-around'
|
|
88
|
+
},
|
|
89
|
+
itemContainer: {
|
|
90
|
+
width: '23%'
|
|
91
|
+
}
|
|
92
|
+
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { useSnapshot } from 'valtio';
|
|
3
|
-
import { FlatList } from 'react-native';
|
|
4
3
|
import {
|
|
5
4
|
ApiController,
|
|
6
5
|
OptionsController,
|
|
@@ -8,36 +7,25 @@ import {
|
|
|
8
7
|
type OptionsControllerState
|
|
9
8
|
} from '@reown/appkit-core-react-native';
|
|
10
9
|
import { type WcWallet } from '@reown/appkit-common-react-native';
|
|
11
|
-
import { CardSelectHeight, Spacing, useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
12
10
|
import styles from './styles';
|
|
13
11
|
import { Placeholder } from '../w3m-placeholder';
|
|
14
12
|
import { Loading } from './components/Loading';
|
|
15
|
-
|
|
13
|
+
|
|
14
|
+
import { WalletList } from './components/WalletList';
|
|
16
15
|
|
|
17
16
|
interface AllWalletsListProps {
|
|
18
|
-
columns: number;
|
|
19
17
|
onItemPress: (wallet: WcWallet) => void;
|
|
20
|
-
itemWidth?: number;
|
|
21
18
|
headerHeight?: number;
|
|
22
19
|
}
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export function AllWalletsList({
|
|
27
|
-
columns,
|
|
28
|
-
itemWidth,
|
|
29
|
-
onItemPress,
|
|
30
|
-
headerHeight = 0
|
|
31
|
-
}: AllWalletsListProps) {
|
|
21
|
+
export function AllWalletsList({ onItemPress }: AllWalletsListProps) {
|
|
32
22
|
const [loading, setLoading] = useState<boolean>(ApiController.state.wallets.length === 0);
|
|
33
23
|
const [loadingError, setLoadingError] = useState<boolean>(false);
|
|
34
24
|
const [pageLoading, setPageLoading] = useState<boolean>(false);
|
|
35
|
-
const { maxHeight, padding } = useCustomDimensions();
|
|
36
25
|
const { installed, featured, recommended, wallets } = useSnapshot(ApiController.state);
|
|
37
26
|
const { customWallets } = useSnapshot(OptionsController.state) as OptionsControllerState;
|
|
38
|
-
const imageHeaders = ApiController._getApiHeaders();
|
|
39
27
|
const preloadedWallets = installed.length + featured.length + recommended.length;
|
|
40
|
-
const loadingItems =
|
|
28
|
+
const loadingItems = 4 - ((100 + preloadedWallets) % 4);
|
|
41
29
|
|
|
42
30
|
const combinedWallets = [
|
|
43
31
|
...(customWallets ?? []),
|
|
@@ -95,7 +83,7 @@ export function AllWalletsList({
|
|
|
95
83
|
}, []);
|
|
96
84
|
|
|
97
85
|
if (loading) {
|
|
98
|
-
return <Loading
|
|
86
|
+
return <Loading loadingItems={20} />;
|
|
99
87
|
}
|
|
100
88
|
|
|
101
89
|
if (loadingError) {
|
|
@@ -114,34 +102,11 @@ export function AllWalletsList({
|
|
|
114
102
|
}
|
|
115
103
|
|
|
116
104
|
return (
|
|
117
|
-
<
|
|
118
|
-
key={columns}
|
|
119
|
-
fadingEdgeLength={20}
|
|
120
|
-
bounces={false}
|
|
121
|
-
numColumns={columns}
|
|
105
|
+
<WalletList
|
|
122
106
|
data={walletList}
|
|
123
|
-
renderItem={({ item }) => (
|
|
124
|
-
<WalletItem
|
|
125
|
-
item={item}
|
|
126
|
-
itemWidth={itemWidth}
|
|
127
|
-
imageHeaders={imageHeaders}
|
|
128
|
-
onItemPress={onItemPress}
|
|
129
|
-
style={styles.itemContainer}
|
|
130
|
-
/>
|
|
131
|
-
)}
|
|
132
|
-
style={{ maxHeight: maxHeight - headerHeight - Spacing['4xl'] }}
|
|
133
|
-
contentContainerStyle={[
|
|
134
|
-
styles.contentContainer,
|
|
135
|
-
{ paddingHorizontal: padding + Spacing['2xs'] }
|
|
136
|
-
]}
|
|
137
107
|
onEndReached={fetchNextPage}
|
|
138
108
|
onEndReachedThreshold={2}
|
|
139
|
-
|
|
140
|
-
getItemLayout={(_, index) => ({
|
|
141
|
-
length: ITEM_HEIGHT,
|
|
142
|
-
offset: ITEM_HEIGHT * index,
|
|
143
|
-
index
|
|
144
|
-
})}
|
|
109
|
+
onItemPress={onItemPress}
|
|
145
110
|
/>
|
|
146
111
|
);
|
|
147
112
|
}
|
|
@@ -4,12 +4,15 @@ import { StyleSheet } from 'react-native';
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
contentContainer: {
|
|
6
6
|
paddingBottom: Spacing['4xl'],
|
|
7
|
-
paddingTop: Spacing['3xs']
|
|
7
|
+
paddingTop: Spacing['3xs'],
|
|
8
|
+
gap: Spacing['3xs'],
|
|
9
|
+
alignItems: 'center'
|
|
10
|
+
},
|
|
11
|
+
columnWrapperStyle: {
|
|
12
|
+
justifyContent: 'space-around'
|
|
8
13
|
},
|
|
9
14
|
itemContainer: {
|
|
10
|
-
|
|
11
|
-
justifyContent: 'center',
|
|
12
|
-
margin: Spacing['4xs']
|
|
15
|
+
width: '23%'
|
|
13
16
|
},
|
|
14
17
|
pageLoader: {
|
|
15
18
|
marginTop: Spacing.xl
|
|
@@ -1,36 +1,23 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
-
import { FlatList } from 'react-native';
|
|
3
2
|
import { ApiController, SnackController } from '@reown/appkit-core-react-native';
|
|
4
3
|
import { type WcWallet } from '@reown/appkit-common-react-native';
|
|
5
|
-
import {
|
|
4
|
+
import { useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
6
5
|
import { Placeholder } from '../w3m-placeholder';
|
|
7
6
|
import styles from './styles';
|
|
8
7
|
|
|
9
8
|
import { Loading } from '../w3m-all-wallets-list/components/Loading';
|
|
10
|
-
import {
|
|
9
|
+
import { WalletList } from '../w3m-all-wallets-list/components/WalletList';
|
|
11
10
|
|
|
12
11
|
export interface AllWalletsSearchProps {
|
|
13
|
-
columns: number;
|
|
14
12
|
onItemPress: (wallet: WcWallet) => void;
|
|
15
|
-
itemWidth?: number;
|
|
16
13
|
searchQuery?: string;
|
|
17
|
-
headerHeight?: number;
|
|
18
14
|
}
|
|
19
15
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export function AllWalletsSearch({
|
|
23
|
-
searchQuery,
|
|
24
|
-
columns,
|
|
25
|
-
itemWidth,
|
|
26
|
-
onItemPress,
|
|
27
|
-
headerHeight = 0
|
|
28
|
-
}: AllWalletsSearchProps) {
|
|
16
|
+
export function AllWalletsSearch({ searchQuery, onItemPress }: AllWalletsSearchProps) {
|
|
29
17
|
const [loading, setLoading] = useState<boolean>(false);
|
|
30
18
|
const [loadingError, setLoadingError] = useState<boolean>(false);
|
|
31
19
|
const [prevSearchQuery, setPrevSearchQuery] = useState<string>('');
|
|
32
|
-
const
|
|
33
|
-
const { maxHeight, padding, isLandscape } = useCustomDimensions();
|
|
20
|
+
const { isLandscape } = useCustomDimensions();
|
|
34
21
|
|
|
35
22
|
const emptyTemplate = () => {
|
|
36
23
|
return (
|
|
@@ -63,7 +50,7 @@ export function AllWalletsSearch({
|
|
|
63
50
|
}, [searchQuery, prevSearchQuery, searchFetch]);
|
|
64
51
|
|
|
65
52
|
if (loading) {
|
|
66
|
-
return <Loading
|
|
53
|
+
return <Loading loadingItems={20} />;
|
|
67
54
|
}
|
|
68
55
|
|
|
69
56
|
if (loadingError) {
|
|
@@ -85,33 +72,5 @@ export function AllWalletsSearch({
|
|
|
85
72
|
return emptyTemplate();
|
|
86
73
|
}
|
|
87
74
|
|
|
88
|
-
return
|
|
89
|
-
<FlatList
|
|
90
|
-
key={columns}
|
|
91
|
-
fadingEdgeLength={20}
|
|
92
|
-
bounces={false}
|
|
93
|
-
numColumns={columns}
|
|
94
|
-
data={ApiController.state.search}
|
|
95
|
-
renderItem={({ item }) => (
|
|
96
|
-
<WalletItem
|
|
97
|
-
item={item}
|
|
98
|
-
itemWidth={itemWidth}
|
|
99
|
-
imageHeaders={imageHeaders}
|
|
100
|
-
onItemPress={onItemPress}
|
|
101
|
-
style={styles.itemContainer}
|
|
102
|
-
/>
|
|
103
|
-
)}
|
|
104
|
-
style={{ maxHeight: maxHeight - headerHeight - Spacing['2xl'] }}
|
|
105
|
-
contentContainerStyle={[
|
|
106
|
-
styles.contentContainer,
|
|
107
|
-
{ paddingHorizontal: padding + Spacing['2xs'] }
|
|
108
|
-
]}
|
|
109
|
-
keyExtractor={item => item.id}
|
|
110
|
-
getItemLayout={(_, index) => ({
|
|
111
|
-
length: ITEM_HEIGHT,
|
|
112
|
-
offset: ITEM_HEIGHT * index,
|
|
113
|
-
index
|
|
114
|
-
})}
|
|
115
|
-
/>
|
|
116
|
-
);
|
|
75
|
+
return <WalletList onItemPress={onItemPress} data={ApiController.state.search} />;
|
|
117
76
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
2
|
import { useCallback, useEffect, useState } from 'react';
|
|
3
|
-
import { Platform } from 'react-native';
|
|
3
|
+
import { Platform, ScrollView } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
RouterController,
|
|
6
6
|
ApiController,
|
|
@@ -19,8 +19,7 @@ import {
|
|
|
19
19
|
WalletImage,
|
|
20
20
|
Link,
|
|
21
21
|
IconBox,
|
|
22
|
-
useCustomDimensions
|
|
23
|
-
ScrollView
|
|
22
|
+
useCustomDimensions
|
|
24
23
|
} from '@reown/appkit-ui-react-native';
|
|
25
24
|
|
|
26
25
|
import { StoreLink } from './components/StoreLink';
|
|
@@ -101,7 +100,7 @@ export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
|
|
|
101
100
|
}, [wcUri, onConnect]);
|
|
102
101
|
|
|
103
102
|
return (
|
|
104
|
-
<ScrollView contentContainerStyle={styles.container}>
|
|
103
|
+
<ScrollView bounces={false} fadingEdgeLength={20} contentContainerStyle={styles.container}>
|
|
105
104
|
<FlexView
|
|
106
105
|
alignItems="center"
|
|
107
106
|
alignSelf="center"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
|
-
import { Linking } from 'react-native';
|
|
3
|
+
import { Linking, ScrollView } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
RouterController,
|
|
6
6
|
ApiController,
|
|
@@ -17,8 +17,7 @@ import {
|
|
|
17
17
|
LoadingThumbnail,
|
|
18
18
|
WalletImage,
|
|
19
19
|
Link,
|
|
20
|
-
IconBox
|
|
21
|
-
ScrollView
|
|
20
|
+
IconBox
|
|
22
21
|
} from '@reown/appkit-ui-react-native';
|
|
23
22
|
|
|
24
23
|
import { ConnectingBody, getMessage } from '../w3m-connecting-body';
|
|
@@ -66,7 +65,7 @@ export function ConnectingWeb({ onCopyUri }: ConnectingWebProps) {
|
|
|
66
65
|
}, [data?.wallet, wcUri]);
|
|
67
66
|
|
|
68
67
|
return (
|
|
69
|
-
<ScrollView>
|
|
68
|
+
<ScrollView bounces={false} fadingEdgeLength={20}>
|
|
70
69
|
<FlexView alignItems="center" padding={['2xl', 'm', '3xl', 'm']}>
|
|
71
70
|
<LoadingThumbnail paused={wcError}>
|
|
72
71
|
<WalletImage
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
|
-
import { FlatList, View, Modal
|
|
2
|
+
import { FlatList, View, Modal } from 'react-native';
|
|
3
3
|
import {
|
|
4
4
|
FlexView,
|
|
5
5
|
IconBox,
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
} from '@reown/appkit-ui-react-native';
|
|
14
14
|
import styles from './styles';
|
|
15
15
|
import { AssetController, AssetUtil, ConnectionsController } from '@reown/appkit-core-react-native';
|
|
16
|
-
import { useEffect, useRef } from 'react';
|
|
17
16
|
|
|
18
17
|
interface SelectorModalProps {
|
|
19
18
|
title?: string;
|
|
@@ -48,32 +47,6 @@ export function SelectorModal({
|
|
|
48
47
|
const { activeNetwork } = useSnapshot(ConnectionsController.state);
|
|
49
48
|
const { networkImages } = useSnapshot(AssetController.state);
|
|
50
49
|
const networkImage = AssetUtil.getNetworkImage(activeNetwork, networkImages);
|
|
51
|
-
const backdropOpacity = useRef(new Animated.Value(0)).current;
|
|
52
|
-
|
|
53
|
-
// Handle backdrop animation
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
let backdropAnimation: Animated.CompositeAnimation;
|
|
56
|
-
|
|
57
|
-
if (visible) {
|
|
58
|
-
backdropAnimation = Animated.timing(backdropOpacity, {
|
|
59
|
-
toValue: 1,
|
|
60
|
-
duration: 300,
|
|
61
|
-
useNativeDriver: true
|
|
62
|
-
});
|
|
63
|
-
backdropAnimation.start();
|
|
64
|
-
} else {
|
|
65
|
-
backdropAnimation = Animated.timing(backdropOpacity, {
|
|
66
|
-
toValue: 0,
|
|
67
|
-
duration: 50,
|
|
68
|
-
useNativeDriver: true
|
|
69
|
-
});
|
|
70
|
-
backdropAnimation.start();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return () => {
|
|
74
|
-
backdropAnimation?.stop();
|
|
75
|
-
};
|
|
76
|
-
}, [visible, backdropOpacity]);
|
|
77
50
|
|
|
78
51
|
const renderSeparator = () => {
|
|
79
52
|
return <View style={{ height: SEPARATOR_HEIGHT }} />;
|
|
@@ -81,7 +54,7 @@ export function SelectorModal({
|
|
|
81
54
|
|
|
82
55
|
return (
|
|
83
56
|
<Modal visible={visible} transparent animationType="slide" onRequestClose={onClose}>
|
|
84
|
-
<
|
|
57
|
+
<View style={styles.modal}>
|
|
85
58
|
<FlexView style={[styles.container, { backgroundColor: Theme['bg-100'] }]}>
|
|
86
59
|
<FlexView
|
|
87
60
|
alignItems="center"
|
|
@@ -142,7 +115,7 @@ export function SelectorModal({
|
|
|
142
115
|
}
|
|
143
116
|
/>
|
|
144
117
|
</FlexView>
|
|
145
|
-
</
|
|
118
|
+
</View>
|
|
146
119
|
</Modal>
|
|
147
120
|
);
|
|
148
121
|
}
|
|
@@ -5,15 +5,14 @@ export default StyleSheet.create({
|
|
|
5
5
|
modal: {
|
|
6
6
|
flex: 1,
|
|
7
7
|
margin: 0,
|
|
8
|
-
justifyContent: 'flex-end'
|
|
9
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)'
|
|
8
|
+
justifyContent: 'flex-end'
|
|
10
9
|
},
|
|
11
10
|
header: {
|
|
12
11
|
marginBottom: Spacing.s,
|
|
13
12
|
paddingHorizontal: Spacing.m
|
|
14
13
|
},
|
|
15
14
|
container: {
|
|
16
|
-
height: '
|
|
15
|
+
height: '100%',
|
|
17
16
|
borderTopLeftRadius: BorderRadius.l,
|
|
18
17
|
borderTopRightRadius: BorderRadius.l,
|
|
19
18
|
paddingTop: Spacing.m
|