Initialize the SDK React Native DEUNA in your application.
Stable version: 1.0.4
The DEUNA React Native SDK is compatible with Expo.
Requirements
To use DEUNA's React Native SDK, you need:
- NodeJs 20 or higher
- Yarn or NPM as a package manager
- React 18.2.0 or higher
- React Native 0.72.0 or higher
- React Native WebView 13.12.5 or higher
- Expo SDK 50 or higher (for apps with Expo)
- An active account at DEUNA
- Valid DEUNA credentials
- Minimum configurations in your Android project:
minSdkVersion 24
or higher
The DEUNA React Native SDK is compatible with Huawei devices with HarmonyOS 2.0 or higher.
If you experience any delays in obtaining your credentials, then contact [email protected].
Install the SDK
Begin the initialization of the SDK.
Follow security and privacy practices when handling user financial information.
1. Add the SDK
Use the following command to add the DEUNA SDK to your React Native or Expo project:
yarn add @deuna/react-native-sdk
npm i @deuna/react-native-sdk
Add a react-native-webview
dependency to your project:
yarn add react-native-webview
npm i react-native-webview
2. Initialize the SDK
Initialize the SDK or create an instance with aDeunaSDK
class.
import { DeunaSDK, Environment } from '@deuna/react-native-sdk';
const deunaSDK = DeunaSDK.initialize({
publicApiKey: 'YOUR_PUBLIC_API_KEY',
environment: 'sandbox', // sandbox or production
});
3. Choose the widget component
Continue the integration process following the specific instructions for each component.
Choose the component: