livecaller-react-native-sdk
v1.0.6
Published
React Native Chat SDK for Livecaller
Maintainers
Readme
livecaller-react-native-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 livecaller-react-native-sdkOr with Yarn:
yarn add livecaller-react-native-sdkUsage
To use Livecaller in your application, import the Livecaller component and pass the widgetId prop:
Props
widgetId(required): The unique identifier for the widget.
Example
import React from 'react';
import { View } from 'react-native';
import Livecaller from 'livecaller-react-native-sdk';
function MyApp() {
return (
<View style={{ flex: 1 }}>
<Livecaller
widgetId="your-widget-id"
language="en" // Optional: Default language
/>
</View>
);
}
// Update widget language
// Livecaller.updateLocale(languageCode);
// Log in a user with JWT token
// await Livecaller.userLogin(jwtToken);
// Update user token
// await Livecaller.userUpdate(newJwtToken);
// Log out current user
// await Livecaller.userLogout();
export default MyApp;Install dependencies
npm install react-redux @reduxjs/toolkit @react-navigation/native @react-navigation/native-stack @react-native-async-storage/async-storage react-native-vector-icons react-native-safe-area-context react-native-screens @react-native-community/netinfo
License
This project is licensed under the MIT License.
