@reown/appkit-react-native 0.0.0-fix-ui-changes-20250828211016 → 0.0.0-fix-ui-changes-20250829161224
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 +4 -2
- 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 -2
- 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/module/partials/w3m-all-wallets-list/components/WalletList.js +5 -3
- 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 -2
- 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/typescript/partials/w3m-all-wallets-list/components/WalletList.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/package.json +5 -5
- package/src/partials/w3m-all-wallets-list/components/WalletList.tsx +6 -3
- package/src/partials/w3m-all-wallets-list/index.tsx +2 -2
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-networks-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-networks-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,YAAY,4CAyF3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-loading-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-loading-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,4CAwIhC"}
|
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-20250829161224",
|
|
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-20250829161224",
|
|
42
|
+
"@reown/appkit-core-react-native": "0.0.0-fix-ui-changes-20250829161224",
|
|
43
|
+
"@reown/appkit-siwe-react-native": "0.0.0-fix-ui-changes-20250829161224",
|
|
44
|
+
"@reown/appkit-ui-react-native": "0.0.0-fix-ui-changes-20250829161224",
|
|
45
45
|
"@walletconnect/universal-provider": "2.21.5",
|
|
46
46
|
"valtio": "2.1.5"
|
|
47
47
|
},
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
CardSelectHeight,
|
|
5
5
|
Spacing,
|
|
6
6
|
useCustomDimensions,
|
|
7
|
-
CardSelectLoader
|
|
7
|
+
CardSelectLoader,
|
|
8
|
+
CardSelectWidth
|
|
8
9
|
} from '@reown/appkit-ui-react-native';
|
|
9
10
|
import { ApiController } from '@reown/appkit-core-react-native';
|
|
10
11
|
import type { WcWallet } from '@reown/appkit-common-react-native';
|
|
@@ -12,6 +13,7 @@ import type { WcWallet } from '@reown/appkit-common-react-native';
|
|
|
12
13
|
const imageHeaders = ApiController._getApiHeaders();
|
|
13
14
|
|
|
14
15
|
const ITEM_HEIGHT = CardSelectHeight;
|
|
16
|
+
const ITEM_WIDTH = CardSelectWidth;
|
|
15
17
|
const ITEM_HEIGHT_WITH_GAP = ITEM_HEIGHT + Spacing['3xs'];
|
|
16
18
|
|
|
17
19
|
interface Props {
|
|
@@ -63,7 +65,7 @@ export function WalletList({
|
|
|
63
65
|
contentContainerStyle={[styles.contentContainer, { paddingHorizontal: padding }]}
|
|
64
66
|
onEndReached={onEndReached}
|
|
65
67
|
onEndReachedThreshold={onEndReachedThreshold}
|
|
66
|
-
keyExtractor={item => item?.id}
|
|
68
|
+
keyExtractor={(item, index) => item?.id ?? `item-${index}`}
|
|
67
69
|
getItemLayout={(_, index) => ({
|
|
68
70
|
length: ITEM_HEIGHT_WITH_GAP,
|
|
69
71
|
offset: ITEM_HEIGHT_WITH_GAP * index,
|
|
@@ -87,6 +89,7 @@ const styles = StyleSheet.create({
|
|
|
87
89
|
justifyContent: 'space-around'
|
|
88
90
|
},
|
|
89
91
|
itemContainer: {
|
|
90
|
-
width: '23%'
|
|
92
|
+
width: '23%',
|
|
93
|
+
minWidth: ITEM_WIDTH
|
|
91
94
|
}
|
|
92
95
|
});
|
|
@@ -24,8 +24,6 @@ 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;
|
|
28
|
-
const loadingItems = 4 - ((100 + preloadedWallets) % 4);
|
|
29
27
|
|
|
30
28
|
const combinedWallets = [
|
|
31
29
|
...(customWallets ?? []),
|
|
@@ -40,6 +38,8 @@ export function AllWalletsList({ onItemPress }: AllWalletsListProps) {
|
|
|
40
38
|
new Map(combinedWallets.map(wallet => [wallet?.id, wallet])).values()
|
|
41
39
|
).filter(wallet => wallet?.id); // Filter out any undefined wallets
|
|
42
40
|
|
|
41
|
+
const loadingItems = 4 - ((100 + uniqueWallets.length) % 4);
|
|
42
|
+
|
|
43
43
|
const walletList = [
|
|
44
44
|
...uniqueWallets,
|
|
45
45
|
...(pageLoading ? (Array.from({ length: loadingItems }) as WcWallet[]) : [])
|
|
@@ -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"
|