Unofficial demo displaying how to run Belvo Connect Widget (webview version) for React Native.
- Install React Native following the official setup page;
- Make sure you already have your Belvo credentials created;
- Clone this repo;
- Run a
npm install
inside this folder; - Generate a Belvo access token for widget;
- Change the "
< INSERT-YOUR-TOKEN >
" on config.js file for your generated access token; - Run
npx react-native start
(orrun-ios
orrun-android
);
<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