@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.
Files changed (102) hide show
  1. package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js +1 -1
  2. package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -1
  3. package/lib/commonjs/partials/w3m-all-wallets-list/index.js +1 -1
  4. package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
  5. package/lib/commonjs/partials/w3m-connecting-mobile/index.js +4 -4
  6. package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
  7. package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +6 -1
  8. package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
  9. package/lib/commonjs/views/w3m-all-wallets-view/index.js +2 -2
  10. package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
  11. package/lib/commonjs/views/w3m-connecting-external-view/index.js +4 -4
  12. package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
  13. package/lib/commonjs/views/w3m-connecting-social-view/index.js +35 -30
  14. package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
  15. package/lib/commonjs/views/w3m-networks-view/index.js +7 -4
  16. package/lib/commonjs/views/w3m-networks-view/index.js.map +1 -1
  17. package/lib/commonjs/views/w3m-onramp-loading-view/index.js +4 -4
  18. package/lib/commonjs/views/w3m-onramp-loading-view/index.js.map +1 -1
  19. package/lib/commonjs/views/w3m-onramp-loading-view/styles.js +1 -1
  20. package/lib/commonjs/views/w3m-onramp-loading-view/styles.js.map +1 -1
  21. package/lib/commonjs/views/w3m-swap-preview-view/styles.js +0 -3
  22. package/lib/commonjs/views/w3m-swap-preview-view/styles.js.map +1 -1
  23. package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js +4 -2
  24. package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -1
  25. package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/styles.js +5 -3
  26. package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/styles.js.map +1 -1
  27. package/lib/commonjs/views/w3m-swap-view/index.js +5 -2
  28. package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
  29. package/lib/commonjs/views/w3m-swap-view/styles.js +0 -3
  30. package/lib/commonjs/views/w3m-swap-view/styles.js.map +1 -1
  31. package/lib/commonjs/views/w3m-wallet-send-view/index.js +5 -2
  32. package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
  33. package/lib/commonjs/views/w3m-wallet-send-view/styles.js +0 -3
  34. package/lib/commonjs/views/w3m-wallet-send-view/styles.js.map +1 -1
  35. package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js +1 -1
  36. package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -1
  37. package/lib/module/partials/w3m-all-wallets-list/index.js +1 -1
  38. package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
  39. package/lib/module/partials/w3m-connecting-mobile/index.js +4 -4
  40. package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
  41. package/lib/module/partials/w3m-connecting-qrcode/index.js +6 -1
  42. package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
  43. package/lib/module/views/w3m-all-wallets-view/index.js +2 -2
  44. package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
  45. package/lib/module/views/w3m-connecting-external-view/index.js +4 -4
  46. package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
  47. package/lib/module/views/w3m-connecting-social-view/index.js +35 -30
  48. package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
  49. package/lib/module/views/w3m-networks-view/index.js +8 -5
  50. package/lib/module/views/w3m-networks-view/index.js.map +1 -1
  51. package/lib/module/views/w3m-onramp-loading-view/index.js +4 -4
  52. package/lib/module/views/w3m-onramp-loading-view/index.js.map +1 -1
  53. package/lib/module/views/w3m-onramp-loading-view/styles.js +1 -1
  54. package/lib/module/views/w3m-onramp-loading-view/styles.js.map +1 -1
  55. package/lib/module/views/w3m-swap-preview-view/styles.js +0 -3
  56. package/lib/module/views/w3m-swap-preview-view/styles.js.map +1 -1
  57. package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js +4 -2
  58. package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -1
  59. package/lib/module/views/w3m-swap-view/components/select-token-modal/styles.js +5 -3
  60. package/lib/module/views/w3m-swap-view/components/select-token-modal/styles.js.map +1 -1
  61. package/lib/module/views/w3m-swap-view/index.js +5 -2
  62. package/lib/module/views/w3m-swap-view/index.js.map +1 -1
  63. package/lib/module/views/w3m-swap-view/styles.js +0 -3
  64. package/lib/module/views/w3m-swap-view/styles.js.map +1 -1
  65. package/lib/module/views/w3m-wallet-send-view/index.js +5 -2
  66. package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
  67. package/lib/module/views/w3m-wallet-send-view/styles.js +0 -3
  68. package/lib/module/views/w3m-wallet-send-view/styles.js.map +1 -1
  69. package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
  70. package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
  71. package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
  72. package/lib/typescript/views/w3m-connecting-social-view/index.d.ts.map +1 -1
  73. package/lib/typescript/views/w3m-networks-view/index.d.ts.map +1 -1
  74. package/lib/typescript/views/w3m-onramp-loading-view/index.d.ts.map +1 -1
  75. package/lib/typescript/views/w3m-swap-preview-view/styles.d.ts +0 -3
  76. package/lib/typescript/views/w3m-swap-preview-view/styles.d.ts.map +1 -1
  77. package/lib/typescript/views/w3m-swap-view/components/select-token-modal/index.d.ts.map +1 -1
  78. package/lib/typescript/views/w3m-swap-view/components/select-token-modal/styles.d.ts +4 -2
  79. package/lib/typescript/views/w3m-swap-view/components/select-token-modal/styles.d.ts.map +1 -1
  80. package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
  81. package/lib/typescript/views/w3m-swap-view/styles.d.ts +0 -3
  82. package/lib/typescript/views/w3m-swap-view/styles.d.ts.map +1 -1
  83. package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts +0 -3
  84. package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts.map +1 -1
  85. package/package.json +5 -5
  86. package/src/partials/w3m-all-wallets-list/components/WalletList.tsx +1 -1
  87. package/src/partials/w3m-all-wallets-list/index.tsx +2 -1
  88. package/src/partials/w3m-connecting-mobile/index.tsx +8 -8
  89. package/src/partials/w3m-connecting-qrcode/index.tsx +4 -1
  90. package/src/views/w3m-all-wallets-view/index.tsx +6 -2
  91. package/src/views/w3m-connecting-external-view/index.tsx +8 -8
  92. package/src/views/w3m-connecting-social-view/index.tsx +26 -28
  93. package/src/views/w3m-networks-view/index.tsx +6 -8
  94. package/src/views/w3m-onramp-loading-view/index.tsx +3 -7
  95. package/src/views/w3m-onramp-loading-view/styles.ts +1 -1
  96. package/src/views/w3m-swap-preview-view/styles.ts +0 -3
  97. package/src/views/w3m-swap-view/components/select-token-modal/index.tsx +3 -2
  98. package/src/views/w3m-swap-view/components/select-token-modal/styles.ts +5 -3
  99. package/src/views/w3m-swap-view/index.tsx +5 -2
  100. package/src/views/w3m-swap-view/styles.ts +0 -4
  101. package/src/views/w3m-wallet-send-view/index.tsx +2 -2
  102. 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,2CAwI5E"}
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAoCG"}
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,4CA2LvB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,QAAQ,4CA8LvB"}
@@ -17,9 +17,6 @@ declare const _default: {
17
17
  marginTop: number;
18
18
  width: "100%";
19
19
  };
