@reown/appkit-react-native 0.0.0-fix-ui-changes-20250828200500 → 0.0.0-fix-ui-changes-20250829144656
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/partials/w3m-all-wallets-list/components/WalletList.js +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +4 -4
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +6 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +2 -2
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +4 -4
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +35 -30
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-networks-view/index.js +7 -4
- package/lib/commonjs/views/w3m-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js +4 -4
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/styles.js +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-preview-view/styles.js +0 -3
- package/lib/commonjs/views/w3m-swap-preview-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js +4 -2
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/styles.js +5 -3
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/index.js +5 -2
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/styles.js +0 -3
- package/lib/commonjs/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/index.js +5 -2
- package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js +0 -3
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/index.js +1 -1
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +4 -4
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +6 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +2 -2
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +4 -4
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +35 -30
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-networks-view/index.js +8 -5
- package/lib/module/views/w3m-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/index.js +4 -4
- package/lib/module/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/styles.js +1 -1
- package/lib/module/views/w3m-onramp-loading-view/styles.js.map +1 -1
- package/lib/module/views/w3m-swap-preview-view/styles.js +0 -3
- package/lib/module/views/w3m-swap-preview-view/styles.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js +4 -2
- package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-modal/styles.js +5 -3
- package/lib/module/views/w3m-swap-view/components/select-token-modal/styles.js.map +1 -1
- package/lib/module/views/w3m-swap-view/index.js +5 -2
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/styles.js +0 -3
- package/lib/module/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/index.js +5 -2
- package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/styles.js +0 -3
- package/lib/module/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.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-connecting-social-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-loading-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-preview-view/styles.d.ts +0 -3
- package/lib/typescript/views/w3m-swap-preview-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-modal/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-modal/styles.d.ts +4 -2
- package/lib/typescript/views/w3m-swap-view/components/select-token-modal/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/styles.d.ts +0 -3
- package/lib/typescript/views/w3m-swap-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts +0 -3
- package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/partials/w3m-all-wallets-list/components/WalletList.tsx +1 -1
- package/src/partials/w3m-all-wallets-list/index.tsx +2 -1
- package/src/partials/w3m-connecting-mobile/index.tsx +8 -8
- package/src/partials/w3m-connecting-qrcode/index.tsx +4 -1
- package/src/views/w3m-all-wallets-view/index.tsx +6 -2
- package/src/views/w3m-connecting-external-view/index.tsx +8 -8
- package/src/views/w3m-connecting-social-view/index.tsx +26 -28
- package/src/views/w3m-networks-view/index.tsx +6 -8
- package/src/views/w3m-onramp-loading-view/index.tsx +3 -7
- package/src/views/w3m-onramp-loading-view/styles.ts +1 -1
- package/src/views/w3m-swap-preview-view/styles.ts +0 -3
- package/src/views/w3m-swap-view/components/select-token-modal/index.tsx +3 -2
- package/src/views/w3m-swap-view/components/select-token-modal/styles.ts +5 -3
- package/src/views/w3m-swap-view/index.tsx +5 -2
- package/src/views/w3m-swap-view/styles.ts +0 -4
- package/src/views/w3m-wallet-send-view/index.tsx +2 -2
- package/src/views/w3m-wallet-send-view/styles.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-modal/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,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,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-modal/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,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,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,KAAK,2CAyI5E"}
|
|
@@ -5,9 +5,11 @@ declare const _default: {
|
|
|
5
5
|
borderBottomLeftRadius: number;
|
|
6
6
|
borderBottomRightRadius: number;
|
|
7
7
|
overflow: "hidden";
|
|
8
|
+
position: "absolute";
|
|
9
|
+
bottom: number;
|
|
10
|
+
left: number;
|
|
11
|
+
right: number;
|
|
8
12
|
margin: number;
|
|
9
|
-
flex: number;
|
|
10
|
-
justifyContent: "flex-end";
|
|
11
13
|
};
|
|
12
14
|
title: {
|
|
13
15
|
paddingTop: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-modal/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-modal/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAsCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,QAAQ,4CA8LvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wBAmBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGA,wBAiBG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-react-native",
|
|
3
|
-
"version": "0.0.0-fix-ui-changes-
|
|
3
|
+
"version": "0.0.0-fix-ui-changes-20250829144656",
|
|
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-ui-changes-
|
|
42
|
-
"@reown/appkit-core-react-native": "0.0.0-fix-ui-changes-
|
|
43
|
-
"@reown/appkit-siwe-react-native": "0.0.0-fix-ui-changes-
|
|
44
|
-
"@reown/appkit-ui-react-native": "0.0.0-fix-ui-changes-
|
|
41
|
+
"@reown/appkit-common-react-native": "0.0.0-fix-ui-changes-20250829144656",
|
|
42
|
+
"@reown/appkit-core-react-native": "0.0.0-fix-ui-changes-20250829144656",
|
|
43
|
+
"@reown/appkit-siwe-react-native": "0.0.0-fix-ui-changes-20250829144656",
|
|
44
|
+
"@reown/appkit-ui-react-native": "0.0.0-fix-ui-changes-20250829144656",
|
|
45
45
|
"@walletconnect/universal-provider": "2.21.5",
|
|
46
46
|
"valtio": "2.1.5"
|
|
47
47
|
},
|
|
@@ -63,7 +63,7 @@ export function WalletList({
|
|
|
63
63
|
contentContainerStyle={[styles.contentContainer, { paddingHorizontal: padding }]}
|
|
64
64
|
onEndReached={onEndReached}
|
|
65
65
|
onEndReachedThreshold={onEndReachedThreshold}
|
|
66
|
-
keyExtractor={item => item?.id}
|
|
66
|
+
keyExtractor={(item, index) => item?.id ?? `item-${index}`}
|
|
67
67
|
getItemLayout={(_, index) => ({
|
|
68
68
|
length: ITEM_HEIGHT_WITH_GAP,
|
|
69
69
|
offset: ITEM_HEIGHT_WITH_GAP * index,
|
|
@@ -24,7 +24,8 @@ export function AllWalletsList({ onItemPress }: AllWalletsListProps) {
|
|
|
24
24
|
const [pageLoading, setPageLoading] = useState<boolean>(false);
|
|
25
25
|
const { installed, featured, recommended, wallets } = useSnapshot(ApiController.state);
|
|
26
26
|
const { customWallets } = useSnapshot(OptionsController.state) as OptionsControllerState;
|
|
27
|
-
const preloadedWallets =
|
|
27
|
+
const preloadedWallets =
|
|
28
|
+
installed.length + featured.length + recommended.length + (customWallets?.length ?? 0);
|
|
28
29
|
const loadingItems = 4 - ((100 + preloadedWallets) % 4);
|
|
29
30
|
|
|
30
31
|
const combinedWallets = [
|
|
@@ -34,7 +34,7 @@ interface Props {
|
|
|
34
34
|
|
|
35
35
|
export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
|
|
36
36
|
const { data } = RouterController.state;
|
|
37
|
-
const {
|
|
37
|
+
const { padding } = useCustomDimensions();
|
|
38
38
|
const { wcUri, wcError } = useSnapshot(WcController.state);
|
|
39
39
|
const { walletImages } = useSnapshot(AssetController.state);
|
|
40
40
|
const [errorType, setErrorType] = useState<BodyErrorType>();
|
|
@@ -100,13 +100,13 @@ export function ConnectingMobile({ onRetry, onCopyUri, isInstalled }: Props) {
|
|
|
100
100
|
}, [wcUri, onConnect]);
|
|
101
101
|
|
|
102
102
|
return (
|
|
103
|
-
<ScrollView
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
>
|
|
103
|
+
<ScrollView
|
|
104
|
+
bounces={false}
|
|
105
|
+
fadingEdgeLength={20}
|
|
106
|
+
style={{ paddingHorizontal: padding }}
|
|
107
|
+
contentContainerStyle={styles.container}
|
|
108
|
+
>
|
|
109
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '0', 'l']}>
|
|
110
110
|
<LoadingThumbnail paused={!!errorType || wcError}>
|
|
111
111
|
<WalletImage
|
|
112
112
|
size="xl"
|
|
@@ -16,11 +16,14 @@ import {
|
|
|
16
16
|
} from '@reown/appkit-ui-react-native';
|
|
17
17
|
import styles from './styles';
|
|
18
18
|
import { ReownButton } from './components/ReownButton';
|
|
19
|
+
import { useWindowDimensions } from 'react-native';
|
|
19
20
|
|
|
20
21
|
export function ConnectingQrCode() {
|
|
22
|
+
const { height, width } = useWindowDimensions();
|
|
23
|
+
const windowSize = Math.min(height, width);
|
|
21
24
|
const { wcUri } = useSnapshot(WcController.state);
|
|
22
25
|
const showCopy = OptionsController.isClipboardAvailable();
|
|
23
|
-
const {
|
|
26
|
+
const { isPortrait } = useCustomDimensions();
|
|
24
27
|
const qrSize = (windowSize - Spacing.xl * 2) / (isPortrait ? 1 : 1.5);
|
|
25
28
|
|
|
26
29
|
const onCopyAddress = () => {
|
|
@@ -18,7 +18,7 @@ import { WcHelpersUtil } from '../../utils/HelpersUtil';
|
|
|
18
18
|
export function AllWalletsView() {
|
|
19
19
|
const Theme = useTheme();
|
|
20
20
|
const [searchQuery, setSearchQuery] = useState<string>('');
|
|
21
|
-
const {
|
|
21
|
+
const { padding } = useCustomDimensions();
|
|
22
22
|
|
|
23
23
|
const { debouncedCallback: onInputChange } = useDebounceCallback({ callback: setSearchQuery });
|
|
24
24
|
|
|
@@ -57,7 +57,11 @@ export function AllWalletsView() {
|
|
|
57
57
|
alignItems="center"
|
|
58
58
|
style={[
|
|
59
59
|
styles.header,
|
|
60
|
-
{
|
|
60
|
+
{
|
|
61
|
+
backgroundColor: Theme['bg-100'],
|
|
62
|
+
shadowColor: Theme['bg-100'],
|
|
63
|
+
marginHorizontal: padding
|
|
64
|
+
}
|
|
61
65
|
]}
|
|
62
66
|
>
|
|
63
67
|
<SearchBar
|
|
@@ -29,7 +29,7 @@ export function ConnectingExternalView() {
|
|
|
29
29
|
const { data } = useSnapshot(RouterController.state);
|
|
30
30
|
const { walletImages } = useSnapshot(AssetController.state);
|
|
31
31
|
const { connect } = useInternalAppKit();
|
|
32
|
-
const {
|
|
32
|
+
const { padding } = useCustomDimensions();
|
|
33
33
|
const [errorType, setErrorType] = useState<BodyErrorType>();
|
|
34
34
|
const bodyMessage = getMessage({ walletName: data?.wallet?.name, errorType });
|
|
35
35
|
|
|
@@ -92,13 +92,13 @@ export function ConnectingExternalView() {
|
|
|
92
92
|
}, [onConnect]);
|
|
93
93
|
|
|
94
94
|
return (
|
|
95
|
-
<ScrollView
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
>
|
|
95
|
+
<ScrollView
|
|
96
|
+
bounces={false}
|
|
97
|
+
fadingEdgeLength={20}
|
|
98
|
+
style={{ paddingHorizontal: padding }}
|
|
99
|
+
contentContainerStyle={styles.container}
|
|
100
|
+
>
|
|
101
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '0', 'l']}>
|
|
102
102
|
<LoadingThumbnail paused={!!errorType}>
|
|
103
103
|
<WalletImage
|
|
104
104
|
size="xl"
|
|
@@ -19,9 +19,10 @@ import { ConstantsUtil, StringUtil } from '@reown/appkit-common-react-native';
|
|
|
19
19
|
|
|
20
20
|
import { useInternalAppKit } from '../../AppKitContext';
|
|
21
21
|
import styles from './styles';
|
|
22
|
+
import { ScrollView } from 'react-native';
|
|
22
23
|
|
|
23
24
|
export function ConnectingSocialView() {
|
|
24
|
-
const {
|
|
25
|
+
const { padding } = useCustomDimensions();
|
|
25
26
|
const { connect } = useInternalAppKit();
|
|
26
27
|
const { data } = useSnapshot(RouterController.state);
|
|
27
28
|
const { wcUri } = useSnapshot(WcController.state);
|
|
@@ -74,32 +75,29 @@ export function ConnectingSocialView() {
|
|
|
74
75
|
}, [wcUri, onConnect]);
|
|
75
76
|
|
|
76
77
|
return (
|
|
77
|
-
<
|
|
78
|
-
alignItems="center"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</
|
|
100
|
-
|
|
101
|
-
Continue in your browser
|
|
102
|
-
</Text>
|
|
103
|
-
</FlexView>
|
|
78
|
+
<ScrollView bounces={false} fadingEdgeLength={20} style={{ paddingHorizontal: padding }}>
|
|
79
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '2xl', 'l']}>
|
|
80
|
+
<LoadingThumbnail paused={!!error}>
|
|
81
|
+
<Logo logo={data?.socialProvider ?? 'more'} height={72} width={72} />
|
|
82
|
+
{error ? (
|
|
83
|
+
<IconBox
|
|
84
|
+
icon={'close'}
|
|
85
|
+
border
|
|
86
|
+
background
|
|
87
|
+
backgroundColor="icon-box-bg-error-100"
|
|
88
|
+
size="sm"
|
|
89
|
+
iconColor="error-100"
|
|
90
|
+
style={styles.errorIcon}
|
|
91
|
+
/>
|
|
92
|
+
) : null}
|
|
93
|
+
</LoadingThumbnail>
|
|
94
|
+
<Text style={styles.continueText} variant="paragraph-500">
|
|
95
|
+
Continue with {StringUtil.capitalize(data?.socialProvider ?? 'Login')}
|
|
96
|
+
</Text>
|
|
97
|
+
<Text variant="small-400" color="fg-200">
|
|
98
|
+
Continue in your browser
|
|
99
|
+
</Text>
|
|
100
|
+
</FlexView>
|
|
101
|
+
</ScrollView>
|
|
104
102
|
);
|
|
105
103
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScrollView, View } from 'react-native';
|
|
1
|
+
import { ScrollView, useWindowDimensions, View } from 'react-native';
|
|
2
2
|
import {
|
|
3
3
|
CardSelect,
|
|
4
4
|
CardSelectWidth,
|
|
@@ -24,12 +24,14 @@ import { useInternalAppKit } from '../../AppKitContext';
|
|
|
24
24
|
import { useSnapshot } from 'valtio';
|
|
25
25
|
|
|
26
26
|
export function NetworksView() {
|
|
27
|
+
const { height, width } = useWindowDimensions();
|
|
28
|
+
const windowSize = Math.min(height, width);
|
|
27
29
|
const { networks, isConnected } = useSnapshot(ConnectionsController.state);
|
|
28
30
|
const { networkImages } = useSnapshot(AssetController.state);
|
|
29
31
|
const imageHeaders = ApiController._getApiHeaders();
|
|
30
|
-
const {
|
|
32
|
+
const { padding } = useCustomDimensions();
|
|
31
33
|
const numColumns = 4;
|
|
32
|
-
const usableWidth =
|
|
34
|
+
const usableWidth = windowSize - Spacing.xs * 2 - Spacing['4xs'];
|
|
33
35
|
const itemWidth = Math.abs(Math.trunc(usableWidth / numColumns));
|
|
34
36
|
const itemGap = Math.abs(
|
|
35
37
|
Math.trunc((usableWidth - numColumns * CardSelectWidth) / numColumns) / 2
|
|
@@ -83,11 +85,7 @@ export function NetworksView() {
|
|
|
83
85
|
|
|
84
86
|
return (
|
|
85
87
|
<>
|
|
86
|
-
<ScrollView
|
|
87
|
-
bounces={false}
|
|
88
|
-
fadingEdgeLength={20}
|
|
89
|
-
style={{ paddingHorizontal: padding, marginBottom: Spacing.xl }}
|
|
90
|
-
>
|
|
88
|
+
<ScrollView bounces={false} fadingEdgeLength={20} style={{ paddingHorizontal: padding }}>
|
|
91
89
|
<FlexView flexDirection="row" flexWrap="wrap" padding={['xs', 'xs', '4xl', 'xs']}>
|
|
92
90
|
{networksTemplate()}
|
|
93
91
|
</FlexView>
|
|
@@ -21,7 +21,7 @@ import styles from './styles';
|
|
|
21
21
|
import { StringUtil } from '@reown/appkit-common-react-native';
|
|
22
22
|
|
|
23
23
|
export function OnRampLoadingView() {
|
|
24
|
-
const {
|
|
24
|
+
const { padding } = useCustomDimensions();
|
|
25
25
|
const { error } = useSnapshot(OnRampController.state);
|
|
26
26
|
const providerName = StringUtil.capitalize(
|
|
27
27
|
OnRampController.state.selectedQuote?.serviceProvider.toLowerCase()
|
|
@@ -111,14 +111,10 @@ export function OnRampLoadingView() {
|
|
|
111
111
|
bounces={false}
|
|
112
112
|
fadingEdgeLength={20}
|
|
113
113
|
contentContainerStyle={styles.container}
|
|
114
|
+
style={{ paddingHorizontal: padding }}
|
|
114
115
|
testID="onramp-loading-widget-view"
|
|
115
116
|
>
|
|
116
|
-
<FlexView
|
|
117
|
-
alignItems="center"
|
|
118
|
-
alignSelf="center"
|
|
119
|
-
padding={['2xl', 'l', '0', 'l']}
|
|
120
|
-
style={{ width }}
|
|
121
|
-
>
|
|
117
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '0', 'l']}>
|
|
122
118
|
<IconLink
|
|
123
119
|
icon="chevronLeft"
|
|
124
120
|
size="md"
|
|
@@ -44,7 +44,7 @@ interface Props {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export function SwapSelectTokenModal({ onClose, type, style, visible }: Props) {
|
|
47
|
-
const { padding } = useCustomDimensions();
|
|
47
|
+
const { padding, maxHeight } = useCustomDimensions();
|
|
48
48
|
const Theme = useTheme();
|
|
49
49
|
const { activeNetwork } = useSnapshot(ConnectionsController.state);
|
|
50
50
|
const { networkImages } = useSnapshot(AssetController.state);
|
|
@@ -88,7 +88,8 @@ export function SwapSelectTokenModal({ onClose, type, style, visible }: Props) {
|
|
|
88
88
|
styles.container,
|
|
89
89
|
{
|
|
90
90
|
paddingHorizontal: padding,
|
|
91
|
-
backgroundColor: Theme['bg-100']
|
|
91
|
+
backgroundColor: Theme['bg-100'],
|
|
92
|
+
height: maxHeight
|
|
92
93
|
},
|
|
93
94
|
style
|
|
94
95
|
]}
|
|
@@ -8,9 +8,11 @@ export default StyleSheet.create({
|
|
|
8
8
|
borderBottomLeftRadius: 0,
|
|
9
9
|
borderBottomRightRadius: 0,
|
|
10
10
|
overflow: 'hidden',
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
position: 'absolute',
|
|
12
|
+
bottom: 0,
|
|
13
|
+
left: 0,
|
|
14
|
+
right: 0,
|
|
15
|
+
margin: 0
|
|
14
16
|
},
|
|
15
17
|
title: {
|
|
16
18
|
paddingTop: Spacing['2xs']
|
|
@@ -39,7 +39,7 @@ export function SwapView() {
|
|
|
39
39
|
inputError
|
|
40
40
|
} = useSnapshot(SwapController.state);
|
|
41
41
|
const Theme = useTheme();
|
|
42
|
-
const { padding } = useCustomDimensions();
|
|
42
|
+
const { padding, maxHeight } = useCustomDimensions();
|
|
43
43
|
const { keyboardShown } = useKeyboard();
|
|
44
44
|
const [showModal, setShowModal] = useState<SwapInputTarget | undefined>();
|
|
45
45
|
const showDetails = !!sourceToken && !!toToken && !inputError;
|
|
@@ -157,7 +157,10 @@ export function SwapView() {
|
|
|
157
157
|
return (
|
|
158
158
|
<>
|
|
159
159
|
<ScrollView
|
|
160
|
-
style={[
|
|
160
|
+
style={[
|
|
161
|
+
{ paddingHorizontal: padding },
|
|
162
|
+
keyboardShown && !showModal && { height: maxHeight }
|
|
163
|
+
]}
|
|
161
164
|
bounces={false}
|
|
162
165
|
keyboardShouldPersistTaps="always"
|
|
163
166
|
>
|
|
@@ -14,7 +14,7 @@ import { SendInputAddress } from '../../partials/w3m-send-input-address';
|
|
|
14
14
|
import styles from './styles';
|
|
15
15
|
|
|
16
16
|
export function WalletSendView() {
|
|
17
|
-
const { padding } = useCustomDimensions();
|
|
17
|
+
const { padding, maxHeight } = useCustomDimensions();
|
|
18
18
|
const { keyboardShown } = useKeyboard();
|
|
19
19
|
const [isBalanceLoading, setBalanceLoading] = useState(false);
|
|
20
20
|
const { token, sendTokenAmount, receiverAddress, receiverProfileName, loading } = useSnapshot(
|
|
@@ -80,7 +80,7 @@ export function WalletSendView() {
|
|
|
80
80
|
|
|
81
81
|
return (
|
|
82
82
|
<ScrollView
|
|
83
|
-
style={[{ paddingHorizontal: padding }, keyboardShown &&
|
|
83
|
+
style={[{ paddingHorizontal: padding }, keyboardShown && { height: maxHeight }]}
|
|
84
84
|
bounces={false}
|
|
85
85
|
keyboardShouldPersistTaps="always"
|
|
86
86
|
>
|