← Back to Web Recipes
📱
LazorKit Mobile SDK
Test the React Native integration on your device
Scan to Test on Your Device
- 1Install Expo Go from the App Store (iOS) or Play Store (Android)
- 2Scan the QR code with Expo Go (Android) or the Camera app (iOS)
Mobile Recipes Included
👛
01 - Connect Wallet
Passkey authentication with deep linking
⚡
02 - Gasless Transfer
Send USDC without gas fees
🔄
03 - Raydium Swap
DEX integration with gasless swaps
📱 Mobile vs 🌐 Web: Key Differences
| Feature | Web | Mobile |
|---|---|---|
| SDK Package | @lazorkit/wallet | @lazorkit/wallet-mobile-adapter |
| Authentication | Popup window | External browser + deep link |
| Redirect Handling | Not required | Linking.createURL(...) |
| Transaction Signing | In-app popup | Opens LazorKit portal, returns via deep link |
Quick Start Code
Using the LazorKit Mobile SDK directly:
import { useWallet } from '@lazorkit/wallet-mobile-adapter';
import * as Linking from 'expo-linking';
const { wallet, isConnected, connect, signAndSendTransaction } = useWallet();
// Connect with deep link redirect
await connect({
redirectUrl: Linking.createURL('your/return/path'),
onSuccess: (wallet) => console.log('Connected:', wallet.smartWallet),
onFail: (error) => console.error('Failed:', error.message),
});
// Send gasless transaction
const signature = await signAndSendTransaction(
{ instructions, transactionOptions: { computeUnitLimit: 200_000 } },
{ redirectUrl: Linking.createURL('your/return/path') }
);💡 The cookbook includes a WalletContext wrapper that simplifies redirect handling across screens.
📖 Read the Mobile Cookbook Patterns Guide →