rnback sdk
Rnback is a backend service for react-native applications. To learn more, head to https://rnback.com
Install
- Create a react-native project: (If you don't already have one)
react-native init MyProject && cd MyProject
- Install the sdk:
npm install --save rnback
- Add key from the dashboard https://dashboard.rnback.com/ :
node ./node_modules/rnback/cli/ setkey "<key from dashboard>"
- NOTE: It's important to do this step before the following.
- Link library
react-native link rnback
- Done! you can now use the sdk in your app
import {authenticate} from 'rnback';
authenticate()
.then(() => console.log('yay!'))
.catch(() => console.log('boo'));
Build
- To pack the SDK, run in the directory of this repository:
npm pack
- The created directory "rnback-.tgz" is the rnback sdk bundle. To install it locally, run inside your app:
npm install --save <path-to-sdk>/rnback-<version>.tgz
- Follow the steps from the installation section from step 3 onward
Generate rnback documentation
npm run generate-docs
- NOTE: The generated file is documentation.md