@reown/appkit-react-native 0.0.0-fix-height-calc-20250814203104 → 0.0.0-fix-height-calc-20250815174808
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 +15 -24
- package/lib/commonjs/modal/w3m-modal/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-modal/styles.js +1 -2
- package/lib/commonjs/modal/w3m-modal/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js +11 -7
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js +0 -3
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js +11 -7
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/styles.js +0 -3
- package/lib/commonjs/partials/w3m-all-wallets-search/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +1 -2
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +2 -3
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +1 -2
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-view/index.js +1 -2
- package/lib/commonjs/views/w3m-account-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +13 -4
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-socials-view/index.js +1 -2
- package/lib/commonjs/views/w3m-connect-socials-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +1 -2
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +1 -2
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +1 -2
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-get-wallet-view/index.js +1 -2
- package/lib/commonjs/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-networks-view/index.js +1 -2
- package/lib/commonjs/views/w3m-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js +1 -2
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-preview-view/index.js +1 -2
- package/lib/commonjs/views/w3m-swap-preview-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js +1 -2
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/index.js +1 -2
- package/lib/commonjs/views/w3m-swap-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-receive-view/index.js +1 -2
- package/lib/commonjs/views/w3m-wallet-receive-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js +1 -2
- 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 +1 -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 +1 -2
- package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-network-view/index.js +1 -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 +1 -2
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.js.map +1 -1
- package/lib/module/modal/w3m-modal/index.js +16 -25
- package/lib/module/modal/w3m-modal/index.js.map +1 -1
- package/lib/module/modal/w3m-modal/styles.js +1 -2
- package/lib/module/modal/w3m-modal/styles.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/index.js +11 -7
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/styles.js +0 -3
- package/lib/module/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/index.js +11 -7
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/styles.js +0 -3
- package/lib/module/partials/w3m-all-wallets-search/styles.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +1 -2
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +2 -3
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +1 -2
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-account-view/index.js +1 -2
- package/lib/module/views/w3m-account-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +13 -4
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-socials-view/index.js +1 -2
- package/lib/module/views/w3m-connect-socials-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +1 -2
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +1 -2
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +1 -2
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-get-wallet-view/index.js +1 -2
- package/lib/module/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-networks-view/index.js +1 -2
- package/lib/module/views/w3m-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/index.js +1 -2
- package/lib/module/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-preview-view/index.js +1 -2
- package/lib/module/views/w3m-swap-preview-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js +1 -2
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/index.js +1 -2
- package/lib/module/views/w3m-swap-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-receive-view/index.js +1 -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 +1 -2
- 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 +1 -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 +1 -2
- package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-network-view/index.js +1 -2
- 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 +1 -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-modal/styles.d.ts +0 -1
- package/lib/typescript/modal/w3m-modal/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +2 -1
- 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 +0 -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 +2 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/styles.d.ts +0 -3
- package/lib/typescript/partials/w3m-all-wallets-search/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/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-social-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-onramp-loading-view/index.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/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/index.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-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-view/index.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 +16 -25
- package/src/modal/w3m-modal/styles.ts +1 -2
- package/src/partials/w3m-all-wallets-list/index.tsx +12 -6
- package/src/partials/w3m-all-wallets-list/styles.ts +0 -3
- package/src/partials/w3m-all-wallets-search/index.tsx +8 -6
- package/src/partials/w3m-all-wallets-search/styles.ts +0 -3
- package/src/partials/w3m-connecting-mobile/index.tsx +2 -2
- package/src/partials/w3m-connecting-qrcode/index.tsx +9 -3
- package/src/views/w3m-account-default-view/index.tsx +2 -2
- package/src/views/w3m-account-view/index.tsx +2 -2
- package/src/views/w3m-all-wallets-view/index.tsx +23 -3
- package/src/views/w3m-connect-socials-view/index.tsx +1 -2
- package/src/views/w3m-connect-view/index.tsx +8 -2
- package/src/views/w3m-connecting-external-view/index.tsx +2 -2
- package/src/views/w3m-connecting-social-view/index.tsx +8 -2
- package/src/views/w3m-get-wallet-view/index.tsx +1 -2
- package/src/views/w3m-networks-view/index.tsx +2 -2
- package/src/views/w3m-onramp-loading-view/index.tsx +8 -2
- package/src/views/w3m-swap-preview-view/index.tsx +9 -2
- package/src/views/w3m-swap-view/components/select-token-view/index.tsx +2 -2
- package/src/views/w3m-swap-view/index.tsx +7 -2
- package/src/views/w3m-wallet-compatible-networks-view/index.tsx +7 -2
- package/src/views/w3m-wallet-receive-view/index.tsx +2 -2
- package/src/views/w3m-wallet-send-preview-view/index.tsx +10 -2
- package/src/views/w3m-wallet-send-select-token-view/index.tsx +7 -2
- package/src/views/w3m-wallet-send-view/index.tsx +1 -2
- package/src/views/w3m-what-is-a-network-view/index.tsx +1 -2
- package/src/views/w3m-what-is-a-wallet-view/index.tsx +1 -2
- package/lib/commonjs/hooks/useCustomDimensions.js +0 -33
- package/lib/commonjs/hooks/useCustomDimensions.js.map +0 -1
- package/lib/module/hooks/useCustomDimensions.js +0 -30
- package/lib/module/hooks/useCustomDimensions.js.map +0 -1
- package/lib/typescript/hooks/useCustomDimensions.d.ts +0 -11
- package/lib/typescript/hooks/useCustomDimensions.d.ts.map +0 -1
- package/src/hooks/useCustomDimensions.ts +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-socials-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-socials-view/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,kBAAkB,4CAiCjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-view/index.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,WAAW,4CA+E1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-social-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-social-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,oBAAoB,4CAkFnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-get-wallet-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-get-wallet-view/index.tsx"],"names":[],"mappings":"AAOA,wBAAgB,aAAa,4CA4C5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-loading-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-loading-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,4CA4IhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-preview-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-preview-view/index.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,eAAe,4CAuH9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-view/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-view/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAsBtB,OAAO,EAAE,KAAK,eAAe,EAA6B,MAAM,mCAAmC,CAAC;AAMpG,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,2CAoIlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,QAAQ,4CA6LvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-compatible-networks-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-compatible-networks-view/index.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,wBAAwB,4CAuCvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-preview-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-preview-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,qBAAqB,4CAgHpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-select-token-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-select-token-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,yBAAyB,4CA+DxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/index.tsx"],"names":[],"mappings":"AAeA,wBAAgB,cAAc,4CAwG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-what-is-a-network-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-what-is-a-network-view/index.tsx"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,4CA2CjC"}
|
|
@@ -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-height-calc-
|
|
3
|
+
"version": "0.0.0-fix-height-calc-20250815174808",
|
|
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-height-calc-
|
|
42
|
-
"@reown/appkit-core-react-native": "0.0.0-fix-height-calc-
|
|
43
|
-
"@reown/appkit-siwe-react-native": "0.0.0-fix-height-calc-
|
|
44
|
-
"@reown/appkit-ui-react-native": "0.0.0-fix-height-calc-
|
|
41
|
+
"@reown/appkit-common-react-native": "0.0.0-fix-height-calc-20250815174808",
|
|
42
|
+
"@reown/appkit-core-react-native": "0.0.0-fix-height-calc-20250815174808",
|
|
43
|
+
"@reown/appkit-siwe-react-native": "0.0.0-fix-height-calc-20250815174808",
|
|
44
|
+
"@reown/appkit-ui-react-native": "0.0.0-fix-height-calc-20250815174808",
|
|
45
45
|
"@walletconnect/universal-provider": "2.21.5",
|
|
46
46
|
"valtio": "2.1.5"
|
|
47
47
|
},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
2
|
import { useCallback, useEffect } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { Card, Modal, ThemeProvider } from '@reown/appkit-ui-react-native';
|
|
3
|
+
import { Card, Modal, ThemeProvider, useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
5
4
|
import {
|
|
6
5
|
ApiController,
|
|
7
6
|
EventsController,
|
|
@@ -14,7 +13,6 @@ import {
|
|
|
14
13
|
import { AppKitRouter } from '../w3m-router';
|
|
15
14
|
import { Header } from '../../partials/w3m-header';
|
|
16
15
|
import { Snackbar } from '../../partials/w3m-snackbar';
|
|
17
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
18
16
|
import { useInternalAppKit } from '../../AppKitContext';
|
|
19
17
|
import styles from './styles';
|
|
20
18
|
|
|
@@ -23,10 +21,7 @@ export function AppKit() {
|
|
|
23
21
|
const { open } = useSnapshot(ModalController.state);
|
|
24
22
|
const { themeMode, themeVariables } = useSnapshot(ThemeController.state);
|
|
25
23
|
const { projectId } = useSnapshot(OptionsController.state);
|
|
26
|
-
const {
|
|
27
|
-
const { isLandscape } = useCustomDimensions();
|
|
28
|
-
const portraitHeight = height - 80;
|
|
29
|
-
const landScapeHeight = height * 0.95 - (StatusBar.currentHeight ?? 0);
|
|
24
|
+
const { maxHeight } = useCustomDimensions();
|
|
30
25
|
|
|
31
26
|
const handleBackPress = () => {
|
|
32
27
|
if (RouterController.state.history.length > 1) {
|
|
@@ -52,23 +47,19 @@ export function AppKit() {
|
|
|
52
47
|
}, [projectId, prefetch]);
|
|
53
48
|
|
|
54
49
|
return (
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
>
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</Card>
|
|
70
|
-
</Modal>
|
|
71
|
-
</ThemeProvider>
|
|
72
|
-
</>
|
|
50
|
+
<ThemeProvider themeMode={themeMode} themeVariables={themeVariables}>
|
|
51
|
+
<Modal
|
|
52
|
+
visible={open}
|
|
53
|
+
onRequestClose={handleBackPress}
|
|
54
|
+
onBackdropPress={handleModalClose}
|
|
55
|
+
testID="w3m-modal"
|
|
56
|
+
>
|
|
57
|
+
<Card style={[styles.card, { maxHeight }]}>
|
|
58
|
+
<Header />
|
|
59
|
+
<AppKitRouter />
|
|
60
|
+
<Snackbar />
|
|
61
|
+
</Card>
|
|
62
|
+
</Modal>
|
|
63
|
+
</ThemeProvider>
|
|
73
64
|
);
|
|
74
65
|
}
|
|
@@ -15,24 +15,30 @@ import {
|
|
|
15
15
|
CardSelectLoader,
|
|
16
16
|
CardSelectHeight,
|
|
17
17
|
FlexView,
|
|
18
|
-
Spacing
|
|
18
|
+
Spacing,
|
|
19
|
+
useCustomDimensions
|
|
19
20
|
} from '@reown/appkit-ui-react-native';
|
|
20
21
|
import styles from './styles';
|
|
21
22
|
import { UiUtil } from '../../utils/UiUtil';
|
|
22
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
23
23
|
import { Placeholder } from '../w3m-placeholder';
|
|
24
24
|
|
|
25
25
|
interface AllWalletsListProps {
|
|
26
26
|
columns: number;
|
|
27
27
|
onItemPress: (wallet: WcWallet) => void;
|
|
28
28
|
itemWidth?: number;
|
|
29
|
+
headerHeight?: number;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
export function AllWalletsList({
|
|
32
|
+
export function AllWalletsList({
|
|
33
|
+
columns,
|
|
34
|
+
itemWidth,
|
|
35
|
+
onItemPress,
|
|
36
|
+
headerHeight = 0
|
|
37
|
+
}: AllWalletsListProps) {
|
|
32
38
|
const [loading, setLoading] = useState<boolean>(ApiController.state.wallets.length === 0);
|
|
33
39
|
const [loadingError, setLoadingError] = useState<boolean>(false);
|
|
34
40
|
const [pageLoading, setPageLoading] = useState<boolean>(false);
|
|
35
|
-
const { maxWidth, padding } = useCustomDimensions();
|
|
41
|
+
const { maxWidth, maxHeight, padding } = useCustomDimensions();
|
|
36
42
|
const { installed, featured, recommended, wallets } = useSnapshot(ApiController.state);
|
|
37
43
|
const { walletImages } = useSnapshot(AssetController.state);
|
|
38
44
|
const { customWallets } = useSnapshot(OptionsController.state) as OptionsControllerState;
|
|
@@ -67,7 +73,7 @@ export function AllWalletsList({ columns, itemWidth, onItemPress }: AllWalletsLi
|
|
|
67
73
|
flexWrap="wrap"
|
|
68
74
|
alignSelf="center"
|
|
69
75
|
padding={['0', '0', 's', 'xs']}
|
|
70
|
-
style={
|
|
76
|
+
style={{ maxWidth, maxHeight }}
|
|
71
77
|
>
|
|
72
78
|
{Array.from({ length: items }).map((_, index) => (
|
|
73
79
|
<View key={index} style={[styles.itemContainer, { width: itemWidth }]}>
|
|
@@ -166,7 +172,7 @@ export function AllWalletsList({ columns, itemWidth, onItemPress }: AllWalletsLi
|
|
|
166
172
|
numColumns={columns}
|
|
167
173
|
data={walletList}
|
|
168
174
|
renderItem={walletTemplate}
|
|
169
|
-
style={
|
|
175
|
+
style={{ maxHeight: maxHeight - headerHeight - Spacing['4xl'] }}
|
|
170
176
|
contentContainerStyle={[styles.contentContainer, { paddingHorizontal: padding + Spacing.xs }]}
|
|
171
177
|
onEndReached={fetchNextPage}
|
|
172
178
|
onEndReachedThreshold={2}
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
CardSelectHeight,
|
|
13
13
|
CardSelectLoader,
|
|
14
14
|
FlexView,
|
|
15
|
-
Spacing
|
|
15
|
+
Spacing,
|
|
16
|
+
useCustomDimensions
|
|
16
17
|
} from '@reown/appkit-ui-react-native';
|
|
17
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
18
18
|
import { Placeholder } from '../w3m-placeholder';
|
|
19
19
|
import styles from './styles';
|
|
20
20
|
import { useSnapshot } from 'valtio';
|
|
@@ -24,19 +24,21 @@ export interface AllWalletsSearchProps {
|
|
|
24
24
|
onItemPress: (wallet: WcWallet) => void;
|
|
25
25
|
itemWidth?: number;
|
|
26
26
|
searchQuery?: string;
|
|
27
|
+
headerHeight?: number;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export function AllWalletsSearch({
|
|
30
31
|
searchQuery,
|
|
31
32
|
columns,
|
|
32
33
|
itemWidth,
|
|
33
|
-
onItemPress
|
|
34
|
+
onItemPress,
|
|
35
|
+
headerHeight = 0
|
|
34
36
|
}: AllWalletsSearchProps) {
|
|
35
37
|
const [loading, setLoading] = useState<boolean>(false);
|
|
36
38
|
const [loadingError, setLoadingError] = useState<boolean>(false);
|
|
37
39
|
const [prevSearchQuery, setPrevSearchQuery] = useState<string>('');
|
|
38
40
|
const imageHeaders = ApiController._getApiHeaders();
|
|
39
|
-
const { maxWidth, padding, isLandscape } = useCustomDimensions();
|
|
41
|
+
const { maxWidth, maxHeight, padding, isLandscape } = useCustomDimensions();
|
|
40
42
|
const { walletImages } = useSnapshot(AssetController.state);
|
|
41
43
|
|
|
42
44
|
const ITEM_HEIGHT = CardSelectHeight + Spacing.xs * 2;
|
|
@@ -65,7 +67,7 @@ export function AllWalletsSearch({
|
|
|
65
67
|
flexWrap="wrap"
|
|
66
68
|
alignSelf="center"
|
|
67
69
|
padding={['0', '0', 's', 'xs']}
|
|
68
|
-
style={
|
|
70
|
+
style={{ maxWidth, maxHeight: maxHeight - headerHeight }}
|
|
69
71
|
>
|
|
70
72
|
{Array.from({ length: items }).map((_, index) => (
|
|
71
73
|
<View key={index} style={[styles.itemContainer, { width: itemWidth }]}>
|
|
@@ -137,7 +139,7 @@ export function AllWalletsSearch({
|
|
|
137
139
|
numColumns={columns}
|
|
138
140
|
data={ApiController.state.search}
|
|
139
141
|
renderItem={walletTemplate}
|
|
140
|
-
style={
|
|
142
|
+
style={{ maxHeight: maxHeight - headerHeight - Spacing['2xl'] }}
|
|
141
143
|
contentContainerStyle={[styles.contentContainer, { paddingHorizontal: padding + Spacing.xs }]}
|
|
142
144
|
keyExtractor={item => item.id}
|
|
143
145
|
getItemLayout={(_, index) => ({
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
LoadingThumbnail,
|
|
19
19
|
WalletImage,
|
|
20
20
|
Link,
|
|
21
|
-
IconBox
|
|
21
|
+
IconBox,
|
|
22
|
+
useCustomDimensions
|
|
22
23
|
} from '@reown/appkit-ui-react-native';
|
|
23
24
|
|
|
24
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
25
25
|
import { StoreLink } from './components/StoreLink';
|
|
26
26
|
import { ConnectingBody, getMessage, type BodyErrorType } from '../w3m-connecting-body';
|
|
27
27
|
import styles from './styles';
|
|
@@ -6,8 +6,14 @@ import {
|
|
|
6
6
|
OptionsController,
|
|
7
7
|
SnackController
|
|
8
8
|
} from '@reown/appkit-core-react-native';
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
import {
|
|
10
|
+
FlexView,
|
|
11
|
+
Link,
|
|
12
|
+
QrCode,
|
|
13
|
+
Text,
|
|
14
|
+
Spacing,
|
|
15
|
+
useCustomDimensions
|
|
16
|
+
} from '@reown/appkit-ui-react-native';
|
|
11
17
|
import styles from './styles';
|
|
12
18
|
import { ReownButton } from './components/ReownButton';
|
|
13
19
|
|
|
@@ -51,7 +57,7 @@ export function ConnectingQrCode() {
|
|
|
51
57
|
padding="xl"
|
|
52
58
|
>
|
|
53
59
|
<QrCode size={qrSize} uri={wcUri} testID="qr-code" />
|
|
54
|
-
<FlexView alignItems="center" margin=
|
|
60
|
+
<FlexView alignItems="center" margin="m">
|
|
55
61
|
<Text variant="paragraph-500">Scan this QR code with your phone</Text>
|
|
56
62
|
{showCopy ? (
|
|
57
63
|
<Link
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
Text,
|
|
26
26
|
UiUtil,
|
|
27
27
|
Spacing,
|
|
28
|
-
ListItem
|
|
28
|
+
ListItem,
|
|
29
|
+
useCustomDimensions
|
|
29
30
|
} from '@reown/appkit-ui-react-native';
|
|
30
31
|
|
|
31
32
|
import { useInternalAppKit } from '../../AppKitContext';
|
|
32
33
|
|
|
33
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
34
34
|
import { AuthButtons } from './components/auth-buttons';
|
|
35
35
|
import styles from './styles';
|
|
36
36
|
|
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
Icon,
|
|
8
8
|
IconLink,
|
|
9
9
|
NetworkButton,
|
|
10
|
-
useTheme
|
|
10
|
+
useTheme,
|
|
11
|
+
useCustomDimensions
|
|
11
12
|
} from '@reown/appkit-ui-react-native';
|
|
12
13
|
import {
|
|
13
14
|
ApiController,
|
|
@@ -21,7 +22,6 @@ import {
|
|
|
21
22
|
SendController
|
|
22
23
|
} from '@reown/appkit-core-react-native';
|
|
23
24
|
|
|
24
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
25
25
|
import { AccountWalletFeatures } from '../../partials/w3m-account-wallet-features';
|
|
26
26
|
import styles from './styles';
|
|
27
27
|
|
|
@@ -1,25 +1,38 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { WcController, EventsController, RouterController } from '@reown/appkit-core-react-native';
|
|
3
3
|
import { type WcWallet } from '@reown/appkit-common-react-native';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
FlexView,
|
|
6
|
+
IconLink,
|
|
7
|
+
SearchBar,
|
|
8
|
+
Spacing,
|
|
9
|
+
useTheme,
|
|
10
|
+
useCustomDimensions
|
|
11
|
+
} from '@reown/appkit-ui-react-native';
|
|
5
12
|
|
|
6
13
|
import styles from './styles';
|
|
7
14
|
import { useDebounceCallback } from '../../hooks/useDebounceCallback';
|
|
8
15
|
import { AllWalletsList } from '../../partials/w3m-all-wallets-list';
|
|
9
16
|
import { AllWalletsSearch } from '../../partials/w3m-all-wallets-search';
|
|
10
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
11
17
|
import { WcHelpersUtil } from '../../utils/HelpersUtil';
|
|
18
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
12
19
|
|
|
13
20
|
export function AllWalletsView() {
|
|
14
21
|
const Theme = useTheme();
|
|
15
22
|
const [searchQuery, setSearchQuery] = useState<string>('');
|
|
16
23
|
const { maxWidth } = useCustomDimensions();
|
|
24
|
+
const [headerHeight, setHeaderHeight] = useState<number>(0);
|
|
17
25
|
const numColumns = 4;
|
|
18
26
|
const usableWidth = maxWidth - Spacing.xs * 2;
|
|
19
27
|
const itemWidth = Math.abs(Math.trunc(usableWidth / numColumns));
|
|
20
28
|
|
|
21
29
|
const { debouncedCallback: onInputChange } = useDebounceCallback({ callback: setSearchQuery });
|
|
22
30
|
|
|
31
|
+
const onHeaderLayout = (event: LayoutChangeEvent) => {
|
|
32
|
+
const { height } = event.nativeEvent.layout;
|
|
33
|
+
setHeaderHeight(height);
|
|
34
|
+
};
|
|
35
|
+
|
|
23
36
|
const onWalletPress = (wallet: WcWallet) => {
|
|
24
37
|
const isExternal = WcHelpersUtil.isExternalWallet(wallet);
|
|
25
38
|
if (isExternal) {
|
|
@@ -52,6 +65,7 @@ export function AllWalletsView() {
|
|
|
52
65
|
<FlexView
|
|
53
66
|
padding={['s', 'l', 'xs', 'l']}
|
|
54
67
|
flexDirection="row"
|
|
68
|
+
onLayout={onHeaderLayout}
|
|
55
69
|
alignItems="center"
|
|
56
70
|
style={[
|
|
57
71
|
styles.header,
|
|
@@ -85,12 +99,18 @@ export function AllWalletsView() {
|
|
|
85
99
|
itemWidth={itemWidth}
|
|
86
100
|
searchQuery={searchQuery}
|
|
87
101
|
onItemPress={onWalletPress}
|
|
102
|
+
headerHeight={headerHeight}
|
|
88
103
|
/>
|
|
89
104
|
);
|
|
90
105
|
}
|
|
91
106
|
|
|
92
107
|
return (
|
|
93
|
-
<AllWalletsList
|
|
108
|
+
<AllWalletsList
|
|
109
|
+
columns={numColumns}
|
|
110
|
+
itemWidth={itemWidth}
|
|
111
|
+
onItemPress={onWalletPress}
|
|
112
|
+
headerHeight={headerHeight}
|
|
113
|
+
/>
|
|
94
114
|
);
|
|
95
115
|
};
|
|
96
116
|
|
|
@@ -6,9 +6,8 @@ import {
|
|
|
6
6
|
OptionsController,
|
|
7
7
|
RouterController
|
|
8
8
|
} from '@reown/appkit-core-react-native';
|
|
9
|
-
import { FlexView, ListSocial, Text } from '@reown/appkit-ui-react-native';
|
|
9
|
+
import { FlexView, ListSocial, Text, useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
10
10
|
|
|
11
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
12
11
|
import styles from './styles';
|
|
13
12
|
|
|
14
13
|
export function ConnectSocialsView() {
|
|
@@ -8,8 +8,14 @@ import {
|
|
|
8
8
|
RouterController
|
|
9
9
|
} from '@reown/appkit-core-react-native';
|
|
10
10
|
import { type WcWallet } from '@reown/appkit-common-react-native';
|
|
11
|
-
import {
|
|
12
|
-
|
|
11
|
+
import {
|
|
12
|
+
FlexView,
|
|
13
|
+
Icon,
|
|
14
|
+
ListItem,
|
|
15
|
+
Separator,
|
|
16
|
+
Text,
|
|
17
|
+
useCustomDimensions
|
|
18
|
+
} from '@reown/appkit-ui-react-native';
|
|
13
19
|
import { Placeholder } from '../../partials/w3m-placeholder';
|
|
14
20
|
import { CustomWalletList } from './components/custom-wallet-list';
|
|
15
21
|
import { AllWalletsButton } from './components/all-wallets-button';
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
FlexView,
|
|
16
16
|
IconBox,
|
|
17
17
|
LoadingThumbnail,
|
|
18
|
-
WalletImage
|
|
18
|
+
WalletImage,
|
|
19
|
+
useCustomDimensions
|
|
19
20
|
} from '@reown/appkit-ui-react-native';
|
|
20
21
|
|
|
21
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
22
22
|
import { ConnectingBody, getMessage, type BodyErrorType } from '../../partials/w3m-connecting-body';
|
|
23
23
|
import styles from './styles';
|
|
24
24
|
import { useInternalAppKit } from '../../AppKitContext';
|
|
@@ -7,10 +7,16 @@ import {
|
|
|
7
7
|
RouterController,
|
|
8
8
|
SnackController
|
|
9
9
|
} from '@reown/appkit-core-react-native';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
FlexView,
|
|
12
|
+
LoadingThumbnail,
|
|
13
|
+
IconBox,
|
|
14
|
+
Logo,
|
|
15
|
+
Text,
|
|
16
|
+
useCustomDimensions
|
|
17
|
+
} from '@reown/appkit-ui-react-native';
|
|
11
18
|
import { ConstantsUtil, StringUtil } from '@reown/appkit-common-react-native';
|
|
12
19
|
|
|
13
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
14
20
|
import { useInternalAppKit } from '../../AppKitContext';
|
|
15
21
|
import styles from './styles';
|
|
16
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Linking, Platform, ScrollView } from 'react-native';
|
|
2
|
-
import { FlexView, ListWallet } from '@reown/appkit-ui-react-native';
|
|
2
|
+
import { FlexView, ListWallet, useCustomDimensions } from '@reown/appkit-ui-react-native';
|
|
3
3
|
import { ApiController, AssetController, AssetUtil } from '@reown/appkit-core-react-native';
|
|
4
4
|
import { type WcWallet } from '@reown/appkit-common-react-native';
|
|
5
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
6
5
|
import styles from './styles';
|
|
7
6
|
import { useSnapshot } from 'valtio';
|
|
8
7
|
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
Link,
|
|
7
7
|
Separator,
|
|
8
8
|
Spacing,
|
|
9
|
-
Text
|
|
9
|
+
Text,
|
|
10
|
+
useCustomDimensions
|
|
10
11
|
} from '@reown/appkit-ui-react-native';
|
|
11
12
|
import {
|
|
12
13
|
ApiController,
|
|
@@ -18,7 +19,6 @@ import {
|
|
|
18
19
|
AssetUtil
|
|
19
20
|
} from '@reown/appkit-core-react-native';
|
|
20
21
|
import type { AppKitNetwork } from '@reown/appkit-common-react-native';
|
|
21
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
22
22
|
import styles from './styles';
|
|
23
23
|
import { useInternalAppKit } from '../../AppKitContext';
|
|
24
24
|
import { useSnapshot } from 'valtio';
|
|
@@ -7,9 +7,15 @@ import {
|
|
|
7
7
|
OptionsController,
|
|
8
8
|
EventsController
|
|
9
9
|
} from '@reown/appkit-core-react-native';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
FlexView,
|
|
12
|
+
DoubleImageLoader,
|
|
13
|
+
IconLink,
|
|
14
|
+
Button,
|
|
15
|
+
Text,
|
|
16
|
+
useCustomDimensions
|
|
17
|
+
} from '@reown/appkit-ui-react-native';
|
|
11
18
|
|
|
12
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
13
19
|
import { ConnectingBody } from '../../partials/w3m-connecting-body';
|
|
14
20
|
import styles from './styles';
|
|
15
21
|
import { StringUtil } from '@reown/appkit-common-react-native';
|
|
@@ -3,9 +3,16 @@ import { useEffect } from 'react';
|
|
|
3
3
|
import { ScrollView } from 'react-native';
|
|
4
4
|
import { NumberUtil } from '@reown/appkit-common-react-native';
|
|
5
5
|
import { RouterController, SwapController } from '@reown/appkit-core-react-native';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
Button,
|
|
8
|
+
FlexView,
|
|
9
|
+
Icon,
|
|
10
|
+
Text,
|
|
11
|
+
TokenButton,
|
|
12
|
+
UiUtil,
|
|
13
|
+
useCustomDimensions
|
|
14
|
+
} from '@reown/appkit-ui-react-native';
|
|
7
15
|
import { SwapDetails } from '../../partials/w3m-swap-details';
|
|
8
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
9
16
|
import styles from './styles';
|
|
10
17
|
|
|
11
18
|
export function SwapPreviewView() {
|
|
@@ -17,7 +17,8 @@ import {
|
|
|
17
17
|
Separator,
|
|
18
18
|
Text,
|
|
19
19
|
TokenButton,
|
|
20
|
-
useTheme
|
|
20
|
+
useTheme,
|
|
21
|
+
useCustomDimensions
|
|
21
22
|
} from '@reown/appkit-ui-react-native';
|
|
22
23
|
|
|
23
24
|
import {
|
|
@@ -30,7 +31,6 @@ import {
|
|
|
30
31
|
|
|
31
32
|
import { type SwapInputTarget, type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
32
33
|
|
|
33
|
-
import { useCustomDimensions } from '../../../../hooks/useCustomDimensions';
|
|
34
34
|
import { Placeholder } from '../../../../partials/w3m-placeholder';
|
|
35
35
|
import styles from './styles';
|
|
36
36
|
import { createSections } from './utils';
|
|
@@ -8,11 +8,16 @@ 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';
|
|
15
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
16
21
|
import { SwapInput } from '../../partials/w3m-swap-input';
|
|
17
22
|
import { useDebounceCallback } from '../../hooks/useDebounceCallback';
|
|
18
23
|
import { SwapDetails } from '../../partials/w3m-swap-details';
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { ScrollView } from 'react-native';
|
|
2
2
|
import { useSnapshot } from 'valtio';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
FlexView,
|
|
5
|
+
Text,
|
|
6
|
+
Banner,
|
|
7
|
+
NetworkImage,
|
|
8
|
+
useCustomDimensions
|
|
9
|
+
} from '@reown/appkit-ui-react-native';
|
|
4
10
|
import {
|
|
5
11
|
ApiController,
|
|
6
12
|
AssetController,
|
|
7
13
|
AssetUtil,
|
|
8
14
|
ConnectionsController
|
|
9
15
|
} from '@reown/appkit-core-react-native';
|
|
10
|
-
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
11
16
|
import styles from './styles';
|
|
12
17
|
|
|
13
18
|
export function WalletCompatibleNetworks() {
|