Never Paint Mohawks

    @truv/react-native
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.2 • Public • Published

    Truv React Native Bridge npm version

    React Native library for integrating with the Truv Bridge

    Install

    With npm:

    npm install @truv/react-native --save

    With yarn

    yarn add -S @truv/react-native

    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');
            }}
        />
      );
    }

    Install

    npm i @truv/react-native

    DownloadsWeekly Downloads

    5

    Version

    2.0.2

    License

    ISC

    Unpacked Size

    8.92 kB

    Total Files

    5

    Last publish

    Collaborators

    • sergnek
    • vesai_citadelid
    • dmitrydorofeev-citadel