An open API service indexing awesome lists of open source software.

https://github.com/abduljeleelng/react-native-rave-sdk

React-native-rave-sdk is the react-native wrapper for the Rave API from fluttewave to charge customer, React-native-rave-sdk using the WebView and performed server-side transaction verification at ago. React-native-rave-sdk comes with all the rave features. It worth gives a try at your next react-native project with rave API
https://github.com/abduljeleelng/react-native-rave-sdk

flutterwave flutterwave-api-react-native payment rave react-native react-native-flutterwave react-native-rave react-native-rave-sdk react-native-rave-webview

Last synced: 7 months ago
JSON representation

React-native-rave-sdk is the react-native wrapper for the Rave API from fluttewave to charge customer, React-native-rave-sdk using the WebView and performed server-side transaction verification at ago. React-native-rave-sdk comes with all the rave features. It worth gives a try at your next react-native project with rave API

Awesome Lists containing this project

README

          

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)

# [react-native-rave-sdk](https://developer.flutterwave.com)
### React native Rave SDK

```bash
npm install react-native-rave-sdk
```
or

```bash
yarn add react-native-rave-sdk
```
### Basic Usage

```bash
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import {Button } from 'react-native-paper'

import Rave from 'react-native-rave-sdk';

export default function App() {
const amount = 200
const getReference = () => {
let text = '';
let possible =
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.=';
for (let i = 0; i < 10; i++) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
};


return (

React Native Rave SDK

{
console.log({res})
}}
onFailed={res => {
console.log({res})
}}
onSuccess={res => {
console.log({res})
}}
onVerifyingError={res => {
console.log({res})
}}
/>

Custom Button

{
console.log({res})
}}
onFailed={res => {
console.log({res})
}}
onSuccess={res => {
console.log({res})
}}
onVerifyingError={res => {
console.log({res})
}}

customButtonProps={{
ButtonComp:Button,
icon:"bank",
children:"Make Payement",
style:{backgroundColor:"green"},
mode: "outlined",
}}
/>



);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});

```

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
=======



Abduljeleel Yusuff
Abduljeleel Yusuff

📖 💻 🚧 🤔 ⚠️ 👀 💡






Add your contributions



This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!