Skip to content

Commit 169cd7b

Browse files
Merge pull request #337 from reown-com/fix/cover-screen
fix: disable cover screen in modal
2 parents 7177787 + 0143d3b commit 169cd7b

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.changeset/thin-files-play.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-auth-ethers-react-native': patch
4+
'@reown/appkit-auth-wagmi-react-native': patch
5+
'@reown/appkit-coinbase-ethers-react-native': patch
6+
'@reown/appkit-coinbase-wagmi-react-native': patch
7+
'@reown/appkit-common-react-native': patch
8+
'@reown/appkit-core-react-native': patch
9+
'@reown/appkit-ethers-react-native': patch
10+
'@reown/appkit-ethers5-react-native': patch
11+
'@reown/appkit-scaffold-utils-react-native': patch
12+
'@reown/appkit-siwe-react-native': patch
13+
'@reown/appkit-ui-react-native': patch
14+
'@reown/appkit-wagmi-react-native': patch
15+
'@reown/appkit-wallet-react-native': patch
16+
---
17+
18+
fix: disable coverscreen on root modal to solve issues with expo-router

packages/scaffold/src/modal/w3m-modal/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
TransactionsController,
1717
type CaipAddress,
1818
type AppKitFrameProvider,
19-
WebviewController,
2019
ThemeController
2120
} from '@reown/appkit-core-react-native';
2221
import { SIWEController } from '@reown/appkit-siwe-react-native';
@@ -31,7 +30,6 @@ export function AppKit() {
3130
const { open, loading } = useSnapshot(ModalController.state);
3231
const { connectors, connectedConnector } = useSnapshot(ConnectorController.state);
3332
const { caipAddress, isConnected } = useSnapshot(AccountController.state);
34-
const { frameViewVisible, webviewVisible } = useSnapshot(WebviewController.state);
3533
const { themeMode, themeVariables } = useSnapshot(ThemeController.state);
3634
const { height } = useWindowDimensions();
3735
const { isLandscape } = useCustomDimensions();
@@ -121,7 +119,7 @@ export function AppKit() {
121119
<ThemeProvider themeMode={themeMode} themeVariables={themeVariables}>
122120
<Modal
123121
style={styles.modal}
124-
coverScreen={!frameViewVisible && !webviewVisible}
122+
coverScreen={false}
125123
isVisible={open}
126124
useNativeDriver
127125
useNativeDriverForBackdrop

0 commit comments

Comments
 (0)