Giter Site home page Giter Site logo

aroldogoulart / react-native-demo-widget Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renan-at-belvo/react-native-demo-widget

0.0 0.0 0.0 420 KB

Belvo Connect Widget (webview) for React Native

License: MIT License

JavaScript 21.79% Starlark 3.84% Java 40.23% Ruby 5.28% Objective-C 28.85%

react-native-demo-widget's Introduction

Connect Widget on React Native demo

Unofficial demo displaying how to run Belvo Connect Widget (webview version) for React Native.

How to run

  1. Install React Native following the official setup page;
  2. Make sure you already have your Belvo credentials created;
  3. Clone this repo;
  4. Run a npm install inside this folder;
  5. Generate a Belvo access token for widget;
  6. Change the "< INSERT-YOUR-TOKEN >" on config.js file for your generated access token;
  7. Run npx react-native start (or run-ios or run-android);

BelvoWidget component

<BelvoWidget
	payload={{ locale: 'pt' }}
	onError={e  =>  errorMsg(e)}
	onExit={e  =>  exitMsg(e)}
	onSuccess={e  =>  successMsg(e)}
	token={Config.BELVO_TOKEN}
/>

payload (object): you can send the same parameters from Widget's Startup configuration page as object (instead send them as queryString) ๐ŸคŸ

onError (callback): will receive an error event as object based on this params

onExit (callback): will receive an error event as object based on this params

onSuccess (callback): will receive an error event as object based on this params

token (string): access token generated from {environment}.belvo.com/api/token/ as linked above

react-native-demo-widget's People

Contributors

renan-at-belvo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.