Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .changeset/soft-waves-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'@reown/appkit-scaffold-react-native': patch
'@reown/appkit-ethers5-react-native': patch
'@reown/appkit-ethers-react-native': patch
'@reown/appkit-wagmi-react-native': patch
'@reown/appkit-auth-ethers-react-native': patch
'@reown/appkit-auth-wagmi-react-native': patch
'@reown/appkit-coinbase-ethers-react-native': patch
'@reown/appkit-coinbase-wagmi-react-native': patch
'@reown/appkit-common-react-native': patch
'@reown/appkit-core-react-native': patch
'@reown/appkit-scaffold-utils-react-native': patch
'@reown/appkit-siwe-react-native': patch
'@reown/appkit-ui-react-native': patch
'@reown/appkit-wallet-react-native': patch
---

fix: solved issue with apple login on iOS
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useSnapshot } from 'valtio';
import { useCallback, useEffect, useState } from 'react';
import { Platform } from 'react-native';
import {
ConnectionController,
ConnectorController,
Expand Down Expand Up @@ -35,12 +34,9 @@ export function ConnectingSocialView() {
const { uri } = await provider.getSocialRedirectUri({
provider: ConnectionController.state.selectedSocialProvider
});
WebviewController.setWebviewUrl(uri);

const isNativeApple =
ConnectionController.state.selectedSocialProvider === 'apple' && Platform.OS === 'ios';

WebviewController.setWebviewVisible(!isNativeApple);
WebviewController.setWebviewUrl(uri);
WebviewController.setWebviewVisible(true);
WebviewController.setConnecting(true);
WebviewController.setConnectingProvider(ConnectionController.state.selectedSocialProvider);
}
Expand Down
Loading