20
- withKeyboard: {
21
- height: "100%";
22
- };
23
20
  };
24
21
  export default _default;
25
22
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAuBG"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wBAmBG"}
@@ -15,9 +15,6 @@ declare const _default: {
15
15
  addressContainer: {
16
16
  width: "100%";
17
17
  };
18
- withKeyboard: {
19
- height: "80%";
20
- };
21
18
  };
22
19
  export default _default;
23
20
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGA,wBAoBG"}
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-20250828200500",
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-20250828200500",
42
- "@reown/appkit-core-react-native": "0.0.0-fix-ui-changes-20250828200500",
43
- "@reown/appkit-siwe-react-native": "0.0.0-fix-ui-changes-20250828200500",
44
- "@reown/appkit-ui-react-native": "0.0.0-fix-ui-changes-20250828200500",
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 = installed.length + featured.length + recommended.length;
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 { maxWidth: width } = useCustomDimensions();
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 bounces={false} fadingEdgeLength={20} contentContainerStyle={styles.container}>
104
- <FlexView
105
- alignItems="center"
106
- alignSelf="center"
107
- padding={['2xl', 'l', '0', 'l']}
108
- style={{ width }}
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 { maxWidth: windowSize, isPortrait } = useCustomDimensions();
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 { maxWidth } = useCustomDimensions();
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
- { backgroundColor: Theme['bg-100'], shadowColor: Theme['bg-100'], width: maxWidth }
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 { maxWidth: width } = useCustomDimensions();
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 bounces={false} fadingEdgeLength={20} contentContainerStyle={styles.container}>
96
- <FlexView
97
- alignItems="center"
98
- alignSelf="center"
99
- padding={['2xl', 'l', '0', 'l']}
100
- style={{ width }}
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 { maxWidth: width } = useCustomDimensions();
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
- <FlexView
78
- alignItems="center"
79
- alignSelf="center"
80
- padding={['2xl', 'l', '3xl', 'l']}
81
- style={{ width }}
82
- >
83
- <LoadingThumbnail paused={!!error}>
84
- <Logo logo={data?.socialProvider ?? 'more'} height={72} width={72} />
85
- {error ? (
86
- <IconBox
87
- icon={'close'}
88
- border
89
- background
90
- backgroundColor="icon-box-bg-error-100"
91
- size="sm"
92
- iconColor="error-100"
93
- style={styles.errorIcon}
94
- />
95
- ) : null}
96
- </LoadingThumbnail>
97
- <Text style={styles.continueText} variant="paragraph-500">
98
- Continue with {StringUtil.capitalize(data?.socialProvider ?? 'Login')}
99
- </Text>
100
- <Text variant="small-400" color="fg-200">
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 { maxWidth: width, padding } = useCustomDimensions();
32
+ const { padding } = useCustomDimensions();
31
33
  const numColumns = 4;
