rnback

1.4.0-beta • Public • Published

rnback sdk

Rnback is a backend service for react-native applications. To learn more, head to https://rnback.com


Install

  1. Create a react-native project: (If you don't already have one)
    react-native init MyProject && cd MyProject
  1. Install the sdk:
    npm install --save rnback
  1. 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.
  1. Link library
    react-native link rnback
  1. Done! you can now use the sdk in your app
    import {authenticate} from 'rnback';
    
    authenticate()
        .then(() => console.log('yay!'))
	    .catch(() => console.log('boo'));

Build

  1. To pack the SDK, run in the directory of this repository:
    npm pack
  1. 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
  1. 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

Package Sidebar

Install

npm i rnback

Homepage

rnback.com

Weekly Downloads

0

Version

1.4.0-beta

License

UNLICENSED

Last publish

Collaborators

  • rnback