Skip to content

Commit 279cb47

Browse files
fix: solved issue with apple login on iOS
1 parent cb8ad43 commit 279cb47

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.changeset/soft-waves-heal.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@reown/appkit-scaffold-react-native': patch
3+
'@reown/appkit-ethers5-react-native': patch
4+
'@reown/appkit-ethers-react-native': patch
5+
'@reown/appkit-wagmi-react-native': patch
6+
'@reown/appkit-auth-ethers-react-native': patch
7+
'@reown/appkit-auth-wagmi-react-native': patch
8+
'@reown/appkit-coinbase-ethers-react-native': patch
9+
'@reown/appkit-coinbase-wagmi-react-native': patch
10+
'@reown/appkit-common-react-native': patch
11+
'@reown/appkit-core-react-native': patch
12+
'@reown/appkit-scaffold-utils-react-native': patch
13+
'@reown/appkit-siwe-react-native': patch
14+
'@reown/appkit-ui-react-native': patch
15+
'@reown/appkit-wallet-react-native': patch
16+
---
17+
18+
fix: solved issue with apple login on iOS

packages/scaffold/src/views/w3m-connecting-social-view/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useSnapshot } from 'valtio';
22
import { useCallback, useEffect, useState } from 'react';
3-
import { Platform } from 'react-native';
43
import {
54
ConnectionController,
65
ConnectorController,
@@ -35,12 +34,9 @@ export function ConnectingSocialView() {
3534
const { uri } = await provider.getSocialRedirectUri({
3635
provider: ConnectionController.state.selectedSocialProvider
3736
});
38-
WebviewController.setWebviewUrl(uri);
39-
40-
const isNativeApple =
41-
ConnectionController.state.selectedSocialProvider === 'apple' && Platform.OS === 'ios';
4237

43-
WebviewController.setWebviewVisible(!isNativeApple);
38+
WebviewController.setWebviewUrl(uri);
39+
WebviewController.setWebviewVisible(true);
4440
WebviewController.setConnecting(true);
4541
WebviewController.setConnectingProvider(ConnectionController.state.selectedSocialProvider);
4642
}

0 commit comments

Comments
 (0)