@oobit/react-native-sdk
v3.3.3
Published
React Native SDK for integrating Oobit crypto payments into wallet apps
Downloads
716
Readme
@oobit/react-native-sdk
A React Native SDK that enables wallet apps to integrate Oobit's crypto-to-card payment services.
Installation
npm install @oobit/react-native-sdk react-native-webviewQuick Start
import { WidgetSDK } from "@oobit/react-native-sdk";
function PaymentScreen() {
return (
<WidgetSDK
accessToken="prod_your-jwt-token"
userWalletAddress="0x1234..."
onTransactionRequested={(transaction) => {
// Navigate to your transaction confirmation screen
navigation.navigate("ConfirmTransaction", { transaction });
}}
onClose={() => navigation.goBack()}
/>
);
}Important: The widget's back/close buttons are only shown when
onCloseis provided. If you omitonClose, the widget will have no way for users to dismiss it — make sure to always pass a handler unless you control dismissal externally.
Documentation
For complete documentation, guides, and API reference, visit:
- Getting Started - Installation and setup
- Component Reference - Props and methods
- Handling Transactions - Transaction flow guide
- TypeScript Types - Type definitions
License
MIT © Oobit
