@reown/appkit-react-native 0.0.0-feat-multichain-20250804182547 → 0.0.0-feat-multichain-20250805142032
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/hooks/useAppKitEvents.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-activity/index.js +5 -5
- package/lib/commonjs/partials/w3m-account-activity/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-tokens/index.js +4 -4
- package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js +5 -5
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-body/index.js +2 -2
- package/lib/commonjs/partials/w3m-connecting-body/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +6 -6
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +2 -2
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js +4 -4
- package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-placeholder/index.js +5 -5
- package/lib/commonjs/partials/w3m-placeholder/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/index.js +2 -2
- package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-send-input-token/index.js +2 -2
- package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-swap-input/index.js +2 -2
- package/lib/commonjs/partials/w3m-swap-input/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js +2 -2
- package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +15 -15
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js +4 -4
- package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +7 -7
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +2 -2
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +2 -2
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-network-switch-view/index.js +2 -2
- package/lib/commonjs/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js +15 -15
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js +4 -4
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js +4 -4
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/utils.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js +5 -5
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js +2 -2
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js +2 -2
- package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js +4 -4
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js +2 -2
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Quote.js +4 -4
- package/lib/commonjs/views/w3m-onramp-view/components/Quote.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/index.js +3 -3
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/hooks/useAppKitEvents.js.map +1 -1
- package/lib/module/partials/w3m-account-activity/index.js +5 -5
- package/lib/module/partials/w3m-account-activity/index.js.map +1 -1
- package/lib/module/partials/w3m-account-tokens/index.js +4 -4
- package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/module/partials/w3m-account-wallet-features/index.js +5 -5
- package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-body/index.js +2 -2
- package/lib/module/partials/w3m-connecting-body/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +6 -6
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +2 -2
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/index.js +4 -4
- package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/module/partials/w3m-placeholder/index.js +5 -5
- package/lib/module/partials/w3m-placeholder/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/index.js +2 -2
- package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/module/partials/w3m-send-input-token/index.js +2 -2
- package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
- package/lib/module/partials/w3m-swap-input/index.js +2 -2
- package/lib/module/partials/w3m-swap-input/index.js.map +1 -1
- package/lib/module/utils/HelpersUtil.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/components/auth-buttons.js +2 -2
- package/lib/module/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +15 -15
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/social-login-list.js +4 -4
- package/lib/module/views/w3m-connect-view/components/social-login-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +7 -7
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +2 -2
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +2 -2
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/module/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-network-switch-view/index.js +2 -2
- package/lib/module/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-checkout-view/index.js +15 -15
- package/lib/module/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js +4 -4
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/index.js +4 -4
- package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/utils.js.map +1 -1
- package/lib/module/views/w3m-onramp-transaction-view/index.js +5 -5
- package/lib/module/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Currency.js +2 -2
- package/lib/module/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js +2 -2
- package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/PaymentButton.js +4 -4
- package/lib/module/views/w3m-onramp-view/components/PaymentButton.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js +2 -2
- package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Quote.js +4 -4
- package/lib/module/views/w3m-onramp-view/components/Quote.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -1
- package/lib/module/views/w3m-swap-view/index.js +3 -3
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/typescript/hooks/useAppKitEvents.d.ts +4 -3
- package/lib/typescript/hooks/useAppKitEvents.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-header/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-connecting-header/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-swap-input/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-swap-input/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +2 -2
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/HelpersUtil.d.ts +1 -2
- package/lib/typescript/utils/HelpersUtil.d.ts.map +1 -1
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -2
- package/lib/typescript/utils/NetworkUtil.d.ts.map +1 -1
- package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts +1 -1
- package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts +1 -1
- package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts +1 -1
- package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-connect-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-get-wallet-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/SelectPaymentModal.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/hooks/useAppKitEvents.ts +2 -5
- package/src/partials/w3m-account-activity/index.tsx +5 -5
- package/src/partials/w3m-account-tokens/index.tsx +2 -2
- package/src/partials/w3m-account-wallet-features/index.tsx +6 -6
- package/src/partials/w3m-all-wallets-list/index.tsx +2 -2
- package/src/partials/w3m-all-wallets-search/index.tsx +2 -6
- package/src/partials/w3m-connecting-body/index.tsx +2 -2
- package/src/partials/w3m-connecting-header/index.tsx +1 -1
- package/src/partials/w3m-connecting-mobile/index.tsx +6 -6
- package/src/partials/w3m-connecting-qrcode/index.tsx +2 -2
- package/src/partials/w3m-connecting-web/index.tsx +4 -4
- package/src/partials/w3m-placeholder/index.tsx +8 -8
- package/src/partials/w3m-selector-modal/index.tsx +2 -2
- package/src/partials/w3m-send-input-token/index.tsx +2 -2
- package/src/partials/w3m-swap-input/index.tsx +3 -4
- package/src/types.ts +2 -5
- package/src/utils/HelpersUtil.ts +1 -1
- package/src/utils/NetworkUtil.ts +1 -1
- package/src/views/w3m-account-default-view/components/auth-buttons.tsx +2 -2
- package/src/views/w3m-account-default-view/index.tsx +20 -20
- package/src/views/w3m-all-wallets-view/index.tsx +2 -7
- package/src/views/w3m-connect-view/components/all-wallet-list.tsx +2 -2
- package/src/views/w3m-connect-view/components/custom-wallet-list.tsx +1 -1
- package/src/views/w3m-connect-view/components/recent-wallet-list.tsx +2 -6
- package/src/views/w3m-connect-view/components/social-login-list.tsx +4 -4
- package/src/views/w3m-connect-view/index.tsx +10 -11
- package/src/views/w3m-connect-view/utils.ts +1 -1
- package/src/views/w3m-connecting-external-view/index.tsx +2 -2
- package/src/views/w3m-connecting-social-view/index.tsx +2 -2
- package/src/views/w3m-connecting-view/index.tsx +1 -1
- package/src/views/w3m-get-wallet-view/index.tsx +2 -1
- package/src/views/w3m-network-switch-view/index.tsx +2 -2
- package/src/views/w3m-onramp-checkout-view/index.tsx +15 -15
- package/src/views/w3m-onramp-settings-view/components/Country.tsx +6 -4
- package/src/views/w3m-onramp-settings-view/index.tsx +6 -9
- package/src/views/w3m-onramp-settings-view/utils.ts +2 -5
- package/src/views/w3m-onramp-transaction-view/index.tsx +6 -6
- package/src/views/w3m-onramp-view/components/Currency.tsx +3 -3
- package/src/views/w3m-onramp-view/components/CurrencyInput.tsx +2 -2
- package/src/views/w3m-onramp-view/components/PaymentButton.tsx +4 -4
- package/src/views/w3m-onramp-view/components/PaymentMethod.tsx +4 -3
- package/src/views/w3m-onramp-view/components/Quote.tsx +4 -5
- package/src/views/w3m-onramp-view/components/SelectPaymentModal.tsx +2 -5
- package/src/views/w3m-onramp-view/index.tsx +5 -2
- package/src/views/w3m-swap-view/components/select-token-view/index.tsx +3 -3
- package/src/views/w3m-swap-view/components/select-token-view/utils.ts +2 -1
- package/src/views/w3m-swap-view/index.tsx +5 -6
|
@@ -76,7 +76,7 @@ export function ConnectingSocialView() {
|
|
|
76
76
|
>
|
|
77
77
|
<LoadingThumbnail paused={!!error}>
|
|
78
78
|
<Logo logo={data?.socialProvider ?? 'more'} height={72} width={72} />
|
|
79
|
-
{error
|
|
79
|
+
{error ? (
|
|
80
80
|
<IconBox
|
|
81
81
|
icon={'close'}
|
|
82
82
|
border
|
|
@@ -86,7 +86,7 @@ export function ConnectingSocialView() {
|
|
|
86
86
|
iconColor="error-100"
|
|
87
87
|
style={styles.errorIcon}
|
|
88
88
|
/>
|
|
89
|
-
)}
|
|
89
|
+
) : null}
|
|
90
90
|
</LoadingThumbnail>
|
|
91
91
|
<Text style={styles.continueText} variant="paragraph-500">
|
|
92
92
|
Continue with {StringUtil.capitalize(data?.socialProvider ?? 'Login')}
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
CoreHelperUtil,
|
|
7
7
|
RouterController,
|
|
8
8
|
SnackController,
|
|
9
|
-
type Platform,
|
|
10
9
|
OptionsController,
|
|
11
10
|
ApiController,
|
|
12
11
|
EventsController
|
|
@@ -17,6 +16,7 @@ import { ConnectingMobile } from '../../partials/w3m-connecting-mobile';
|
|
|
17
16
|
import { ConnectingWeb } from '../../partials/w3m-connecting-web';
|
|
18
17
|
import { ConnectingHeader } from '../../partials/w3m-connecting-header';
|
|
19
18
|
import { UiUtil } from '../../utils/UiUtil';
|
|
19
|
+
import { type Platform } from '@reown/appkit-common-react-native';
|
|
20
20
|
|
|
21
21
|
export function ConnectingView() {
|
|
22
22
|
const { connect } = useInternalAppKit();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Linking, Platform, ScrollView } from 'react-native';
|
|
2
2
|
import { FlexView, ListWallet } from '@reown/appkit-ui-react-native';
|
|
3
|
-
import { ApiController, AssetUtil
|
|
3
|
+
import { ApiController, AssetUtil } from '@reown/appkit-core-react-native';
|
|
4
|
+
import { type WcWallet } from '@reown/appkit-common-react-native';
|
|
4
5
|
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
5
6
|
import styles from './styles';
|
|
6
7
|
|
|
@@ -113,7 +113,7 @@ export function NetworkSwitchView() {
|
|
|
113
113
|
imageHeaders={ApiController._getApiHeaders()}
|
|
114
114
|
size="lg"
|
|
115
115
|
/>
|
|
116
|
-
{error
|
|
116
|
+
{error ? (
|
|
117
117
|
<IconBox
|
|
118
118
|
icon="close"
|
|
119
119
|
border
|
|
@@ -123,7 +123,7 @@ export function NetworkSwitchView() {
|
|
|
123
123
|
iconColor="error-100"
|
|
124
124
|
style={styles.errorIcon}
|
|
125
125
|
/>
|
|
126
|
-
)}
|
|
126
|
+
) : null}
|
|
127
127
|
</LoadingHexagon>
|
|
128
128
|
{textTemplate()}
|
|
129
129
|
{retryTemplate()}
|
|
@@ -60,7 +60,7 @@ export function OnRampCheckoutView() {
|
|
|
60
60
|
</FlexView>
|
|
61
61
|
<FlexView flexDirection="row" alignItems="center" justifyContent="center">
|
|
62
62
|
<Text color="fg-200">via </Text>
|
|
63
|
-
{providerImage
|
|
63
|
+
{providerImage ? <Image source={providerImage} style={styles.providerImage} /> : null}
|
|
64
64
|
<Text color="fg-200">{StringUtil.capitalize(selectedQuote?.serviceProvider)}</Text>
|
|
65
65
|
</FlexView>
|
|
66
66
|
</FlexView>
|
|
@@ -87,12 +87,12 @@ export function OnRampCheckoutView() {
|
|
|
87
87
|
<Text>
|
|
88
88
|
{value} {symbol?.split('_')[0] ?? ''}
|
|
89
89
|
</Text>
|
|
90
|
-
{purchaseCurrency?.symbolImageUrl
|
|
90
|
+
{purchaseCurrency?.symbolImageUrl ? (
|
|
91
91
|
<Image
|
|
92
92
|
source={purchaseCurrency?.symbolImageUrl}
|
|
93
93
|
style={[styles.tokenImage, { borderColor: Theme['gray-glass-010'] }]}
|
|
94
94
|
/>
|
|
95
|
-
)}
|
|
95
|
+
) : null}
|
|
96
96
|
</FlexView>
|
|
97
97
|
</FlexView>
|
|
98
98
|
<FlexView
|
|
@@ -118,37 +118,37 @@ export function OnRampCheckoutView() {
|
|
|
118
118
|
alignItems="center"
|
|
119
119
|
style={[styles.paymentMethodContainer, { borderColor: Theme['gray-glass-020'] }]}
|
|
120
120
|
>
|
|
121
|
-
{paymentLogo
|
|
121
|
+
{paymentLogo ? (
|
|
122
122
|
<Image
|
|
123
123
|
source={paymentLogo}
|
|
124
124
|
style={styles.paymentMethodImage}
|
|
125
125
|
tintColor={Theme['fg-150']}
|
|
126
126
|
/>
|
|
127
|
-
)}
|
|
127
|
+
) : null}
|
|
128
128
|
<Text variant="small-600" color="fg-150">
|
|
129
129
|
{selectedPaymentMethod?.name}
|
|
130
130
|
</Text>
|
|
131
131
|
</FlexView>
|
|
132
132
|
</FlexView>
|
|
133
133
|
|
|
134
|
-
{showFees
|
|
134
|
+
{showFees ? (
|
|
135
135
|
<Toggle
|
|
136
136
|
title={
|
|
137
137
|
<>
|
|
138
138
|
<Text variant="paragraph-400" color="fg-200">
|
|
139
139
|
Fees{' '}
|
|
140
|
-
{showTotalFee
|
|
140
|
+
{showTotalFee ? (
|
|
141
141
|
<Text variant="paragraph-400">
|
|
142
142
|
{selectedQuote?.totalFee} {selectedQuote?.sourceCurrencyCode}
|
|
143
143
|
</Text>
|
|
144
|
-
)}
|
|
144
|
+
) : null}
|
|
145
145
|
</Text>
|
|
146
146
|
</>
|
|
147
147
|
}
|
|
148
148
|
style={[styles.feesToggle, { backgroundColor: Theme['gray-glass-002'] }]}
|
|
149
149
|
contentContainerStyle={styles.feesToggleContent}
|
|
150
150
|
>
|
|
151
|
-
{showNetworkFee
|
|
151
|
+
{showNetworkFee ? (
|
|
152
152
|
<FlexView
|
|
153
153
|
flexDirection="row"
|
|
154
154
|
justifyContent="space-between"
|
|
@@ -159,19 +159,19 @@ export function OnRampCheckoutView() {
|
|
|
159
159
|
Network Fees
|
|
160
160
|
</Text>
|
|
161
161
|
<FlexView flexDirection="row" alignItems="center">
|
|
162
|
-
{networkImage
|
|
162
|
+
{networkImage ? (
|
|
163
163
|
<Image
|
|
164
164
|
source={networkImage}
|
|
165
165
|
style={[styles.networkImage, { borderColor: Theme['gray-glass-010'] }]}
|
|
166
166
|
/>
|
|
167
|
-
)}
|
|
167
|
+
) : null}
|
|
168
168
|
<Text variant="small-400">
|
|
169
169
|
{selectedQuote?.networkFee} {selectedQuote?.sourceCurrencyCode}
|
|
170
170
|
</Text>
|
|
171
171
|
</FlexView>
|
|
172
172
|
</FlexView>
|
|
173
|
-
)}
|
|
174
|
-
{showTransactionFee
|
|
173
|
+
) : null}
|
|
174
|
+
{showTransactionFee ? (
|
|
175
175
|
<FlexView
|
|
176
176
|
flexDirection="row"
|
|
177
177
|
justifyContent="space-between"
|
|
@@ -184,9 +184,9 @@ export function OnRampCheckoutView() {
|
|
|
184
184
|
{selectedQuote.transactionFee} {selectedQuote?.sourceCurrencyCode}
|
|
185
185
|
</Text>
|
|
186
186
|
</FlexView>
|
|
187
|
-
)}
|
|
187
|
+
) : null}
|
|
188
188
|
</Toggle>
|
|
189
|
-
)}
|
|
189
|
+
) : null}
|
|
190
190
|
<FlexView flexDirection="row" justifyContent="space-between" margin={['xl', '0', '0', '0']}>
|
|
191
191
|
<Button
|
|
192
192
|
variant="shade"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type OnRampCountry } from '@reown/appkit-common-react-native';
|
|
2
2
|
import {
|
|
3
3
|
Pressable,
|
|
4
4
|
FlexView,
|
|
@@ -27,7 +27,9 @@ export function Country({ onPress, item, selected }: Props) {
|
|
|
27
27
|
<Pressable onPress={handlePress} style={styles.container} backgroundColor="transparent">
|
|
28
28
|
<FlexView flexDirection="row" alignItems="center" justifyContent="flex-start" padding="s">
|
|
29
29
|
<FlexView style={styles.imageContainer}>
|
|
30
|
-
{item.flagImageUrl && SvgUri
|
|
30
|
+
{item.flagImageUrl && SvgUri ? (
|
|
31
|
+
<SvgUri uri={item.flagImageUrl} width={36} height={36} />
|
|
32
|
+
) : null}
|
|
31
33
|
</FlexView>
|
|
32
34
|
<FlexView style={styles.textContainer}>
|
|
33
35
|
<Text variant="paragraph-400" color="fg-100" numberOfLines={1} ellipsizeMode="tail">
|
|
@@ -37,9 +39,9 @@ export function Country({ onPress, item, selected }: Props) {
|
|
|
37
39
|
{item.countryCode}
|
|
38
40
|
</Text>
|
|
39
41
|
</FlexView>
|
|
40
|
-
{selected
|
|
42
|
+
{selected ? (
|
|
41
43
|
<Icon name="checkmark" size="md" color="accent-100" style={styles.checkmark} />
|
|
42
|
-
)}
|
|
44
|
+
) : null}
|
|
43
45
|
</FlexView>
|
|
44
46
|
</Pressable>
|
|
45
47
|
);
|
|
@@ -2,11 +2,8 @@ import { useSnapshot } from 'valtio';
|
|
|
2
2
|
import { memo, useState } from 'react';
|
|
3
3
|
import { SvgUri } from 'react-native-svg';
|
|
4
4
|
import { FlexView, ListItem, Text, useTheme, Icon, Image } from '@reown/appkit-ui-react-native';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
type OnRampCountry,
|
|
8
|
-
type OnRampFiatCurrency
|
|
9
|
-
} from '@reown/appkit-core-react-native';
|
|
5
|
+
import { OnRampController } from '@reown/appkit-core-react-native';
|
|
6
|
+
import { type OnRampCountry, type OnRampFiatCurrency } from '@reown/appkit-common-react-native';
|
|
10
7
|
|
|
11
8
|
import { SelectorModal } from '../../partials/w3m-selector-modal';
|
|
12
9
|
import { Country } from './components/Country';
|
|
@@ -97,11 +94,11 @@ export function OnRampSettingsView() {
|
|
|
97
94
|
</FlexView>
|
|
98
95
|
<FlexView>
|
|
99
96
|
<Text color="fg-100">Select Country</Text>
|
|
100
|
-
{selectedCountry?.name
|
|
97
|
+
{selectedCountry?.name ? (
|
|
101
98
|
<Text variant="small-400" color="fg-200">
|
|
102
99
|
{selectedCountry?.name}
|
|
103
100
|
</Text>
|
|
104
|
-
)}
|
|
101
|
+
) : null}
|
|
105
102
|
</FlexView>
|
|
106
103
|
</ListItem>
|
|
107
104
|
<ListItem onPress={onPaymentCurrencyPress} chevron contentStyle={styles.itemContent}>
|
|
@@ -120,11 +117,11 @@ export function OnRampSettingsView() {
|
|
|
120
117
|
</FlexView>
|
|
121
118
|
<FlexView>
|
|
122
119
|
<Text color="fg-100">Select Currency</Text>
|
|
123
|
-
{paymentCurrency?.name
|
|
120
|
+
{paymentCurrency?.name ? (
|
|
124
121
|
<Text variant="small-400" color="fg-200">
|
|
125
122
|
{paymentCurrency?.name}
|
|
126
123
|
</Text>
|
|
127
|
-
)}
|
|
124
|
+
) : null}
|
|
128
125
|
</FlexView>
|
|
129
126
|
</ListItem>
|
|
130
127
|
</FlexView>
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ITEM_HEIGHT as COUNTRY_ITEM_HEIGHT } from './components/Country';
|
|
2
2
|
import { ITEM_HEIGHT as CURRENCY_ITEM_HEIGHT } from '../w3m-onramp-view/components/Currency';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
type OnRampCountry,
|
|
6
|
-
type OnRampFiatCurrency
|
|
7
|
-
} from '@reown/appkit-core-react-native';
|
|
3
|
+
import { OnRampController } from '@reown/appkit-core-react-native';
|
|
4
|
+
import { type OnRampCountry, type OnRampFiatCurrency } from '@reown/appkit-common-react-native';
|
|
8
5
|
|
|
9
6
|
// -------------------------- Types --------------------------
|
|
10
7
|
type ModalType = 'country' | 'paymentCurrency';
|
|
@@ -76,15 +76,15 @@ export function OnRampTransactionView() {
|
|
|
76
76
|
{data?.onrampResult?.purchaseAmount}{' '}
|
|
77
77
|
{data?.onrampResult?.purchaseCurrency?.split('_')[0] ?? ''}
|
|
78
78
|
</Text>
|
|
79
|
-
{data?.onrampResult?.purchaseImageUrl
|
|
79
|
+
{data?.onrampResult?.purchaseImageUrl ? (
|
|
80
80
|
<Image
|
|
81
81
|
source={data?.onrampResult?.purchaseImageUrl}
|
|
82
82
|
style={[styles.tokenImage, { borderColor: Theme['gray-glass-010'] }]}
|
|
83
83
|
/>
|
|
84
|
-
)}
|
|
84
|
+
) : null}
|
|
85
85
|
</FlexView>
|
|
86
86
|
</FlexView>
|
|
87
|
-
{showNetwork
|
|
87
|
+
{showNetwork ? (
|
|
88
88
|
<FlexView
|
|
89
89
|
flexDirection="row"
|
|
90
90
|
alignItems="center"
|
|
@@ -98,8 +98,8 @@ export function OnRampTransactionView() {
|
|
|
98
98
|
{StringUtil.capitalize(data?.onrampResult?.network)}
|
|
99
99
|
</Text>
|
|
100
100
|
</FlexView>
|
|
101
|
-
)}
|
|
102
|
-
{showStatus
|
|
101
|
+
) : null}
|
|
102
|
+
{showStatus ? (
|
|
103
103
|
<FlexView flexDirection="row" alignItems="center" justifyContent="space-between">
|
|
104
104
|
<Text variant="paragraph-400" color="fg-150">
|
|
105
105
|
Status
|
|
@@ -108,7 +108,7 @@ export function OnRampTransactionView() {
|
|
|
108
108
|
{StringUtil.capitalize(data?.onrampResult?.status)}
|
|
109
109
|
</Text>
|
|
110
110
|
</FlexView>
|
|
111
|
-
)}
|
|
111
|
+
) : null}
|
|
112
112
|
</FlexView>
|
|
113
113
|
</FlexView>
|
|
114
114
|
<Button variant="fill" size="md" onPress={onClose}>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type OnRampFiatCurrency,
|
|
3
3
|
type OnRampCryptoCurrency
|
|
4
|
-
} from '@reown/appkit-
|
|
4
|
+
} from '@reown/appkit-common-react-native';
|
|
5
5
|
import {
|
|
6
6
|
Pressable,
|
|
7
7
|
FlexView,
|
|
@@ -53,9 +53,9 @@ export function Currency({ onPress, item, selected, title, subtitle, testID }: P
|
|
|
53
53
|
</Text>
|
|
54
54
|
</FlexView>
|
|
55
55
|
</FlexView>
|
|
56
|
-
{selected
|
|
56
|
+
{selected ? (
|
|
57
57
|
<Icon name="checkmark" size="md" color="accent-100" style={styles.checkmark} />
|
|
58
|
-
)}
|
|
58
|
+
) : null}
|
|
59
59
|
</FlexView>
|
|
60
60
|
</Pressable>
|
|
61
61
|
);
|
|
@@ -117,7 +117,7 @@ export function CurrencyInput({
|
|
|
117
117
|
)}
|
|
118
118
|
</FlexView>
|
|
119
119
|
</FlexView>
|
|
120
|
-
{suggestedValues && suggestedValues.length > 0
|
|
120
|
+
{suggestedValues && suggestedValues.length > 0 ? (
|
|
121
121
|
<FlexView flexDirection="row" justifyContent="space-between" margin={['s', '0', '0', '0']}>
|
|
122
122
|
{suggestedValues?.map((suggestion: number) => {
|
|
123
123
|
const isSelected = suggestion.toString() === value;
|
|
@@ -144,7 +144,7 @@ export function CurrencyInput({
|
|
|
144
144
|
);
|
|
145
145
|
})}
|
|
146
146
|
</FlexView>
|
|
147
|
-
)}
|
|
147
|
+
) : null}
|
|
148
148
|
<Separator color="gray-glass-020" style={styles.separator} />
|
|
149
149
|
<NumericKeyboard onKeyPress={handleKeyPress} />
|
|
150
150
|
</FlexView>
|
|
@@ -73,9 +73,9 @@ function PaymentButton({
|
|
|
73
73
|
<Text variant="paragraph-400" color="fg-100">
|
|
74
74
|
{title}
|
|
75
75
|
</Text>
|
|
76
|
-
{subtitle
|
|
76
|
+
{subtitle ? (
|
|
77
77
|
<FlexView flexDirection="row" alignItems="center" margin={['4xs', '0', '0', '0']}>
|
|
78
|
-
{providerLogo
|
|
78
|
+
{providerLogo ? (
|
|
79
79
|
<>
|
|
80
80
|
<Text variant="small-400" color="fg-150">
|
|
81
81
|
via
|
|
@@ -87,12 +87,12 @@ function PaymentButton({
|
|
|
87
87
|
resizeMode="contain"
|
|
88
88
|
/>
|
|
89
89
|
</>
|
|
90
|
-
)}
|
|
90
|
+
) : null}
|
|
91
91
|
<Text variant="small-400" color="fg-150">
|
|
92
92
|
{subtitle}
|
|
93
93
|
</Text>
|
|
94
94
|
</FlexView>
|
|
95
|
-
)}
|
|
95
|
+
) : null}
|
|
96
96
|
</FlexView>
|
|
97
97
|
{loading ? (
|
|
98
98
|
<LoadingSpinner size="md" color="fg-200" style={styles.rightIcon} />
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useSnapshot } from 'valtio';
|
|
2
|
-
import { ThemeController
|
|
2
|
+
import { ThemeController } from '@reown/appkit-core-react-native';
|
|
3
|
+
import { type OnRampPaymentMethod } from '@reown/appkit-common-react-native';
|
|
3
4
|
import {
|
|
4
5
|
Pressable,
|
|
5
6
|
FlexView,
|
|
@@ -49,7 +50,7 @@ export function PaymentMethod({ onPress, item, selected, testID }: Props) {
|
|
|
49
50
|
resizeMethod="resize"
|
|
50
51
|
resizeMode="contain"
|
|
51
52
|
/>
|
|
52
|
-
{selected
|
|
53
|
+
{selected ? (
|
|
53
54
|
<IconBox
|
|
54
55
|
icon="checkmark"
|
|
55
56
|
size="sm"
|
|
@@ -59,7 +60,7 @@ export function PaymentMethod({ onPress, item, selected, testID }: Props) {
|
|
|
59
60
|
style={styles.checkmark}
|
|
60
61
|
testID="payment-method-checkmark"
|
|
61
62
|
/>
|
|
62
|
-
)}
|
|
63
|
+
) : null}
|
|
63
64
|
</FlexView>
|
|
64
65
|
<Text variant="tiny-400" color="fg-100" numberOfLines={2} style={styles.text}>
|
|
65
66
|
{item.name}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { NumberUtil } from '@reown/appkit-common-react-native';
|
|
2
|
-
import { type OnRampQuote } from '@reown/appkit-core-react-native';
|
|
1
|
+
import { NumberUtil, type OnRampQuote } from '@reown/appkit-common-react-native';
|
|
3
2
|
import {
|
|
4
3
|
FlexView,
|
|
5
4
|
Image,
|
|
@@ -55,11 +54,11 @@ export function Quote({ item, logoURL, onQuotePress, selected, tagText, testID }
|
|
|
55
54
|
<Text variant="paragraph-500" style={styles.providerText}>
|
|
56
55
|
{item.serviceProvider?.toLowerCase()}
|
|
57
56
|
</Text>
|
|
58
|
-
{tagText
|
|
57
|
+
{tagText ? (
|
|
59
58
|
<Tag variant="main" style={styles.tag}>
|
|
60
59
|
{tagText}
|
|
61
60
|
</Tag>
|
|
62
|
-
)}
|
|
61
|
+
) : null}
|
|
63
62
|
</FlexView>
|
|
64
63
|
<Text variant="tiny-500">
|
|
65
64
|
{NumberUtil.roundNumber(item.destinationAmount, 6, 5)}{' '}
|
|
@@ -67,7 +66,7 @@ export function Quote({ item, logoURL, onQuotePress, selected, tagText, testID }
|
|
|
67
66
|
</Text>
|
|
68
67
|
</FlexView>
|
|
69
68
|
</FlexView>
|
|
70
|
-
{selected
|
|
69
|
+
{selected ? <Icon name="checkmark" color="accent-100" /> : null}
|
|
71
70
|
</FlexView>
|
|
72
71
|
</Pressable>
|
|
73
72
|
);
|
|
@@ -11,13 +11,10 @@ import {
|
|
|
11
11
|
Separator,
|
|
12
12
|
BorderRadius
|
|
13
13
|
} from '@reown/appkit-ui-react-native';
|
|
14
|
-
import {
|
|
15
|
-
OnRampController,
|
|
16
|
-
type OnRampPaymentMethod,
|
|
17
|
-
type OnRampQuote
|
|
18
|
-
} from '@reown/appkit-core-react-native';
|
|
14
|
+
import { OnRampController } from '@reown/appkit-core-react-native';
|
|
19
15
|
import { Quote, ITEM_HEIGHT as QUOTE_ITEM_HEIGHT } from './Quote';
|
|
20
16
|
import { PaymentMethod } from './PaymentMethod';
|
|
17
|
+
import { type OnRampPaymentMethod, type OnRampQuote } from '@reown/appkit-common-react-native';
|
|
21
18
|
|
|
22
19
|
interface SelectPaymentModalProps {
|
|
23
20
|
title?: string;
|
|
@@ -3,7 +3,6 @@ import { memo, useCallback, useEffect, useState } from 'react';
|
|
|
3
3
|
import { ScrollView } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
OnRampController,
|
|
6
|
-
type OnRampCryptoCurrency,
|
|
7
6
|
ThemeController,
|
|
8
7
|
RouterController,
|
|
9
8
|
type OnRampControllerState,
|
|
@@ -21,7 +20,11 @@ import {
|
|
|
21
20
|
TokenButton,
|
|
22
21
|
useTheme
|
|
23
22
|
} from '@reown/appkit-ui-react-native';
|
|
24
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
NumberUtil,
|
|
25
|
+
StringUtil,
|
|
26
|
+
type OnRampCryptoCurrency
|
|
27
|
+
} from '@reown/appkit-common-react-native';
|
|
25
28
|
import { SelectorModal } from '../../partials/w3m-selector-modal';
|
|
26
29
|
import { Currency, ITEM_HEIGHT as CURRENCY_ITEM_HEIGHT } from './components/Currency';
|
|
27
30
|
import { getPurchaseCurrencies, getQuotesDebounced } from './utils';
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
AssetUtil,
|
|
26
26
|
ConnectionsController,
|
|
27
27
|
SwapController,
|
|
28
|
-
type SwapControllerState
|
|
29
|
-
type SwapInputTarget,
|
|
30
|
-
type SwapTokenWithBalance
|
|
28
|
+
type SwapControllerState
|
|
31
29
|
} from '@reown/appkit-core-react-native';
|
|
32
30
|
|
|
31
|
+
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';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
2
|
+
import { SwapController } from '@reown/appkit-core-react-native';
|
|
2
3
|
|
|
3
4
|
export function filterTokens(tokens?: SwapTokenWithBalance[], searchValue?: string) {
|
|
4
5
|
if (!tokens) {
|
|
@@ -6,11 +6,10 @@ import {
|
|
|
6
6
|
ConstantsUtil,
|
|
7
7
|
EventsController,
|
|
8
8
|
RouterController,
|
|
9
|
-
SwapController
|
|
10
|
-
type SwapInputTarget
|
|
9
|
+
SwapController
|
|
11
10
|
} from '@reown/appkit-core-react-native';
|
|
12
11
|
import { Button, FlexView, IconLink, useTheme } from '@reown/appkit-ui-react-native';
|
|
13
|
-
import { NumberUtil } from '@reown/appkit-common-react-native';
|
|
12
|
+
import { NumberUtil, type SwapInputTarget } from '@reown/appkit-common-react-native';
|
|
14
13
|
|
|
15
14
|
import { useKeyboard } from '../../hooks/useKeyboard';
|
|
16
15
|
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
@@ -180,7 +179,7 @@ export function SwapView() {
|
|
|
180
179
|
onTokenPress={() => setShowModal('toToken')}
|
|
181
180
|
editable={false}
|
|
182
181
|
/>
|
|
183
|
-
{showSwitch
|
|
182
|
+
{showSwitch ? (
|
|
184
183
|
<IconLink
|
|
185
184
|
icon="recycleHorizontal"
|
|
186
185
|
size="lg"
|
|
@@ -191,9 +190,9 @@ export function SwapView() {
|
|
|
191
190
|
style={[styles.arrowIcon, { borderColor: Theme['bg-100'] }]}
|
|
192
191
|
onPress={onSwitchPress}
|
|
193
192
|
/>
|
|
194
|
-
)}
|
|
193
|
+
) : null}
|
|
195
194
|
</FlexView>
|
|
196
|
-
{showDetails
|
|
195
|
+
{showDetails ? <SwapDetails /> : null}
|
|
197
196
|
<Button
|
|
198
197
|
style={styles.actionButton}
|
|
199
198
|
loading={actionLoading}
|