@truv/react-native
v4.3.0
Published
React Native library for integrating with the Truv Bridge
Keywords
Readme
Truv React Native Bridge 
React Native library for integrating with the Truv Bridge
Install
With npm:
npm install @truv/react-native
cd ios && pod installWith yarn
yarn add -S @truv/react-native
cd ios && pod installAdd 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");
}}
/>
);
};