> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.coinflow.cash/guides/checkout/implementation-overview/mobile-app-payments/react-native-sdk/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.coinflow.cash/_mcp/server. # React Native SDK ## Overview `@coinflowlabs/react-native` is a React Native SDK that embeds Coinflow's card tokenization form directly into iOS and Android apps from a single TypeScript codebase. The user enters their card inside your app, the SDK returns a payment token, and your backend charges the card via the standard Coinflow checkout API. * **Package:** [`@coinflowlabs/react-native`](https://www.npmjs.com/package/@coinflowlabs/react-native) * **Distribution:** npm * **Current version:** `4.13.0` ## Requirements * React Native 0.71+ / Expo SDK 50+ * iOS 15+ / Android `minSdk` 24+ * Peer dependency: [`react-native-webview`](https://www.npmjs.com/package/react-native-webview) `>=11.16.0` ## Installation ```bash npm install @coinflowlabs/react-native react-native-webview ``` For Expo projects, also run: ```bash npx expo install react-native-webview ``` iOS additionally requires running `pod install` from the `ios/` directory after install (skip if you use Expo's prebuild flow). ## Integration #### Add the card form component Render `CoinflowCardForm` and hold a ref you'll use to trigger tokenization. ```tsx import React, {useRef} from 'react'; import {Button, View} from 'react-native'; import { CoinflowCardForm, CardFormNativeRef, } from '@coinflowlabs/react-native'; export function PaymentScreen() { const formRef = useRef(null); const onPay = async () => { try { const response = await formRef.current?.tokenize(); console.log('Token:', response?.token); } catch (e) { // surface error to user } }; return (