32
- const usableWidth = width - Spacing.xs * 2 - Spacing['4xs'];
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 { maxWidth: width } = useCustomDimensions();
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"
@@ -3,7 +3,7 @@ import { Spacing } from '@reown/appkit-ui-react-native';
3
3
 
4
4
  export default StyleSheet.create({
5
5
  container: {
6
- paddingBottom: Spacing['3xl']
6
+ paddingBottom: Spacing['xl']
7
7
  },
8
8
  backButton: {
9
9
  alignSelf: 'flex-start'
@@ -14,8 +14,5 @@ export default StyleSheet.create({
14
14
  sendButton: {
15
15
  marginLeft: Spacing.s,
16
16
  flex: 3
17
- },
18
- withKeyboard: {
19
- height: '100%'
20
17
  }
21
18
  });
@@ -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
- margin: 0,
12
- flex: 1,
13
- justifyContent: 'flex-end'
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={[{ paddingHorizontal: padding }, keyboardShown && styles.withKeyboard]}
160
+ style={[
161
+ { paddingHorizontal: padding },
162
+ keyboardShown && !showModal && { height: maxHeight }
163
+ ]}
161
164
  bounces={false}
162
165
  keyboardShouldPersistTaps="always"
163
166
  >
@@ -19,9 +19,5 @@ export default StyleSheet.create({
19
19
  actionButton: {
20
20
  marginTop: Spacing.xs,
21
21
  width: '100%'
22
- },
23
-
24
- withKeyboard: {
25
- height: '100%'
26
22
  }
27
23
  });
@@ -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 && styles.withKeyboard]}
83
+ style={[{ paddingHorizontal: padding }, keyboardShown && { height: maxHeight }]}
84
84
  bounces={false}
85
85
  keyboardShouldPersistTaps="always"
86
86
  >
@@ -17,8 +17,5 @@ export default StyleSheet.create({
17
17
  },
18
18
  addressContainer: {
19
19
  width: '100%'
20
- },
21
- withKeyboard: {
22
- height: '80%'
23
20
  }
24
21
  });