3.1.0 • Published 5 days ago

@truv/react-native v3.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 days 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@3.0.0
cd ios && pod install

With yarn

yarn add -S @truv/react-native@3.0.0
cd ios && pod install

Add the following to repositories section in your android/build.gradle file

        maven { setUrl("https://jitpack.io") }

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 the bridge: ", event)}
      onLoad={() => {
        console.log("bridge loaded");
      }}
      onSuccess={() => {
        console.log("bridge succeeded");
      }}
    />
  );
};
3.1.0

5 days ago

3.0.1

6 days ago

3.0.0

8 days ago

3.0.0-beta.20

22 days ago

3.0.0-beta.19

22 days ago

3.0.0-beta.18

22 days ago

3.0.0-beta.12

1 month ago

3.0.0-beta.13

1 month ago

3.0.0-beta.14

1 month ago

3.0.0-beta.15

1 month ago

3.0.0-beta.16

1 month ago

3.0.0-beta.17

1 month ago

3.0.0-beta.11

1 month ago

3.0.0-beta.9

1 month ago

3.0.0-beta.8

2 months ago

3.0.0-beta.5

2 months ago

3.0.0-beta.7

2 months ago

3.0.0-beta.6

2 months ago

3.0.0-beta.4

2 months ago

3.0.0-beta.3

2 months ago

3.0.0-beta.1

3 months ago

3.0.0-beta.0

3 months ago

3.0.0-beta.2

3 months ago

2.3.2

10 months ago

2.4.0

6 months ago

2.3.1

10 months ago

2.3.0

11 months ago

2.3.0-beta.0

11 months ago

2.2.0

12 months ago

2.1.1

1 year ago

2.2.0-rc.0

12 months ago

2.2.0-rc.1

12 months ago

2.1.0

1 year ago

2.0.2

2 years ago