0.0.24 • Published 5 months ago

test-trv-rn-sdk v0.0.24

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Truv React Native Bridge npm version

React Native library for integrating with the Truv Bridge

Install

Truv Bridge uses Webview under the hood and requires webview and cookies manager packages to be installed in the project.

With npm:

npm install @truv/react-native react-native-webview@11.26.1 @react-native-cookies/cookies@^6.2.1 --save

With yarn

yarn add -S @truv/react-native react-native-webview@11.26.1 @react-native-cookies/cookies@^6.2.1

Usage

import React, { useState } from 'react';
import TruvBridge from '@truv/react-native';

const BridgeElement = () => {
  return (
    <TruvBridge
        bridgeToken={bridgeToken}
        onClose={() => {
            console.log('bridge closed');
        }}
        onError={() => {
            console.log('bridge error');
        }}
        onEvent={(event) => console.log('event from bridge: ', event)}
        onLoad={() => {
            console.log('bridge loaded');
        }}
        onSuccess={() => {
            console.log('bridge succeeded');
        }}
    />
  );
}
0.0.21

5 months ago

0.0.22

5 months ago

0.0.23

5 months ago

0.0.24

5 months ago

0.0.20

5 months ago

0.0.16

5 months ago

0.0.17

5 months ago

0.0.18

5 months ago

0.0.19

5 months ago

0.0.13

5 months ago

0.0.14

5 months ago

0.0.15

5 months ago

0.0.12

6 months ago

0.0.11

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago

0.0.0

6 months ago