@dubsdotapp/expo 0.2.23 → 0.2.24
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/dist/index.js +66 -67
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -51
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/managed-wallet.tsx +4 -6
package/package.json
CHANGED
package/src/managed-wallet.tsx
CHANGED
|
@@ -4,7 +4,6 @@ import { MwaWalletAdapter } from './wallet/mwa-adapter';
|
|
|
4
4
|
import { PhantomDeeplinkAdapter } from './wallet/phantom-deeplink';
|
|
5
5
|
import type { PhantomSession } from './wallet/phantom-deeplink';
|
|
6
6
|
import type { WalletAdapter } from './wallet/types';
|
|
7
|
-
import { isSolanaSeeker } from './utils/device';
|
|
8
7
|
import { ConnectWalletScreen } from './ui/ConnectWalletScreen';
|
|
9
8
|
import type { ConnectWalletScreenProps } from './ui/ConnectWalletScreen';
|
|
10
9
|
import type { TokenStorage } from './storage';
|
|
@@ -96,12 +95,11 @@ export function ManagedWalletProvider({
|
|
|
96
95
|
const [error, setError] = useState<string | null>(null);
|
|
97
96
|
|
|
98
97
|
// Determine which adapter to use:
|
|
99
|
-
// -
|
|
100
|
-
// -
|
|
101
|
-
const
|
|
102
|
-
const usePhantom = !seeker && !!redirectUri;
|
|
98
|
+
// - Android (all devices) → MWA (Phantom + other wallets support Mobile Wallet Adapter natively)
|
|
99
|
+
// - iOS → Phantom deeplinks (MWA not available on iOS)
|
|
100
|
+
const usePhantom = Platform.OS === 'ios' && !!redirectUri;
|
|
103
101
|
|
|
104
|
-
console.log(TAG, `Platform: ${Platform.OS},
|
|
102
|
+
console.log(TAG, `Platform: ${Platform.OS}, redirectUri: ${redirectUri ? 'provided' : 'not set'}, usePhantom: ${usePhantom}`);
|
|
105
103
|
|
|
106
104
|
const adapterRef = useRef<WalletAdapter | null>(null);
|
|
107
105
|
const transactRef = useRef<any>(null);
|