Showcase app for @daimo/sdk/native — the first React Native deposit UI from Daimo.
DaimoFrameRN— drop-in hosted deposit flow overreact-native-webviewpaymentMethodsauto — localized picker via{ mode: "auto" }- Fixed rails —
{ mode: "fixed", type: "ApplePay" | … } - Layouts —
modal(bottom sheet) andembed(inline, host chrome) - Callbacks —
onOpen,onClose,onPaymentStarted,onPaymentCompleted - External handoff — Apple Pay / wallet / fiat URLs via
onOpenExternalUrl
npm install --legacy-peer-deps
Create a .env with your Daimo API key:
EXPO_PUBLIC_DAIMO_API_KEY=daimo_...
Start the app:
npx expo run:ios
- Pick Modal or Embed
- Choose how external URLs open (system browser vs in-app Safari)
- Tap Auto (recommended) or a fixed rail — creates a session to Base USDC and mounts
DaimoFrameRN - Watch SDK events in the log
import { DaimoFrameRN } from '@daimo/sdk/native'; // Session created with: // display.paymentMethods = { mode: "auto" } <DaimoFrameRN layout="modal" sessionId={sessionId} clientSecret={clientSecret} onClose={() => setOpen(false)} onPaymentCompleted={() => console.log('done')} />
See Payment Methods and React Native.