1.0.10 • Published 1 year ago

user-livecaller-mobile v1.0.10

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

user-livecaller-mobile-sdk

Livecaller

Livecaller is a React Native SDK that provides functionality for integrating widget support into your mobile applications.

Installation

To install Livecaller in your project, you can use npm:

npm i user-livecaller-mobile

Or with Yarn:

yarn add user-livecaller-mobile

Usage

To use Livecaller in your application, import the Livecaller component and pass the widgetId prop:

import React from "react";
import MySDK from "user-livecaller-mobile";

function MyApp() {
  return  <Livecaller 
            widgetID='d82cdb36-cf1f-4c95-84f6-c89b5412dae6'
            appUrl = "https://api.test.livecaller.io"
            hostName = "api.test.livecaller.io"
          />;
}

Props

  • widgetId (required): The unique identifier for the widget. This ID is used to save widget data to AsyncStorage.
  • appUrl (optional): The appUrl prop specifies the URL endpoint for the API used by the Livecaller widget.
  • hostName (optional): The hostName prop is optional, but if appUrl is provided, then hostName becomes mandatory. The hostName should represent the URL of the backend server without the "https://" prefix.

Example

import React from "react";
import Livecaller from "user-livecaller-mobile";

function MyApp() {
  return (
    <Livecaller 
        widgetID='d82cdb36-cf1f-4c95-84f6-c89b5412dae6'
        appUrl = "https://api.test.livecaller.io"
        hostName = "api.test.livecaller.io"
      />
  );
}

Dependencies

  • @react-native-community/netinfo
  • @react-navigation/native
  • @react-navigation/native-stack
  • @reduxjs/toolkit
  • axios
  • expo
  • expo-build-properties
  • expo-status-bar
  • pusher-js
  • react
  • react-native
  • react-native-safe-area-context
  • react-native-screens
  • react-redux
  • socket.io-client

Support

For any questions, issues, or support requests, please open an issue on our GitHub repository.

License

This project is licensed under the MIT License.