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

https://github.com/rnback/rnback

This repo is for bug reports and feature requests. Feel free to open an issue.
https://github.com/rnback/rnback

android baas backend backend-services ios mbaas mobile mobile-development react react-native react-native-app reactnative

Last synced: 7 months ago
JSON representation

This repo is for bug reports and feature requests. Feel free to open an issue.

Awesome Lists containing this project

README

          

# rnback

Rnback is a __backend service__ for react-native applications.

To learn more, head to [https://rnback.com](https://rnback.com)

-----------------------

# rnback sdk

## Install

1. Create a react-native project: (If you don't already have one)
```bash
react-native init MyProject && cd MyProject
```

2. Install the sdk:
```bash
npm install --save rnback
```

3. Add key from the dashboard https://dashboard.rnback.com/ :
```bash
node ./node_modules/rnback/cli/ setkey ""
```
* NOTE: It's important to do this step before the following.

4. Link library
```bash
react-native link rnback
```

5. Done! you can now use the sdk in your app
```javascript
import {authenticate} from 'rnback';

authenticate()
.then(() => console.log('yay!'))
.catch((err) => console.log('boo', err));
```

---