This is a simple loan application created in react native and firebase with Rave APIs used in handling various payments.
- Rave Test and Live Accounts
- Node and NPM (mostly together as a package)
- React-Native CLI or Create-React-Native-App.
- Rave React-Native SDK.
- Firebase Account
- Expo (Optional, used as our debugging tool)
Running $ npm install
in your terminal, which installs:
react-navigation
firebase
react-native-rave
Note:
We need Rave Test or/and Live account run this app.
Also ensure you have Expo CLI installed and also Expo Client installed on your mobile phone depending on your phone type Google Play for Android phones and Apple Store for iOs mobile phones to scan the qr code displayed on the terminal window.
To use this project locally you can clone this repo here:
- Open your Terminal/Command Prompt
$ git clone https://github.com/MaestroJolly/react-native-loan-app
$ cd react-native-loan
// change directory into cloned app directory$ npm install
// To install all dependencies$ expo start
// This is used to start our project from the Expo CLI
react-native-loan-app
+ assets
+ components
- libraries
- Firebase.js
- screens
- AccountScreen.js
- ApplyScreen.js
- BvnScreen.js
- ChargeScreen.js
- HistoryScreen.js
- HomeScreen.js
- src
- assets
- App.js
- package.json
After the app has been successfully scanned and built, it should bring out this:
For Our Firebase Database, you need to open a firebase account here, then open the libraries directory in our project directory after that we then add your database configuration to file
Firebase.js
which has this code sample:
import firebase from 'firebase';
// Initialize Firebase
var config = {
apiKey: "<YOUR-FIREBASE-API-KEY>",
authDomain: "<YOUR-FIREBASE-AUTH-DOMAIN>",
databaseURL: "<YOUR-FIREBASE-DATABASE-URL>",
projectId: "<PROJECT_ID>",
storageBucket: "<YOUR-FIREBASE-STORAGE-BUCKET>",
messagingSenderId: "<SENDER_ID>"
};
const Firebase = firebase.initializeApp(config);
export default Firebase;
You are welcome to fork and and test out this sample loan app project.