1.0.22 • Published 1 year ago

react-ribbit-connect v1.0.22

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

react-ribbit-connect

React component for integrating RIBBIT CONNECT into your webpage

Don't use react? Here are a few more implementation methods we provide: 1. Pure JavaScript 2. Angular (coming soon) 3. React Native (coming soon)

Install

With npm:

npm install --save react-ribbit-connect

With yarn:

yarn add react-ribbit-connect

Documentation

Please refer to the official RIBBIT CONNECT docs for more information.

Usage

import  {  RIBBITConnect  }  from  "react-ribbit-connect";

const App extends React.Component {
    // ...
    render() {
        return (
            <RIBBITConnect
            token={this.state.token} // see documentation on how to get a token
            settings={{
                curtainColor: 'rgba(0,0,0,0.5)',
            }}
            onComplete={this.onComplete}
            // onLaunch={...} // fired on ready
            // onMessage={...}
            // onExit={...}
            />
        );
    }
}

All Props

NameTypeDefaultDescription
tokenstringToken recieved from /CONNECT/session/ endpoint
openbooleanfalseWhether or not CONNECT should be open or not
languagestringenOptional language to be displayed to the user (Translation must be added within CONNECT settings. More coming soon.)
styleobjectOptional styles to be applied to the CONNECT container
classNamestringOptional class to be added to the CONNECT container
inlinebooleanfalseWhether or not CONNECT should display inline (default is popup)
fullscreenbooleanfalseWhether or not CONNECT should display in full-screen mode (for native/mobile app implementation)
settingsobjectAdditional settings (see below)
getContextfunctionCan be used to get the RIBBIT CONNECT context
onMessagefunctionGeneric message handler that fires for every one of the events below function(eventName, eventData) => void
onLaunchfunctionfunction(eventData) => void
onExitfunctionfunction(eventData) => void
onCompletefunctionfunction(eventData) => void
onBankLoginSelectedfunctionfunction(eventData) => void
onManualEnrollmentSelectedfunctionfunction(eventData) => void
onNoAccountsFoundfunctionfunction(eventData) => void
onBankNotFoundfunctionfunction(eventData) => void
onBankLoginfunctionfunction(eventData) => void
onLinkOpenfunctionfunction(eventData) => void

Settings

NameTypeDefaultDescription
curtainColorstringColor of the popup background curtain. Examples: #FFF and rgba(0,0,0,0.5)
curtainAllowClosebooleantrueWhether or not the user clicking on the popup background curtain should close the CONNECT popup
closeButtonbooleanfalseWhether a close button should display in the top right corner of the widget. (on click fires the onExit method)
1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago